Page 1 of 1

Alpha blending and Lightmapping

PostPosted: Mon Jul 12, 2010 12:58 pm
by Justintime9
In an age I'm working on I've been trying to make a quarry in which there is more than one type of rock blending into others. In order to do this I've duplicated part of the mesh and textured them differently than the initial mesh. Then I used Alpha paint to blend the textures. I then lightmapped the whole quarry. After entering URU, the blending looks fine. However the rock that I duplicated and blended do not show their texture, only the lightmapping.

Here's how it looks in blender:

Image

and here's how it looks in URU:

Image

Image

Notice the brown rock has detail, but the white rock texture is only visible around the edges. Does anyone know what might be causing this?

Re: Alpha blending and Lightmapping

PostPosted: Mon Jul 12, 2010 11:04 pm
by Paradox
Are you using actual lightmapping flags (AMB button if I recall... but I could be wrong), or just a texture layer set to Add?

Re: Alpha blending and Lightmapping

PostPosted: Mon Jul 12, 2010 11:39 pm
by kaelisebonrai
Multiply, iirc, 'dox. =)

And it looks like that would be the issue, yes. =P

Re: Alpha blending and Lightmapping

PostPosted: Tue Jul 13, 2010 7:32 am
by Paradox
Lightmaps can't quite use Add or Multiply... they need to multiply shadows, but add light, which is why I prefer to use Cyan's special lightmap flag to do it automatically.

Re: Alpha blending and Lightmapping

PostPosted: Tue Jul 13, 2010 7:51 am
by kaelisebonrai
Well, that's what it gets set to, in blender, in any tutorial I've ever seen. =P

Re: Alpha blending and Lightmapping

PostPosted: Tue Jul 13, 2010 8:00 am
by Paradox
Your lightmapped layer should have the AMB button turned on in the material texture settings. That exports with the correct flags and should solve your issue.

The button is in the right-most panel here, top row:
Image

Re: Alpha blending and Lightmapping

PostPosted: Tue Jul 13, 2010 8:27 am
by Justintime9
Awesome, the AMB button fixed it! I actually used to press AMB when making a lightmap, but noticed that it rarely makes a difference. I guess I should start using it again. :P

Re: Alpha blending and Lightmapping

PostPosted: Tue Jul 13, 2010 9:18 am
by kaelisebonrai
Paradox wrote:Your lightmapped layer should have the AMB button turned on in the material texture settings. That exports with the correct flags and should solve your issue.

The button is in the right-most panel here, top row:
Image


Hms, interesting. Time to check my settings, then.

And time to check out why the tutorials I've seen for Uru all suggest multiply. =/

EDIT

Well, well, that is interesting...

I've got mine set to blend with multiply, and use AMB, as well. Weird. =P