Search found 36 matches

by Protofall
Sun Sep 08, 2019 8:17 pm
Forum: Programming Discussion
Topic: LibTsunami Displaying JPEG Incorrectly
Replies: 6
Views: 135

Re: LibTsunami Displaying JPEG Incorrectly

With image type, the process is this: 1. Load the texture into memory (If its a png/jpeg it will generally load slightly faster than a dtex file since most dtex files aren't compressed) 2. If its not a native Dreamcast format, convert it to the native format (Takes some time, but only done once) 3. ...
by Protofall
Sun Sep 08, 2019 7:42 am
Forum: Programming Discussion
Topic: LibTsunami Displaying JPEG Incorrectly
Replies: 6
Views: 135

Re: LibTsunami Displaying JPEG Incorrectly

I've never used jpeg source files, so I can't comment on that. However I personally recommend not using jpegs or pngs because the Dreamcast has to convert them to its native texture format at runtime, instead its better to use something like tvspelsfreak's texconv program to convert pngs into "dtex"...
by Protofall
Sat Aug 10, 2019 7:11 pm
Forum: Programming Discussion
Topic: Announcing libkosfat
Replies: 10
Views: 273

Re: Announcing libkosfat

As the first post says, write support isn't in there right now. Right now, you're getting a -1 return from fs_fat_mount() because you're trying to mount it read/write. As for the partition type, per Wikipedia, there's a lot of them that map to FAT: https://en.wikipedia.org/wiki/Partition_type . You...
by Protofall
Sat Aug 10, 2019 3:42 am
Forum: Programming Discussion
Topic: Announcing libkosfat
Replies: 10
Views: 273

Re: Announcing libkosfat

Actually, I have a bit of time to test right now. I started working on a basic program that uses a FAT formatted SD card, but I can't get it to compile. I've updated my copy of KOS and recompiled and I get the error "/opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.7.3/../../../../sh-elf/bin/ld: cannot fi...
by Protofall
Fri Aug 09, 2019 10:59 pm
Forum: Programming Discussion
Topic: Announcing libkosfat
Replies: 10
Views: 273

Re: Announcing libkosfat

Thanks for the new feature BlueCrab, much appriciated :D

I'll do some testing when I get time, but that probably won't be for a few weeks. I'll definitely be using this feature in my next project/s.
by Protofall
Thu Aug 01, 2019 6:23 am
Forum: Programming Discussion
Topic: Has anyone successfully built the toolchain in Windows Subsystem for Linux?
Replies: 11
Views: 263

Re: Has anyone successfully built the toolchain in Windows Subsystem for Linux?

But wsl isn't graphical right, I use VcXsrv in windows to create an X server for WSFL to communicate through. https://pbs.twimg.com/media/EAxzRfHWsAAA0jm?format=jpg&name=medium It's not the gui that's the problem, it's an unimplemented kernel function. I can launch and run redream. I just can't use...
by Protofall
Thu Jul 11, 2019 8:24 am
Forum: Programming Discussion
Topic: Load ELF/BIN NullDC 1.04 For Debug / Testing
Replies: 5
Views: 220

Re: Load ELF/BIN NullDC 1.04 For Debug / Testing

I jumped through the hoops of creating a syscalls.bin and IP file hoping it would solve the issue of not being able to load an ELF/BIN, but now I'm just getting NullDC to freeze at the "SEGA" license screen after the swirl animation. I'm trying to load 2ndmix.elf (the KOS demo). I even tried creati...
by Protofall
Fri Jun 21, 2019 10:35 am
Forum: Programming Discussion
Topic: DC-TOOL-IP Linux Tutorial
Replies: 9
Views: 1296

Re: DC-TOOL-IP Linux Tutorial

Note that there is a newer version of DC-LOAD/TOOL-IP in Sizious' fork (1.0.5) https://github.com/sizious/dcload-ip Also if you wish to use the "-c" option (Access files on your computer from the Dreamcast to load in/out assets), you need to use "sudo" to give the program permission, also make sure ...
by Protofall
Mon Jun 10, 2019 1:12 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Dream On Contest: Celebrating the 20th Anniversary of the Dreamcast - 1st place will be professionally pressed on CD
Replies: 13
Views: 1342

Re: Dream On Contest: Celebrating the 20th Anniversary of the Dreamcast - 1st place will be professionally pressed on CD

Nice! There was something small I was planning on making anyways, so I'll submit that for this (Its not really original so it won't be up for prizes, but its going to be fun anyways)
by Protofall
Tue Apr 23, 2019 8:37 am
Forum: Programming Discussion
Topic: Strange Compiling results. Is something deprecated?
Replies: 2
Views: 318

