Alpha maps for light textures?

Discussion related to the LuxRender Material system, programming API and Scene file format.

Moderators: jromang, tomb, zcott, coordinators

Alpha maps for light textures?

Postby pciccone » Tue Nov 22, 2011 12:11 pm

Hi.

We can use textures for emitters but is it possible to have alpha maps mixed in? The idea is to have a textures, for example a flame, used for the basic emitter but to have parts of the texture not emitting light. AFAIK lights only take simple textures , not materials, and we can't have alpha channels in the texture. Am I wrong?

If I am correct then there would some benefit in implementing alpha channels in the textures instead of being forced to use mix materials for that.

Cheers.
User avatar
pciccone
Developer
 
Posts: 685
Joined: Wed Jan 13, 2010 11:02 am
Location: California

Re: Alpha maps for light textures?

Postby jeanphi » Tue Nov 22, 2011 12:43 pm

Hi,

The transparency of the object is completely handled by the underlying material. The emission has no transparency, it only has a power, when it is 0, you don't have emission. For a flame, you can use a null material for the object and add emission on top of it.

Jeanphi
jeanphi
Developer
 
Posts: 6575
Joined: Mon Jan 14, 2008 7:21 am

Re: Alpha maps for light textures?

Postby pciccone » Tue Nov 22, 2011 12:48 pm

Thanks.
User avatar
pciccone
Developer
 
Posts: 685
Joined: Wed Jan 13, 2010 11:02 am
Location: California


Return to Materials, API & Scene file format

Who is online

Users browsing this forum: No registered users and 2 guests