Hi Everyone,
I am having an issue in UDK with using multiple UV's. I am trying to make it so my normals are on a separate UV than the Diffuse/spec. My issue comes in when I separated the 2.
Break down:
I am using the exact same model with exact same UV's for normal map.
Model with Error:
UV channel 1 in Max is my Diffuse
UV channel 2 in Max is my Light map
UV channel 3 in Max is my Normal
Model which works fine:
UV channel 1 in Max is my Normal
UV channel 2 in Max is my Light map
UV channel 3 in Max is my Normal
My material has the node for TextureCoordinates set to UV channel 2 (or 3 in max)
This is where my mind is blown. When I apply the same material to the different models. The one with my normal map in channel 1 and 3 looks find, but the one with Normals only in channel 3 and diffuse in 1 it makes the following errors.
As you can see the right hand side is having a weird lighting/normal error on the leftmost bumper in the front.
This is my Material I made for it
It is using COordinate Index 2 (UV channel 3 in Max)
My question is why would maving my normal map unwrap in UV channel 1 make a difference when the actual normal map is, or should only be referencing the 3rd UV channel?
I am very confused, if you are confused by my question, please do not hesitate to ask. I am really hoping to figure this out.
Replies
What is possible is that you use one UV layout for your main diffuse, normalmap and so on and than another UV layout for dirt effekts and so one. There are some nice things you can do with it.
In Ut3, Epic games used a extra UVlayer to get the "rezz in " effekt on Weapons and Vehicles. Really nice !
So i hope the answers from me and the others will help you for now
Thank you for the replies. As for the method I was using for this, it is by no means my final idea. I watched a tutorial from 3d motive and saw his method for baking normals required a break in UV shells at every 90 degree angle. It works a charm but destroys (my) texturing technique. The reason my spec and normal are on different UVs is because I wanted to test out this new method I saw with something I knew was able to be done in Unreal.
I am still tying to nail down my game pipeline and don't know if this is the best way to go about it. For anyone who may have a better idea would you mind telling me what you do when you need a 90 degree corner to show smooth in the normals? I really love this technique because it makes baking normals a breeze, but if this is a terrible pipeline choice I am by no means a slave to it.
@pricej : I tried changing the lightmap channel but it didn't do anything unfortunately. I think in the static mesh viewer its dynamic lighting anyway.
@Oniram : As above, they are different. It gave me the ability to make somethings which need more normal detail and less diffuse detail as well as bake perfect normal maps. That being said, I do not know if this is the best choice as it does add a little bit of time to the unwrapping process.
@DigitalGames : They were meant to be different. Judging by everyone reaction, this is not a normal pipeline choice haha.
Switching the diffuse and the normal channels from the way you have it now might make it work. So normals in channel 1 and diffuse in channel 3.
I also tested a mesh with a single uv channel and the addition did not seem to change the vert count.
I'm using the October build and I was told this by an industry pro over a year ago so maybe something has changed or maybe his in-house version of the engine handled it differently. But I also remember noticing this myself personally a while ago. Maybe July build. I fell kind of dumb now... Sorry folks.
[EDIT]The first mesh with 570 verts in UDK has only 508 verts in Maya. I wonder if that's how I recall noticing this myself on some other mesh.