The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
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:
[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.


- joevenzon - 01-18-2007

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]


- 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:
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"...



- 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. Smile

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
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"...



- 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
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.


- joevenzon - 01-26-2007

Doh! I've casted it into an (int) in R1496. Can you try once again?