Game Development Community

How to get rid of this warning

by BigWings · in Artist Corner · 12/17/2009 (1:03 pm) · 4 replies

Hey all,

I have the following warning on a lot of my objects that I exported as ASE from Blender:

Submaterial has a diffuse map but no UV2 channel for lightmap coordinates. Mapping UV1 and UV2 to be identical.

which is most probably the cause of the following error:
Mesh has lightmap coordinates outside the 0 to 1 range.

I have lightmap uvs on channel 1 and diffuse uvs on channel 2, and are exporting with LMM_
I checked the lightmap uvs and they are not outside of the 0 to 1 range so I suspect it has something to do with the submaterial warning.

Does anyone know how to fix this?

M

#1
12/17/2009 (1:40 pm)
I'm not sure if this will correct it, but you should probably use Diffuse on UV map 1. UV map 2 is the default for lighting.

Switch them and see if it works.
#2
12/17/2009 (5:54 pm)
You mean switch them in Blender? I don't think there is any easy way to do that. On top of that, I am using LMM which I believe needs the first uv channel to be lightmap.
#3
12/20/2009 (8:18 pm)
Does no-one have any idea?
#4
12/21/2009 (10:50 am)
Lightmaps are coded to work on the 2nd UVW set, other per-pixel effects work on the 1st UVW set. So correct this first and if its still a problem post a follow-up.