A tiny stupid demo...
First of all, I'd like to thank people who helped me get this working (especially vincoof).
Here is a small demo that features per pixel lighting with normal maps and parallax mapping.
This demo has been tested on a geForceFX 5200 but should work on all gfx cards that support VP/FP and more than 3 texture units.
Use the mouse and e, s, d, x, r, c to move the camera, hit l to change the lighting mode (no lighting/opengl lighting/ppl).
You can change the material parameters in the materials.s3d file if you wish...
Please don't hesitate to send feedback (hmmm I already know the demo sucks, I use it as a test program for materials).
SaM3d!, a cross-platform API for 3d based on SDL and OpenGL.The trouble is that things never get better, they just stay the same, only more so. -- (Terry Pratchett, Eric)
Looks pretty good, and the MD2 stuff is nice.
Any chance you could add the keys to the demo itself, like printed on the screen somewhere?
Any chance you could add the keys to the demo itself, like printed on the screen somewhere?
@b3rs3rk: Good ! First bug report ! Could you just tell me what GFX card you have and if it generated error messages (stderr.txt, stdout.txt and log.txt).
SaM3d!, a cross-platform API for 3d based on SDL and OpenGL.The trouble is that things never get better, they just stay the same, only more so. -- (Terry Pratchett, Eric)
What are we supposed to see ?
It works but i don't see any form of lighting, and i can't see any normal map or parallax mapping, even on the walls. Just seems to be flat textured..
System: Dual Athlon 2.4 Ghz, 2 Gb RAM, Radeon 9700 Pro, Win 2000, catalyst 4.6
Y.
It works but i don't see any form of lighting, and i can't see any normal map or parallax mapping, even on the walls. Just seems to be flat textured..
System: Dual Athlon 2.4 Ghz, 2 Gb RAM, Radeon 9700 Pro, Win 2000, catalyst 4.6
Y.
@Ysaneya: hit "L" once to see opengl lighting, hit "L" again to see PPL.
"F9" will show a small GUI that controls a few parameters...
[Edited by - rodzilla on June 24, 2004 4:59:33 AM]
"F9" will show a small GUI that controls a few parameters...
[Edited by - rodzilla on June 24, 2004 4:59:33 AM]
SaM3d!, a cross-platform API for 3d based on SDL and OpenGL.The trouble is that things never get better, they just stay the same, only more so. -- (Terry Pratchett, Eric)
June 24, 2004 06:32 AM
Assertion failed: unit < Texture::M_nb_tex_units, file sam3d_texture.cpp, line 472
Assertion failed: unit < Texture::M_nb_tex_units, file sam3d_texture.cpp, line 472
gforce4 mx 440 with agp8X
nothing runs
gforce4 mx 440 with agp8X
nothing runs
Quote: Original post by CrystalClear
Assertion failed: unit < Texture::M_nb_tex_units, file sam3d_texture.cpp, line 472
Hmmm that's a stupid bug... You need 3 texture units to run the demo... I'll fix this ASAP...
Thanx !
BTW, anobody wants a Linux binary ??? I can build one
SaM3d!, a cross-platform API for 3d based on SDL and OpenGL.The trouble is that things never get better, they just stay the same, only more so. -- (Terry Pratchett, Eric)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement