Author : polygoo


Reply
Reply
 
Thread Tools Display Modes
easterislandnick's Avatar
Old (#1)
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..
Offline , spline, 216 Posts, Join Date Dec 2005, Location UK  
   Reply With Quote

Prophecies's Avatar
Old (#2)
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.
Offline , dedicated polycounter, 1,458 Posts, Join Date Nov 2009, Location Montreal, QC, Canada  
   Reply With Quote

easterislandnick's Avatar
Old (#3)
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?!!)
Offline , spline, 216 Posts, Join Date Dec 2005, Location UK  
   Reply With Quote

JordanW's Avatar
Old (#4)
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
Jordan Walker
ART BLOG
CGHUB
Twitter
Offline , dedicated polycounter, 1,438 Posts, Join Date Oct 2004, Location Cary, NC Send a message via ICQ to JordanW  
   Reply With Quote

Prophecies's Avatar
Old (#5)
Ohhh! Now I get what he means. Yeah, if the normal map was rotated, that may just be what is going wrong.
Offline , dedicated polycounter, 1,458 Posts, Join Date Nov 2009, Location Montreal, QC, Canada  
   Reply With Quote

easterislandnick's Avatar
Old (#6)
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.
Offline , spline, 216 Posts, Join Date Dec 2005, Location UK  
   Reply With Quote

JordanW's Avatar
Old (#7)
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?
Jordan Walker
ART BLOG
CGHUB
Twitter
Offline , dedicated polycounter, 1,438 Posts, Join Date Oct 2004, Location Cary, NC Send a message via ICQ to JordanW  
   Reply With Quote

gsokol's Avatar
Old (#8)
Odd. Did you flip your uvs instead of rotating?
George Sokol
Environment Artist @ Volition-Inc
Portfolio
Art Blog
Offline , dedicated polycounter, 1,414 Posts, Join Date Feb 2010, Location Champaign, IL USA Send a message via Skype™ to gsokol  
   Reply With Quote

easterislandnick's Avatar
Old (#9)
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..
Offline , spline, 216 Posts, Join Date Dec 2005, Location UK  
   Reply With Quote

easterislandnick's Avatar
Old (#10)
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.
Offline , spline, 216 Posts, Join Date Dec 2005, Location UK  
   Reply With Quote

Ben Apuna's Avatar
Old (#11)
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..
Ye Olde Portfolio | Google+ | #1GAM | Aspiring indie developer.
Offline , veteran polycounter, 2,522 Posts, Join Date Feb 2009, Location Hawaii Send a message via Yahoo to Ben Apuna  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch