Alpha blending and Lightmapping

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Alpha blending and Lightmapping

Postby Justintime9 » Mon Jul 12, 2010 12:58 pm

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?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Alpha blending and Lightmapping

Postby Paradox » Mon Jul 12, 2010 11:04 pm

Are you using actual lightmapping flags (AMB button if I recall... but I could be wrong), or just a texture layer set to Add?
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Alpha blending and Lightmapping

Postby kaelisebonrai » Mon Jul 12, 2010 11:39 pm

Multiply, iirc, 'dox. =)

And it looks like that would be the issue, yes. =P
User avatar
kaelisebonrai
 
Posts: 849
Joined: Sun Feb 03, 2008 3:27 am
Location: Perth, Western Australia

Re: Alpha blending and Lightmapping

Postby Paradox » Tue Jul 13, 2010 7:32 am

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.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Alpha blending and Lightmapping

Postby kaelisebonrai » Tue Jul 13, 2010 7:51 am

Well, that's what it gets set to, in blender, in any tutorial I've ever seen. =P
User avatar
kaelisebonrai
 
Posts: 849
Joined: Sun Feb 03, 2008 3:27 am
Location: Perth, Western Australia

Re: Alpha blending and Lightmapping

Postby Paradox » Tue Jul 13, 2010 8:00 am

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
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Alpha blending and Lightmapping

Postby Justintime9 » Tue Jul 13, 2010 8:27 am

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
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Alpha blending and Lightmapping

Postby kaelisebonrai » Tue Jul 13, 2010 9:18 am

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
User avatar
kaelisebonrai
 
Posts: 849
Joined: Sun Feb 03, 2008 3:27 am
Location: Perth, Western Australia


Return to Building

Who is online

Users browsing this forum: No registered users and 6 guests

cron