Search found 78 matches

by Protofall
Wed Feb 13, 2019 9:37 pm
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 13
Views: 4557

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 rea...
by Protofall
Tue Jan 29, 2019 5:28 am
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 13
Views: 4557

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...
by Protofall
Mon Jan 21, 2019 6:23 am
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 13
Views: 4557

Re: Unsure how some PVR features behave

1. Ah yes, I forgot to ask at the beginning how/if stuff like the scissor test could be done with KOS. This answers that question. Are there any publicly available examples using the modifier lists? I'm unsure how it would look/work code wise. 2. Ah, that explains oargb not doing anything. Your modi...
by Protofall
Thu Jan 10, 2019 5:12 am
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 13
Views: 4557

Re: Unsure how some PVR features behave

First off, moved to Programming, since it makes more sense there... Second, to the questions... 1. The modifier lists are for sending modifier volumes, which change parameters of polygons that are "within" them. They can be used to do things like shadowing (by changing colors), or for cha...
by Protofall
Tue Jan 08, 2019 10:31 pm
Forum: Programming Discussion
Topic: Unsure how some PVR features behave
Replies: 13
Views: 4557

Unsure how some PVR features behave

There's a few small questions I have about the PVR that I can't figure out so I'll clump them into this one post What are the Opaque/Translucent modifier lists used for? How do you use the "oargb" parameter from the pvr_vertex_t struct? No matter what I set it to, no colours seem to change...
by Protofall
Thu Dec 20, 2018 8:55 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Minesweeper for the Dreamcast
Replies: 2
Views: 2651

Re: Minesweeper for the Dreamcast

Juan wrote: Wed Dec 19, 2018 2:50 pm I'd be fooled to think it's running win2000, cool job :D
Thank you :grin:
by Protofall
Thu Nov 29, 2018 9:39 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Minesweeper for the Dreamcast
Replies: 2
Views: 2651

Minesweeper for the Dreamcast

Today is the 19th Birthday of the Sega Dreamcast in Australia! Although I grew up with a Gamecube and didn't even know the Dreamcast was a thing until 6/7 years ago, I've had a lot of fun this past year and a half working on homebrew for the system. I thought today would be a good day to present a p...
by Protofall
Tue Nov 27, 2018 8:49 am
Forum: Programming Discussion
Topic: Unsure how to make VMU saves
Replies: 4
Views: 1894

Re: Unsure how to make VMU saves

Your post ended up in the Programming forum because I moved it here. It belongs here, not in the top forum, as it is a programming related question. ;-) The errors you've posted there imply that whatever lxdream is doing with the VMU isn't working, as KOS cannot read it. Those should not happen on ...
by Protofall
Tue Nov 27, 2018 7:46 am
Forum: Programming Discussion
Topic: Unsure how to make VMU saves
Replies: 4
Views: 1894

Re: Unsure how to make VMU saves

First off, moved to the right forum. ;-) Second, when you call fs_open() with a mode of O_WRONLY, it will create a new file if the file doesn't exist -- just like doing an 'fopen(filename, "wb");' would (which also brings up the point that you can just use the normal fopen(), fread(), and...
by Protofall
Tue Nov 27, 2018 6:07 am
Forum: Programming Discussion
Topic: Unsure how to make VMU saves
Replies: 4
Views: 1894

Unsure how to make VMU saves

I've checked some old forum posts for advice on how to create/save/load save files and every example I see is basically a modified version of the save/load functions from WolfDC (Indiket's version is a little more clear <http://dcemulation.org/phpBB/viewtopic.php?f=34&t=103666&p=1047688&...
by Protofall
Mon Nov 19, 2018 6:56 am
Forum: Programming Discussion
Topic: Maple controller input polls not behaving as expected
Replies: 7
Views: 2748

Re: Maple controller input polls not behaving as expected

I've tested today on hardware and after my optimisations it appears this input bug isn't present anymore.
by Protofall
Thu Nov 15, 2018 10:00 pm
Forum: Programming Discussion
Topic: Maple controller input polls not behaving as expected
Replies: 7
Views: 2748

Re: Maple controller input polls not behaving as expected

Are you working with threads in the source that gives you 1151? I haven't used threads/fork() yet, so no. Additionally, have you tested checking merely for the presses, as opposed to checking specifically for presses where the previous detection was not a press? As in testing if "(st->buttons ...
by Protofall
Wed Nov 14, 2018 5:20 am
Forum: Programming Discussion
Topic: Maple controller input polls not behaving as expected
Replies: 7
Views: 2748

Re: Maple controller input polls not behaving as expected

I don't have a good enough understanding of the DC or the internals of KOS to understand how st->buttons could be updating itself mid loop and if its just some DC limitation/bug, a bug with KOS or something else It happens once per vblank, and vblanks happen 25, 30, 50 or 60 times per second depend...
by Protofall
Sun Nov 11, 2018 5:17 pm
Forum: Programming Discussion
Topic: Maple controller input polls not behaving as expected
Replies: 7
Views: 2748

Re: Maple controller input polls not behaving as expected

I don't know how to approach your code tbh, but the previous code you submitted for the github/wiki think handled inputs just fine, right? I should update my project's input code to what I used in the github sound example, but I don't think that would fix this issue. In the sound example we have an...
by Protofall
Fri Nov 09, 2018 6:32 am
Forum: Programming Discussion
Topic: Maple controller input polls not behaving as expected
Replies: 7
Views: 2748

Maple controller input polls not behaving as expected

I've encountered a very odd bug in my program that doesn't make sense to me and its presence is random (Something as simple as displaying more sprites on screen or extra counters can prevent this bug from occurring for some reason). I noticed my code sometimes wouldn't respond correctly to button pr...
by Protofall
Tue Sep 11, 2018 5:44 am
Forum: Programming Discussion
Topic: Advice for making a menu with dbgio
Replies: 4
Views: 660

Re: Advice for making a menu with dbgio

You don't want to use fb_console to do a menu like that, because it just ends up being more work than it's worth (and that's not what it was designed for). Writing strings directly to the framebuffer with the bfont_* functions is pretty easy, and that's basically all the fb_console stuff is doing a...
by Protofall
Mon Sep 10, 2018 8:14 am
Forum: Programming Discussion
Topic: Advice for making a menu with dbgio
Replies: 4
Views: 660

Re: Advice for making a menu with dbgio

I've tried your code and couldn't get anything to display on screen. Also the clear_screen(); function couldn't be found. Thanks for that, the version I posted is a cropped version of the program I was compiling, but should still behave the same. Functions like clear_screen() are already covered by...
by Protofall
Sun Sep 09, 2018 8:05 pm
Forum: Programming Discussion
Topic: Advice for making a menu with dbgio
Replies: 4
Views: 660

Advice for making a menu with dbgio

I want to make a basic menu for a VFS explorer that supports ext2 formatted sd cards. I know how to do the sd card stuff and launching executables, but I'm having trouble with dbgio. By default the dbgio library can display 17 lines of text at once (At 640 x 480 resolution). In my program's current ...