Search found 80 matches

by quarn
Wed Apr 05, 2006 4:50 am
Forum: Programming Discussion
Topic: Radial blurring?
Replies: 22
Views: 2572

On dc I just rendered the same object several times a la version 1 as I described below. So you have: a) render object b) render object with alpha < 1 and scale > 1 c) render again with alpha less than previous step and scale > previous step d) repeat c until satisfied Expensive as hell because of a...
by quarn
Tue Apr 04, 2006 5:44 am
Forum: Programming Discussion
Topic: Radial blurring?
Replies: 22
Views: 2572

There are several ways to do radial blur. For simplicity I am going to ignore pure "render to texture" stuff and go with the two ways that are similar to how I usually do it: 1: a) render scene b) copy frame buffer to texture c) draw this texture to the scene with alpha < 1 and scale > 1 d...
by quarn
Tue Apr 04, 2006 5:36 am
Forum: Programming Discussion
Topic: Quarn's bumpgen won't compile.
Replies: 3
Views: 520

If jpeg's are giving you a problem, just comment out the jpeg stuff...

Also, note that this creates DC bumpmaps from heightmaps, not normalmaps... (Although, writing something that creates DC bumpmaps from normalmaps shouldn't be that hard)
by quarn
Tue Dec 27, 2005 5:36 pm
Forum: Programming Discussion
Topic: Code for PVR capabilities
Replies: 5
Views: 1578

Bump Mapping, Fog, Alpha-Bending (transparency), Mip Mapping (polygon-texture auto switch), Tri-Linear Filtering, Anti-Aliasing, Environment Mapping, and Specular Effect. Fog, Alpha-blending, Mip Mapping and Tri-Linear filtering is standard in KOS. I think you can easily enable Anti-Aliasing aswell...
by quarn
Wed Sep 07, 2005 1:59 am
Forum: Programming Discussion
Topic: Could the BBA replace the need for burning CDRs?
Replies: 13
Views: 1170

I just do this in my projects: // ...Somewhere in the setup-phase... #ifndef FINAL fs_chdir("/pc/home/quarn/code/dreamcast/<insert projectname here>/data"); #else fs_chdir("/cd/data"); #endif and then load all files relative to this base. That would be: // do this FILE *fp = fope...
by quarn
Sat Jun 25, 2005 2:26 pm
Forum: Programming Discussion
Topic: Is this C++ standard library <list> thingy broken!!!!
Replies: 5
Views: 532

Re: Is this C++ standard library <list> thingy broken!!!!

JS Lemming wrote:I simply don't understand... and this is serously hendering me from making homebrews. Does anybody see what could possibly be wrong here?
Yes, you are not using a patched newlib/gcc/etc. If you where using *nix you could just follow the guide at http://gamedev.allusion.net/softprj/kos/setup.php
by quarn
Fri Jun 17, 2005 4:13 am
Forum: Programming Discussion
Topic: libmp3 visualizations?
Replies: 3
Views: 467

Re: libmp3 visualizations?

Does anyone know how to get visualization type information out of libmp3 on the DC? I am trying to tie some graphical output up with music being played - not sure how to do it... I'm not sure exactly what you mean with "visualization type information"... Beat detection? Spectrum analysis?...
by quarn
Sat Apr 30, 2005 1:30 pm
Forum: Programming Discussion
Topic: DC Analog stick in degrees?
Replies: 2
Views: 374

Try atan2(x,y) instead, regular atan does not determine the quadrant and thus only covers half the angles.
by quarn
Tue Mar 15, 2005 12:18 pm
Forum: Programming Discussion
Topic: Recommend a scripting language? (to use with C/++)
Replies: 9
Views: 1127

I suggest AngelScript. The interopability with C++ is fantastic. You do not have to write any wrapper-functions and you can register object methods, variables and everything directly.
by quarn
Wed Feb 23, 2005 2:59 pm
Forum: Programming Discussion
Topic: C++ design question
Replies: 8
Views: 848

That extra level of indirection will hurt performance because every function call requires a lookup in the vtable for that class. Though it would most probably not be the performance bottleneck. The class to which an interface pointer will point to will never change, so it's unecessary. Though it w...
by quarn
Mon Feb 21, 2005 10:31 am
Forum: Programming Discussion
Topic: pointers and such (are these two functions the same?)
Replies: 13
Views: 695

Ok.. I guess there is nothing I can do then..
by quarn
Mon Feb 21, 2005 10:18 am
Forum: Programming Discussion
Topic: pointers and such (are these two functions the same?)
Replies: 13
Views: 695

I get a "loading game please wait"-text and a "NEOGEO DEMO EN"-text. Then what?
by quarn
Mon Feb 21, 2005 9:30 am
Forum: Programming Discussion
Topic: pointers and such (are these two functions the same?)
Replies: 13
Views: 695

Ok, I got it to compile with my kos-setup and everything, though I do not have a NEO GEO cd so I'm not sure how I am supposed to test if the code works... Are there any free (legal and good) NEO GEO cds available on the net?
by quarn
Sun Feb 20, 2005 4:41 pm
Forum: Programming Discussion
Topic: pointers and such (are these two functions the same?)
Replies: 13
Views: 695

quzar wrote:Thanks for the effort, it crashes my DC though =(
Yeah, I thought it would... If you give me a link to the code, I might try some more when I have time.
by quarn
Sat Feb 19, 2005 8:51 am
Forum: Programming Discussion
Topic: pointers and such (are these two functions the same?)
Replies: 13
Views: 695

I would remove the "*" from the br1 declaration. Having it there declares br1 to be an array of pointers to u16 values. Meaning, that br[0] and br[1] is br1[0], br[2] and br[3] is br1[1] etc as pointers take 4 bytes. So, remove the "*" from the br1 declaration. Second, the if (br...
by quarn
Sat Feb 19, 2005 4:34 am
Forum: Programming Discussion
Topic: pointers and such (are these two functions the same?)
Replies: 13
Views: 695

INLINE void draw_fix(u16 code, u16 colour, u16 sx, u16 sy,u16 * palette, char * fix_memory){ unsigned short br1[64]; // removed * unsigned short * br = (unsigned short *)br1; // and this is not really needed.. unsigned short * paldata=&palette[colour]; u32 * fix=(u32*)&(fix_memory[code<<5])...
by quarn
Sat Feb 19, 2005 3:20 am
Forum: Programming Discussion
Topic: pointers and such (are these two functions the same?)
Replies: 13
Views: 695

Re: pointers and such (are these two functions the same?)

unsigned short *br; unsigned short *secondthing; ... draw_font(*br, secondthing, fix); the second of the two crashes my DC. any idea as to why? Yeah, "br" and "secondthing" does not point to anything. Without having tested, or looked too much at the code, I'd say that you should...
by quarn
Mon Feb 07, 2005 3:56 pm
Forum: Programming Discussion
Topic: Color keying with PVR
Replies: 10
Views: 866

Yes, you load it with specifiying "PNG_MASK_ALPHA". For example:

png_to_texture("texture.png", textureaddr, PNG_MASK_ALPHA);

and then you specify ARGB1555 as texturemode
by quarn
Sun Feb 06, 2005 1:46 pm
Forum: Programming Discussion
Topic: Color keying with PVR
Replies: 10
Views: 866

OK thanks once more, I tried the GIMP but for some reason the area I want to be transparent is white instead and the rest of the picture has only the Red channel it seems... how exactly do I go about in GIMP? All I want is to set RGB(0,0,0) to 100% transparent. 1) Open the GIMP. 2) Open your pictur...
by quarn
Mon Dec 27, 2004 7:11 am
Forum: Programming Discussion
Topic: Vector lines in Kos
Replies: 3
Views: 476

Don't know if there is something built in into kos, but you can draw lines by using regular polygons. Here is some code I wrote a couple of years ago to do just that: // Draw a line between p1(x,y,z) to p2(x,y,z) with the specified thickness void q3dFillerWireframeDrawLine(pvr_vertex_t *p1, pvr_vert...