Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New lighting system
01-15-2007, 12:50 AM,
#1
New lighting system
Alright, I've got a new lighting system set up. So far I've only got the static parts done. The changes are a new cube mapped texture-based-diffuse-lighting system plus a new cube mapped reflection system.

Here's the new diffuse lighting system. This shows the lighting contribution without any other textures:
[Image: 4_shot012.jpg]

And here's the same image with all of the textures applied and the new reflection mapping:
[Image: 6_shot013.jpg]

For comparison, here's the old lighting system and the old reflection mapping system:
[Image: 7_shot009.jpg]

The effect is certainly subtle. Some may like the way the old objects are lit, or the new systems may cause performance issues for some. The new lighting and reflection systems can be turned on and off independently (the GUI isn't set up to do this yet, though).

Here's another shot of the new system. Look at those sweet reflections!
[Image: 9_shot008.jpg]

Next I'll need to make an option to generate the lighting and reflections dynamically... so if you go through a tunnel, the car gets darker AND you can see reflections of the tunnel lights off of the car.
Reply
01-18-2007, 03:39 AM,
#2
 
Here's my first cut at dynamic reflections (in SVN R1475):

[Image: 2_shot022.bmp.jpg]

[Image: 9_shot018.bmp.jpg]

[Image: 0_shot016.bmp.jpg]
Reply
01-18-2007, 04:33 AM,
#3
 
I thought real reflections were CPU consumming, what about this one ?
it looks good :wink:
Reply
01-18-2007, 04:42 AM,
#4
 
The new lightning/reflection system looks very cool, nice work!!
Reply
01-18-2007, 11:00 AM,
#5
 
The dynamic reflections bump my framerate down about 10-20 fps (from around 60 fps to mid-40s). I think I can improve this a bit. Also, I don't think the reflections look as good as they could at the moment... I'll work on that as well.
Reply
01-24-2007, 10:33 AM,
#6
 
I'm only getting fps in the single digit range, even with both lighting and reflection settings set to 'low' in display options. Is this normal? Going through the code, it looks to me when the setting is 'low', dynamic lighting and reflection should be disabled.
Reply
01-24-2007, 02:06 PM,
#7
 
A few things. First off I'm experiencing the same thing as rookie1 - reflections seem to be on a higher setting than I have them set at. Also, working on my laptop, when the cube mapping stuff is done, I get this:
Code:
0 joystick(s) found:
libGL warning: 3D driver claims to not support visual 0x4b
Cube map texture isn't GL_RGB (but should be): weather/cubereflection.png
error loading texture file "weather/cubereflection.png"...
Multitexture: Yes
Texture units: 4
Antialiasing: Yes
Anisotropic texture filtering: Yes
Maximum Anisotropy: 2
Multitexture units (4 are required for all effects): 4
Your GPU meets the texture unit requirements.

Note to user:  All error messages will be put in /home/thelusiv/.vdrift/logs/.

Cube map texture isn't GL_RGB (but should be): weather/cubereflection.png
error loading texture file "weather/cubereflection.png"...
Reply
01-24-2007, 02:46 PM,
#8
 
I don't know if are the dynamic light or there is something to do
but now I have framerate = 3.5 instead ~30-35
What can I do?

pwp71
Reply
01-25-2007, 01:00 AM,
#9
 
SVN r1489 should fix the low framerate problem. The options seem to work properly now.
Reply
01-25-2007, 10:52 AM,
#10
 
thelusiv: about the cubereflection.png error, I checked in a more descriptive error message in 1491, can you see what gets printed now?
Reply
01-25-2007, 06:54 PM,
#11
 
Ok, works. Now I've a good fps. Smile

Thanks.

pwp71
Reply
01-25-2007, 11:55 PM,
#12
 
joevenzon Wrote:thelusiv: about the cubereflection.png error, I checked in a more descriptive error message in 1491, can you see what gets printed now?
I still get mostly the same thing:
Code:
libGL warning: 3D driver claims to not support visual 0x4b
Cube map texture isn't GL_RGB (but should be): weather/cubereflection.png
error loading texture file "weather/cubereflection.png"...
Multitexture: Yes
Texture units: 4
Antialiasing: Yes
Anisotropic texture filtering: Yes
Maximum Anisotropy: 2
Multitexture units (4 are required for all effects): 4
Your GPU meets the texture unit requirements.

Note to user:  All error messages will be put in /home/thelusiv/.vdrift/logs/.
Unable to find the file: /usr/share/games/vdrift/data/cars/XM/interior.joe!
Cube map texture isn't GL_RGB (but should be): weather/cubereflection.png
error loading texture file "weather/cubereflection.png"...
Reply
01-26-2007, 02:11 AM,
#13
 
um, did you update to R1491 and recompile?
Reply
01-26-2007, 03:02 AM,
#14
 
Hehe, just realized I compiled the new version but didn't run scons install...here's the real output:
Code:
libGL warning: 3D driver claims to not support visual 0x4b
Cube map texture isn't GL_RGB (but should be): weather/cubereflection.png has  channels
error loading texture file "weather/cubereflection.png"...
Multitexture: Yes
Texture units: 4
Antialiasing: Yes
Anisotropic texture filtering: Yes
Maximum Anisotropy: 2
Multitexture units (4 are required for all effects): 4
Your GPU meets the texture unit requirements.
In case you're wondering, between "has" and "channels" that is indeed a garbage character.
Reply
01-26-2007, 09:13 PM,
#15
 
Doh! I've casted it into an (int) in R1496. Can you try once again?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)