|
created Odd lighting in UDK
on 12-02-2010 10:23 AM
Hi, I have created rock face material for a UDK scene and then rotated the material by 90 degrees each time on 4 assets to create some variation, the problem is that I get the following result, the lighting seems to rotate with the model. There is one dominant directional light lighting the scene. Any ideas its driving me nuts!

Last edited by easterislandnick; 12-07-2010 at 02:09 AM..
|
, spline,
216 Posts,
Join Date Dec 2005,
Location UK
|
I'm not quite sure I totally understand what you're saying. I think it's normal though. UDK bakes lighting onto the model So when you turn the model, the lighting stays the same until you bake it again.
|
, dedicated polycounter,
1,458 Posts,
Join Date Nov 2009,
Location Montreal, QC, Canada
|
Sorry, I should have been clearer, its four separate models all with the same material, not one model rotated (but one model rotated should still work shouldn't it as the lighting is baked onto each model individually?!!)
|
, spline,
216 Posts,
Join Date Dec 2005,
Location UK
|
how did you rotate the material? New model with new UVs or just rotate the normal map in the material? The 2nd option will not work
|
, dedicated polycounter,
1,438 Posts,
Join Date Oct 2004,
Location Cary, NC
|
Ohhh! Now I get what he means. Yeah, if the normal map was rotated, that may just be what is going wrong.
|
, dedicated polycounter,
1,458 Posts,
Join Date Nov 2009,
Location Montreal, QC, Canada
|
Its rotated in the model, not the material. I created a base mesh and sculpted that then used that base mesh to create four different models with four different rotations.
|
, spline,
216 Posts,
Join Date Dec 2005,
Location UK
|
So you're rotating the UVs on the low poly model and you have 4 separate Low poly models in UDK?? Could you post your normal map?
|
, dedicated polycounter,
1,438 Posts,
Join Date Oct 2004,
Location Cary, NC
|
Odd. Did you flip your uvs instead of rotating?
|
, dedicated polycounter,
1,414 Posts,
Join Date Feb 2010,
Location Champaign, IL USA
|
I have reset xforms in the max models which seems to have corrected the major lighting issues I was having but I am still having issues with the normals in the second and fourth models. I have put numbers on the diffuse so you can see how the material is applied to the uvs of each model. The normals don't seem to like being rotated by 90 degrees or 270 degrees. Any ideas why this is? As you can see the wall on the far right has very flat looking normals and looks rubbish in game.

Last edited by easterislandnick; 12-07-2010 at 02:09 AM..
|
, spline,
216 Posts,
Join Date Dec 2005,
Location UK
|
Any ideas on this, I've added larger images so it should be clearer.
Also can a mod move this thread to the UDK section as it really belongs there.
|
, spline,
216 Posts,
Join Date Dec 2005,
Location UK
|
So you're rotating the UVs? not the mesh?
Due to the way tangent space normal maps work, you cannot just rotate them.
You'd need to do some channel swapping and inverting for 90° 180° and 270° rotations see these photoshop actions. from this thread.
For anything other than that you'd need to recalculate the normal information with something like this tool made by Ryan Clark from this thread.
EDIT:
Hmm... looks like the link to the photoshop actions is broken, they used to be in the wiki as well but I can't seem to locate them, at least the relevant info is still in the post. Sorry...
EDIT2:
This section of the wiki may help explain it a bit better.
Last edited by Ben Apuna; 12-07-2010 at 05:58 AM..
|
, veteran polycounter,
2,522 Posts,
Join Date Feb 2009,
Location Hawaii
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Copyright 1998-2012 A. Risch
|