Page 1 of 1

Dynamic Light Model Weirdness

PostPosted: Wed May 15, 2019 11:33 pm
by Major Cooke
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.

Re: Dynamic Light Model Weirdness

PostPosted: Thu May 16, 2019 5:09 pm
by Major Cooke
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...

Re: Dynamic Light Model Weirdness

PostPosted: Fri May 17, 2019 6:59 pm
by Marisa Kirisame
The lighting looks fine, but apparently it's SSAO that goes all screwy. I'm assuming that md3 exports with broken normals.