Jump to content

Using texture with an Alpha channel


VicToMeyeZR
 Share

Recommended Posts

I am curious.

 

I have a texture with an Alpha channel applied.

 

How do I get the material to render correctly with that channel?

 

or another option. set 2 textures in the MAT, and assign one as an alpha?

 

Which is better?

AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD

76561197984667096.png

Link to comment
Share on other sites

I am curious.

 

I have a texture with an Alpha channel applied.

 

How do I get the material to render correctly with that channel?

 

or another option. set 2 textures in the MAT, and assign one as an alpha?

 

Which is better?

 

are you referring to taking advantage of the transparency or setting the specular from a bumpmap?

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

well, I have a texture on one of my models, the RGB channel is a solid color, and it has an alpha channel to make it look like rust/dirt.

 

So I really have no idea.

 

I can assign the opacity texture in UU3D, but I don't know how to translate that to LE.

AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD

76561197984667096.png

Link to comment
Share on other sites

the first is the regular texture. with UU3D, I can set another texture to the opacity, and get the effect.

 

But I don't know how to get that to work in LE.

 

I don't know if you can assign an opacity texture, or if you have to use the alpha blend, either of which I don't know how to accomplish

post-234-12653340122508_thumb.png

post-234-1265334031734_thumb.png

AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD

76561197984667096.png

Link to comment
Share on other sites

ok i see what you are saying... that looks like another surface ontop of the wall surface... so i assume you could do just like the hydro scene does... it has a number two laying ontop of the concrete wall... the number two material has this:

 

texture0="abstract::lettering02.dds"
texture1="abstract::lettering02dot3.dds"
blend=alpha
depthmask=0
zsort=1
overlay=1

 

where its blending and doing the overlay... im not sure about what you want to use on the mapping in your app tho... i would assume that you would just map that texture just like a normal diffuse and not as a opacity map.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

yeah... I did. I thought I had to have the Alpha shader.

 

Also, setting this line

blend=alpha

is that the same as setting

blend=1

?

 

btw, thank you Mac

 

i dunno about what the numerical equivalent of alpha would be... does it give the same result?

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

0 - solid (default)
1 - alpha
2 - light
3 - shade
4 - mod2x

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...