[RVGL] Lighting behavior on extra car parts

Report issues and bugs here.
User avatar
Posts: 43
Joined: Mon Dec 04, 2017 9:55 pm
Discord: Gotolei#0819
Location: The New Are

[RVGL] Lighting behavior on extra car parts

Unread post by Gotolei » Sat Jun 23, 2018 6:47 am

Springs, pins, axles, etc. Haven't tested spinners. In their current state, it seems extra car parts light up their entire model based on what the light value is at the model origin or some other specific single point, rather than on a per-polygon basis similar to how the body and wheels handle it. As part of the shaders, would it be feasible to fix this?

In addition, it seems the shaders in particular have some issues when handling them.

For one example, the behavior of RC Bandit's (or any other car's) springs when reacting to lights in the part of museum2 below: https://streamable.com/8sffp

For another, as has already been discussed on Discord, the behavior of the axles on a concept car reacting to the shadowbox in Petrovolt's car wash area (the large moving parts are axles): https://streamable.com/pn7yh
User avatar
Posts: 311
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: [RVGL] Lighting behavior on extra car parts

Unread post by Huki » Wed Jul 04, 2018 7:28 pm

It's true that the extra car parts originally used a simpler whole-model lighting. But the shader renderer uses per-vertex lighting for everything. In fact, this is what causes the glitch shown in your videos. For some reason, per-vertex lighting doesn't work properly on the smaller car parts. I've now implemented simple lighting for the shader renderer to fix the glitch. The underlying cause of the per-vertex lighting glitch needs to be investigated later.
Post Reply