The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
|
New lighting system - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: New lighting system (/showthread.php?tid=493) Pages:
1
2
|
New lighting system - joevenzon - 01-15-2007 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. - joevenzon - 01-18-2007 Here's my first cut at dynamic reflections (in SVN R1475): - Nigo - 01-18-2007 I thought real reflections were CPU consumming, what about this one ? it looks good :wink: - kcid - 01-18-2007 The new lightning/reflection system looks very cool, nice work!! - joevenzon - 01-18-2007 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. - rookie1 - 01-24-2007 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. - thelusiv - 01-24-2007 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: - pwp71 - 01-24-2007 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 - thelusiv - 01-25-2007 SVN r1489 should fix the low framerate problem. The options seem to work properly now. - joevenzon - 01-25-2007 thelusiv: about the cubereflection.png error, I checked in a more descriptive error message in 1491, can you see what gets printed now? - pwp71 - 01-25-2007 Ok, works. Now I've a good fps. Thanks. pwp71 - thelusiv - 01-25-2007 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 - joevenzon - 01-26-2007 um, did you update to R1491 and recompile? - thelusiv - 01-26-2007 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 - joevenzon - 01-26-2007 Doh! I've casted it into an (int) in R1496. Can you try once again? |