more on 3d for dreamcast.

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
dospro
Insane DCEmu
Insane DCEmu
Posts: 147
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Thu Dec 30, 2004 7:12 pm
Has thanked: 0
Been thanked: 0
Contact:

more on 3d for dreamcast.

Post by dospro »

Hi. It's me again.

Ok, first the story, the the question.
This time for testing OpenGL application under dreamcast i used the bero's modified KGL.(The one used for dreamchess). This time it worked wonderful. A bit slow compared with my current PC.
But when i tried to add lighting, my program no longer compiled.
It says all the GL_LIGHT0, GL_LIGHTING, etc macros are not deifned. But, it gives no errors for glLightfv(...);
What can i do to solve this?.
Is chui's version now better than the one i am using right now?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Re: more on 3d for dreamcast.

Post by BlackAura »

As far as I know, no version of KGL actually supports OpenGL lighting. If you want lighting, you have to do all the required calculations yourself.
Phantom
DC Developer
DC Developer
Posts: 1753
Joined: Thu Jan 16, 2003 4:01 am
Location: The Netherlands
Has thanked: 0
Been thanked: 0
Contact:

Re: more on 3d for dreamcast.

Post by Phantom »

I don't know any KGL versions that support GL lights, but I haven't looked at Chui's version.

For a basic example of manual lighting, you could have a look at DreamChess 0.1.0 here. As we dropped the DC port in 0.2.0, we switched over to GL lights there.

It's important that you use the DC math functions from <dc/fmath.h>, as they're much faster than the routines in libm.
"Nothing works" - Catweazle
dospro
Insane DCEmu
Insane DCEmu
Posts: 147
Joined: Thu Dec 30, 2004 7:12 pm
Has thanked: 0
Been thanked: 0
Contact:

Re: more on 3d for dreamcast.

Post by dospro »

Ok. Thanks.
Also, i want to ask something.
Now that i have this "new" sdl and kgl libraries, when i triy to compile and run the kos kgl samples, they do run, but doesn't should what they should anymore.
The samples are not working anymore.
Any ideas of what could it be?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
Phantom
DC Developer
DC Developer
Posts: 1753
Joined: Thu Jan 16, 2003 4:01 am
Location: The Netherlands
Has thanked: 0
Been thanked: 0
Contact:

Re: more on 3d for dreamcast.

Post by Phantom »

dospro wrote:Ok. Thanks.
Also, i want to ask something.
Now that i have this "new" sdl and kgl libraries, when i triy to compile and run the kos kgl samples, they do run, but doesn't should what they should anymore.
The samples are not working anymore.
Any ideas of what could it be?
Hmm, maybe it's using the old GL header files that come with KOS?

Instead of the KOS examples, you could also try SDL versions of the NeHe examples.
"Nothing works" - Catweazle
Post Reply