Re: Strange Compiling results. Is something deprecated?

Change the #include <sys/cdefs.h> in the biosfont.h file to instead say #include <kos/cdefs.h> and the issue should be fixed. I've pushed the fix to the git repository, so you could also just "git pull" it and re-compile KOS (just KOS -- not the whole toolchain, obviously). Sweet, thanks for the qu...
by Protofall
Tue Apr 23, 2019 3:27 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Tetris 2 and unreleased game available on github
Replies: 4
Views: 794

Re: Tetris 2 and unreleased game available on github

I releasing my own port/recreation of Minesweeper late last year thinking it was the first version for the DC, but you technically beat me to it 15 years ago :o

Nice work!
by Protofall
Tue Apr 23, 2019 3:19 am
Forum: Programming Discussion
Topic: Strange Compiling results. Is something deprecated?
Replies: 2
Views: 318

Strange Compiling results. Is something deprecated?

A year or more ago I made a simple demo to show palette usage and modification. Recently I decided to build this program on my current device and I get the following error a@LAPTOP-8SDROJHM:/mnt/c/Users/David Lenovo/Documents/code/Protofalls-KOS-Tests/KallistiOSTests/Palette$ make rm -f paletteTest....
by Protofall
Thu Feb 28, 2019 6:03 pm
Forum: Homebrew Software and Indie Games Discussion
Topic: The Hideout [Reaperi Cycle Demo]
Replies: 1
Views: 661

Re: The Hideout [Reaperi Cycle Demo]

Played the demo around when it came out, looks great! Nice work!
by Protofall
Thu Feb 28, 2019 7:41 am
Forum: Homebrew Software and Indie Games Discussion
Topic: New Dreamcast related tools
Replies: 1
Views: 665

New Dreamcast related tools

Lately I've been working on some programs relating to the Dreamcast. I've mentioned them a bit on Twitter and other places, but now I've put all 4 of my programs into one GitHub repository: DOWNLOAD: https://github.com/Protofall/Crayon-Utilities The four programs are: DtexToRGBA8888 : A program that...
by Protofall
Sat Feb 23, 2019 4:34 am
Forum: Programming Discussion
Topic: Unsure how VQ compression works
Replies: 1
Views: 446

Re: Unsure how VQ compression works

I managed to figure out the answers to my questions. For those who wonder, here were the solutions. 1. Each code-book entry is twiddled (Order is 0, 2, 1, 3 for 16BPP). On top of that the image data block is also twiddled for the correct size (Imagine each index is a "texel-collection" and we twiddl...
by Protofall
Thu Feb 14, 2019 6:26 am
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 10
Views: 1664

Re: Unsure how some PVR features behave

The clipping will be more complicated with rotated sprites, but it's still possible. You can do clipping of an arbitrary polygon to a convex shape with something like Sutherland-Hodgman . Google, "polygon clipping" or "Sutherland-Hodgman", and you'll find explanations on how to do it. The modifier ...
by Protofall
Thu Feb 14, 2019 6:10 am
Forum: Programming Discussion
Topic: Unsure how VQ compression works
Replies: 1
Views: 446

Unsure how VQ compression works

Lately I've been working on a program that converts from Tvspelsfreak's "Texconv" Dtex files to either a RGBA8888 binary or a PNG. For those who don't know a Dtex file is basically the raw texture a Dreamcast requires when rendering plus a header with height, width, texture information, etc. (Its 16...
by Protofall
Wed Feb 13, 2019 9:37 pm
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 10
Views: 1664

Re: Unsure how some PVR features behave

Yeah, that makes sense. Vertex/UV modification would be a bit more efficient than modifier volumes in most cases. Since my last post I realise my software-clipping approach is only good for "sprite" mode and x/y axis aligned polygons. Depending on how a rotated poly is cropped, its not really possib...
by Protofall
Tue Jan 29, 2019 5:28 am
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 10
Views: 1664

Re: Unsure how some PVR features behave

1. Here's my context: I'm making a library called "Crayon" that depends on KOS (For the Dreamcast) and it will make it easier to create 2D projects for the Dreamcast (No 3D support). Later on I plan to make a PC port that depends on OpenGL and for PC I'll use the scissor test for this kind of scenar...