01-15-2007, 12:50 AM,
|
|
joevenzon
Administrator
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
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:
And here's the same image with all of the textures applied and the new reflection mapping:
For comparison, here's the old lighting system and the old reflection mapping system:
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!
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.
|
|
01-18-2007, 04:33 AM,
|
|
Nigo
Member
|
Posts: 118
Threads: 9
Joined: Jun 2006
|
|
I thought real reflections were CPU consumming, what about this one ?
it looks good :wink:
|
|
01-18-2007, 04:42 AM,
|
|
kcid
Member
|
Posts: 136
Threads: 8
Joined: Jan 2006
|
|
The new lightning/reflection system looks very cool, nice work!!
|
|
01-24-2007, 10:33 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
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.
|
|
01-24-2007, 02:46 PM,
|
|
pwp71
Member
|
Posts: 105
Threads: 15
Joined: Nov 2006
|
|
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
|
|
01-25-2007, 06:54 PM,
|
|
pwp71
Member
|
Posts: 105
Threads: 15
Joined: Nov 2006
|
|
Ok, works. Now I've a good fps.
Thanks.
pwp71
|
|
01-26-2007, 03:02 AM,
|
|
thelusiv
Administrator
|
Posts: 2,346
Threads: 223
Joined: Jun 2005
|
|
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.
|
|
|