Glitchy lighting on custom models
Glitchy lighting on custom models
The difference is about 1 degree rotation of the camera & they just go really dark.
I don't know if this is a common problem, just wanted to see if anyone knows what's up.
Thanks.
I don't know if this is a common problem, just wanted to see if anyone knows what's up.
Thanks.
Re: Glitchy lighting on custom models
There have been some issues with lighting that I've experienced. I still haven't worked out all the little quirks. Maybe last knows what to do.
It might be an issue with the normal map, but I'm not entirely sure.
It might be an issue with the normal map, but I'm not entirely sure.
Re: Glitchy lighting on custom models
Yeah it may be something with normals map but it also may be something else.
It may help alot when you upload all the files that you use to get that object into Overgrowth so someone can debug that for you.
You can upload your files into this server http://ogmods.antonriehl.com/
It may help alot when you upload all the files that you use to get that object into Overgrowth so someone can debug that for you.
You can upload your files into this server http://ogmods.antonriehl.com/
Re: Glitchy lighting on custom models
I sometimes have that issue if I haven't calculated shadows... I'd try doing that, and see if it fixes the problem. (In the ribbon click "Edit" then "Calculate Shadows" on the top left)
Re: Glitchy lighting on custom models
I've had that problem too, and never quite figured what causes it.
It could be a problem with your normal maps. If you're using an Object-space normal map and one of the colors is inverted, the object might have one "light" angle reversed into a "dark" angle.
http://blog.wolfire.com/2009/10/character-normal-maps/
"The red represents the x-component (how much it is facing right), green represents the y-component (how much it is facing up), and blue represents the z-component (how much it is facing forwards)."
The orientation of the object depends on how it's rotated in your 3D software. IIRC, I had to first rotate the object so that it's facing in the right direction, then bake it, then rotate it so that it's facing towards positive Y axis, then export it to Overgrowth. I think I then had to adjust the normal map any way for some reason, inverting a channel or switching blue and green or something.
It could be a problem with your normal maps. If you're using an Object-space normal map and one of the colors is inverted, the object might have one "light" angle reversed into a "dark" angle.
http://blog.wolfire.com/2009/10/character-normal-maps/
"The red represents the x-component (how much it is facing right), green represents the y-component (how much it is facing up), and blue represents the z-component (how much it is facing forwards)."
The orientation of the object depends on how it's rotated in your 3D software. IIRC, I had to first rotate the object so that it's facing in the right direction, then bake it, then rotate it so that it's facing towards positive Y axis, then export it to Overgrowth. I think I then had to adjust the normal map any way for some reason, inverting a channel or switching blue and green or something.
Re: Glitchy lighting on custom models
If it depends on the camera rotation its not normalmap related, if it was the street would be dark all the time. i guess its some kind rendering bug.
Re: Glitchy lighting on custom models
Err... I'm pretty sure it could be. There's several ways to screw up a normal map. Including several that are unique to object-space normal maps.Wobak wrote:If it depends on the camera rotation its not normalmap related, if it was the street would be dark all the time. i guess its some kind rendering bug.
Any way, in my case it was about viewing angle, which changes with camera rotation.
Re: Glitchy lighting on custom models
I've tried using some normal maps of official assets & get the same problem
Nope.Anton wrote:I sometimes have that issue if I haven't calculated shadows... I'd try doing that, and see if it fixes the problem. (In the ribbon click "Edit" then "Calculate Shadows" on the top left)
Re: Glitchy lighting on custom models
That could still be caused by object-spaced normal maps.
Let's say you have a sword with its edge towards X-axis, and have a perfect normal map for it. You import it to Overgrowth, and the normal map works, but the sword is held with the sharp edge pointing sideways.
To fix this, you rotate it 90 degrees in the 3D program and re-import. Now the sword is held the right way, but the normals have broken. The normal map is still "rotated" 90 degrees, because it wasn't re-baked.
Using the object-space normal maps of existing objects wouldn't help there.
Let's say you have a sword with its edge towards X-axis, and have a perfect normal map for it. You import it to Overgrowth, and the normal map works, but the sword is held with the sharp edge pointing sideways.
To fix this, you rotate it 90 degrees in the 3D program and re-import. Now the sword is held the right way, but the normals have broken. The normal map is still "rotated" 90 degrees, because it wasn't re-baked.
Using the object-space normal maps of existing objects wouldn't help there.