Dynamic Light Model Weirdness

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Dynamic Light Model Weirdness

Postby Major Cooke » Wed May 15, 2019 11:33 pm

Attached is a demo file of a map object I took from SUPERNatural and turned it into a model.

When loading up the game, every time the bobbing lights reach the top of their bobbing, the entire tower will rotate 90 degrees immediately and turn.... and this is where things start to get a little nutty. The "shape" or "direction" of the GL lights also changes and gets all sorts of weird, like it's partly a spot light, though it's simply an attenuated point light.

For the record, made sure this model was as clean as possible, ensuring there were only tris and quads that are clean all over. If needed I can supply the model too, in .blend format.
Attachments
ModelBug.pk3
Start on MAP01 and step back.
(212.74 KiB) Downloaded 12 times
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007

Re: Dynamic Light Model Weirdness

Postby Major Cooke » Thu May 16, 2019 5:09 pm

After correcting the normals and everything, the model still presents the weird 'direction' stuff that's occurring with the light as if it's a spot light.

But when I exported it as an .obj instead of .md3, everything changed and it became spot on, looking correct. Strange...
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007

Re: Dynamic Light Model Weirdness

Postby Marisa Kirisame » Fri May 17, 2019 6:59 pm

The lighting looks fine, but apparently it's SSAO that goes all screwy. I'm assuming that md3 exports with broken normals.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support


Return to OpenGL Renderer Bugs

Who is online

Users browsing this forum: No registered users and 1 guest