Forums

Full Version: Shaders
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

data 826, src 3106, latest nvidia driver; nv 8600gt.
got some black fields:
[Image: shaders.png]
i get that too.


nvidia gtx460, nvidia driver 260.19.44
Did it work with rev 3105?

If true, could you try (in graphics_gl3v.cpp):
Code:
reflectedLightColor[3] = 0.0;
...
ambientLightColor[3] = 0.0;
...
directionalLightColor[3] = 0.0;
tried 3107, same blackness. visible on rouen guardrails.

-gl3 renderer has them too. -gl3 option makes things very bright.

after making the changes you suggested i still get the similar results in both regular and gl3 modes.
zimluura Wrote:-gl3 option makes things very bright.

What graphics card?
Nevermind, I'm able to reproduce this on my nvidia card.
I fixed the black areas in R828 of the data. It turned out to be a weird shader precision issue that I'm going to call a bug in the nvidia drivers. The over bright problem with -gl3 is still there, I'll fix that later, but I wanted to get this fix checked in pronto.
yup, it's all better now.

thanks Joe!
The over-bright problem with GL3 on NVIDIA should be fixed now, see if it looks better.
yes, the gl3 renderer is fixed now.

the audi's other parts aren't showing up (on either normal or gl3) so i'm guessing that is nan working on damage.

oh, some tree's get strange geometry on rouen under gl3 (but not without). looks like some trees are just a single textured quad. and at a strange angle. i've noticed this for a while. but figured you knew about it.
zimluura Wrote:oh, some tree's get strange geometry on rouen under gl3 (but not without). looks like some trees are just a single textured quad. and at a strange angle. i've noticed this for a while. but figured you knew about it.

I didn't, thanks for pointing it out. It should be fixed now.
groovy!

the only other thing i can still see is this:
with gl3, when i take the att and have the paint set to gray. the body is kinda pinkish (like nomoo's tc6 screenshot above). the hood and hatch are the proper gray/silver. without gl3 the body color is normal.

but this error is sporadic. it looked, for a minute like it happened every other time i loaded the game. but now the colors are correct. (edit: no i was wrong, sometimes its good, sometimes bad)

====================================
here's the output from one of the times the body color was incorrect:
====================================
./vdrift3115 -gl3
INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: development-full, Version: 3115M, O/S: Unix-like
INFO: Home directory: /home/zimluura
INFO: Settings file: /home/zimluura/.vdrift/VDrift.config
INFO: Data directory: data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/zimluura/.vdrift/tmp
INFO: Log file: /home/zimluura/.vdrift/log.txt
INFO: SDL initialization successful
INFO: SDL video query was successful
INFO: Enabling antialiasing: 2X
INFO: Display change was successful: 1280x720x32 24z fullscreen=0
INFO: GL Renderer: GeForce GTX 460/PCI/SSE2
INFO: GL Vendor: NVIDIA Corporation
INFO: GL Version: 4.1.0 NVIDIA 260.19.44
INFO: Initialized GLEW 1.5.6
INFO: Loading data/shaders/gl3/vdrift1.rhr...
INFO: Loaded data/shaders/gl3/vdrift1.rhr
INFO: GL3 initialization successful
INFO: 2 joysticks found:
INFO: 0. Twin USB Joystick
INFO: 1. Twin USB Joystick
INFO: Loading car controls from: /home/zimluura/.vdrift/controls.config
INFO: Sound initialization information:
INFO: Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 1024
Size: 4096
Sound initialization successful
INFO: Loaded fonts successfully
INFO: Loaded GUI successfully



====================================
and here's an output from it working
====================================
./vdrift3115 -gl3
INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: development-full, Version: 3115M, O/S: Unix-like
INFO: Home directory: /home/zimluura
INFO: Settings file: /home/zimluura/.vdrift/VDrift.config
INFO: Data directory: data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/zimluura/.vdrift/tmp
INFO: Log file: /home/zimluura/.vdrift/log.txt
INFO: SDL initialization successful
INFO: SDL video query was successful
INFO: Enabling antialiasing: 2X
INFO: Display change was successful: 1280x720x32 24z fullscreen=0
INFO: GL Renderer: GeForce GTX 460/PCI/SSE2
INFO: GL Vendor: NVIDIA Corporation
INFO: GL Version: 4.1.0 NVIDIA 260.19.44
INFO: Initialized GLEW 1.5.6
INFO: Loading data/shaders/gl3/vdrift1.rhr...
INFO: Loaded data/shaders/gl3/vdrift1.rhr
INFO: GL3 initialization successful
INFO: 2 joysticks found:
INFO: 0. Twin USB Joystick
INFO: 1. Twin USB Joystick
INFO: Loading car controls from: /home/zimluura/.vdrift/controls.config
INFO: Sound initialization information:
INFO: Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 1024
Size: 4096
Sound initialization successful
INFO: Loaded fonts successfully
INFO: Loaded GUI successfully



i don't see any difference yet as far as console output goes.
it's worth noting that this peticular graphics board gets a little off after about 10 days of uptime (i'm on 8 right now) with geometry errors and what-not. i'll try to shut-down and power up again to see if it just works perfectly after that.
just did a full power cycle (seems to give the card another 10 days of non-crappy graphics card memory) first boot of vdrift3115 -gl3 was fine. next one was pinkish.

i should also note, when it's in pink mode the track-loading progress bar goes sorta pink too.