A Problem with Modo 401 lightmaps

hey everyone,
I’ve been using modo and unity
to create this project but sometimes the
after creating 2 uv sets one for material and the
other for light maps ,some items in scene gets the
lightmaps lied correctly but some other items gets
their light maps tiled all over look at this

this room walls gots a correct lightmap position
but the floor and the door aren’t.
I don’t know if it’s fbx export issue or something else, has anyone got any idea of what should i do.
Thankx,
zoldic

http://www.geartechgames.com/GearTech_Games/Beginning_a_Project/Beginning_a_Project.html

Have a peek at the problem solving video in the above link. It looks like an issue that was covered in the tutorial, where clicking on the wrong thing swaps your UV’s.

hey Quietus i’ve been there before long time ago
in the video the guy says that if you create geometry
while choosing secondary UV’s this sawps you layer UV’s completely.
So i tried to create completely new UV’s for each object but still the problem still happens and after some time it’s fixed and i don’t why,
this very strange sometimes it works sometimes
it doesn’t,
Anyone got more ideas or experiences with this problem
ThankX
zoldic

I have just had exactly the same thing happen.

My situation was:
A model i bought had 3 different UV’s each with a material. So I created a new UV of the complete model and merged the textures into one file. Problem is… even if you delete the original 3 textures and just leave the new one, it’ll import incorrectly (like you have seen). The only way i can seem to fix them here is to totally delete ALL the UV’s and then create a new one. Visually in Modo the result is the same - 1 UV. The difference is not to delete UV’s leaving the one you want, but to delete all the UV’s and create the one you want.

Not sure any of that made any sense?!

Matt.

Two things I’m noticing… one is that the you’re tiling the Primary UV on the wood floor 4 by 3. What happens if you turn that tiling to 1. I’m not entirely convinced that 2 UVs are exporting/importing. The second thing is you have some FBX import errors in the console log… what do they say? :wink:

hi again,
so I’ve been trying what fallingbrickwork said and it works sometimes but not always with complex scenes
and aNTeNNa trEE I think tiling wasn’t the reason
as you see here

the tiling is set to 1:1
and the fbx error was just from another model in that scene and it’s gone now
so i think this workflow is good but has some issues
so if anyone knows other effective workflows to produce similar models with less errors please share Thanx,
zoldic

Are you using the same UV map for the diffuse and thye lightmap? I don’t mean just 1 UV as you are obviously creating a 2nd for the lightmap, I mean, are both your UV’s the same? If so, the problem is due to the tiling as aNTeNNa trEE suggests.

You change the scale factor on the UV in Modo to create the correct tiling for your diffuse. Then create a 2nd UV for the lightmap and just leave that as it is (as a test don’t scale or repack these poly’s). When you then bake the lightmap with this second UV, you see every poly on the UV map and texture, not just 1 light map. ie.

Diffuse:

LM:

I think this is what you are doing though. Maybe, when you create your second LM UV leave it as it comes out, don’t oriantate the polys or fit them to UV space and see if you get the same result. And don’t forget to resave the model and re-import it into Unity (if it doesn’t automatically update)… i’ve done that a few times!

Matt.

Hi again,
Well i’ve been working on this file again today
and actually what i do is that after creating the diffuse UV i change it (scale and rotation) and when i create the lightmap UV’s i don’t change it.
so do you think this could be related to material assigning when i started the project or what could it be !!!
appreciate your help guys,
zoldic