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?
more on 3d for dreamcast.
-
- 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.
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus
-
- 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.
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.
-
- 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.
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.
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
-
- 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.
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?
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
http://www.geocities.com/instructivus
-
- 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.
Hmm, maybe it's using the old GL header files that come with KOS?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?
Instead of the KOS examples, you could also try SDL versions of the NeHe examples.
"Nothing works" - Catweazle