MESSED UP LIGHTING!!!
Hey,
I can NOT get the lighting to work properly in my app... It''s all screwed up and has bands. The code is here... I know, it''s VERY unstructured: http://shadowman131.tripod.com/curcode.cpp
Anyway, if you feel like compiling it to see what i mean, then you can get the graphics here:
http://shadowman131.tripod.com/graphix.zip
I know that the code looks a lot like nehe''s btw, most of it is. I did it to make sure i was doing everything right, and I''m still getting the error. So, thanx in advance for any help.
Walt
Hey,
Won't anyone help a poor, unfortunate newbie? lol. Actually I am a newbie... which is also why i ripped off some (oh fine... a lot) of NeHe's code. But no matter how many times I double check my formula for normals and all my parameters for my lighting, nothing seems to work. Thanx again for the help (that doesn't exist right now... grrr).
Walt
P.S.
Here's the links again... (just copy and paste into browser):
Main Source File
http://shadowman131.tripod.com/curcode.cpp
Graphics.zip (for compiling if you want to see what i mean)
http://shadowman131.tripod.com/graphix.zip
Edited by - shadowman131 on May 16, 2001 11:42:11 PM
Won't anyone help a poor, unfortunate newbie? lol. Actually I am a newbie... which is also why i ripped off some (oh fine... a lot) of NeHe's code. But no matter how many times I double check my formula for normals and all my parameters for my lighting, nothing seems to work. Thanx again for the help (that doesn't exist right now... grrr).
Walt
P.S.
Here's the links again... (just copy and paste into browser):
Main Source File
http://shadowman131.tripod.com/curcode.cpp
Graphics.zip (for compiling if you want to see what i mean)
http://shadowman131.tripod.com/graphix.zip
Edited by - shadowman131 on May 16, 2001 11:42:11 PM
It would be nice if you supplied some screenshots in jpeg format of your program, personally im too busy to download someone''s source code & compiling it just for the sakes of seeing what the problem is.
Hey,
Ok, here''s two pictures.
It looks ok from above...
http://shadowman131.tripod.com/programming/LooksOk.jpg
But when you look, all the shadows are in the wrong places, lighting is basically just streaked.
http://shadowman131.tripod.com/programming/ReallySucks.jpg
Walt
Ok, here''s two pictures.
It looks ok from above...
http://shadowman131.tripod.com/programming/LooksOk.jpg
But when you look, all the shadows are in the wrong places, lighting is basically just streaked.
http://shadowman131.tripod.com/programming/ReallySucks.jpg
Walt
Hey,
Umm... are you people crazy? Look! The lighting and shadows are all in the wrong places... The light is in the very middle of the map, and the shadows are all randomized... At least it looks that way... here, i'll post a compiled version so you people can see for yourself. Controls are the arrow keys, page up, page down, and r.
http://shadowman131.tripod.com/compiled.zip
Walt
P.S.
If you don't see the boxes in front of you, hit 'r' until you do. When the boxes show up, look down and then you can move around the landscape.
Edited by - shadowman131 on May 18, 2001 6:55:27 PM
Umm... are you people crazy? Look! The lighting and shadows are all in the wrong places... The light is in the very middle of the map, and the shadows are all randomized... At least it looks that way... here, i'll post a compiled version so you people can see for yourself. Controls are the arrow keys, page up, page down, and r.
http://shadowman131.tripod.com/compiled.zip
Walt
P.S.
If you don't see the boxes in front of you, hit 'r' until you do. When the boxes show up, look down and then you can move around the landscape.
Edited by - shadowman131 on May 18, 2001 6:55:27 PM
Tried the compiled one, but there was no lighting at all, totally unlit
return 1;

return 1;
Hey,
Panic, maybe your card doesn''t support the hardware lighting??? I just downloaded the compiled version for myself, extracted to it''s own folder, and it had lighting for me...
Walt
Panic, maybe your card doesn''t support the hardware lighting??? I just downloaded the compiled version for myself, extracted to it''s own folder, and it had lighting for me...
Walt
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement