Stingray Forum (Read Only)
Welcome to Autodesk’s Stingray Forums. Share your knowledge, ask questions, and explore popular Stingray topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Alpha Images

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
thearshadnadeem
1866 Views, 11 Replies

Alpha Images

Screenshot 2015-09-07 16.50.19.jpg

 

hi 

 

i am trying to import a fence model from maya i have textured it it has transperancy channel i imported this model with various pic formats like png,tiff,targa but its still show the tranperancy as a black texture pls help me out how can i import models which has tranperancy channel or alpha channel pls help

 

thanks

Arshad Nadeem.

11 REPLIES 11
Message 2 of 12

.png or .tga is fine,

 

Just make sure your parent material is standard_masked and use color map alpha is checked.

 

If you compress the image in Stingray, make sure its DTX5, DTX1 does not support alpha.

 

mask.PNG

Message 3 of 12

Screenshot 2015-09-09 09.56.58.pngScreenshot 2015-09-09 09.57.32.pngScreenshot 2015-09-09 09.58.15.png

 

i tried like u said so i am sending these images i think i m making some mistake it's not working with me ?

Message 4 of 12

Hello, my guess here is that your color image does not have an alpha channel. You can do this by using png and leaving the parts you want not rendered empty or you can add the alpha channel mask to a tga and import. 

 

PNG

 

alphapng.JPG

 

TGA

 

alphatga.JPG

______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Message 5 of 12
mcm85_85
in reply to: dan.matlack

I have tried to use an image with alpha channel but white borders appear when I rotate the 3D object.

 

Message 6 of 12
dan.matlack
in reply to: mcm85_85

I am looking into this now and will get back to you.
______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Message 7 of 12
mcm85_85
in reply to: dan.matlack

Thank you!

I forgot to mention that I set Color Map - Filter mode = Point

 

 

Message 8 of 12
lumonix
in reply to: mcm85_85

Hi,

 

I think what is going on is that you have partially transparent pixels in the image around the edges.

 

In the image Dan sent me, there are partially transparent pixels anyway.

 

That is how PNG handles alpha masks in Photoshop, but those partially transparent pixels become grey when importing the PNG

 

For your mask, you want to remove those in Photoshop and only have black or white pixels.

Or, if that is hard, you can increase the Opacity Threshold of the material a little to remove more of the pixels.

 

Message 9 of 12
dan.matlack
in reply to: mcm85_85

Kees is correct. I think a good solution for your issue would be create a better photoshop image. See attached example at a higher resolution with harder edges. In the image below, you can see your star in the back ground with a newer one I created on top. Those 'gray' and 'softer' edges at a lower resolution will definitely cause the white you see on your edges in engine. Try the attached image and see how it goes.

 

resolution.JPG

______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Message 10 of 12
mcm85_85
in reply to: dan.matlack

Yes, it solve the problem but I'm using a texture atlas.

Can I reduce the problem by using two Color Map, one for base color (Filter mode = Point) and one for opacity (Filter mode = Anisotropic)?

Message 11 of 12
dan.matlack
in reply to: mcm85_85

I'm not sure how that will work out as any different if your resolution is still fairly low. With the pngs you can get fairly good quality at lower file sizes, would reduce the need for a texture atlas at all -- unless that is just part of your workflow :). Just try to make sure you have crisp edges to go with on your masks and that should work out!
______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Message 12 of 12
mcm85_85
in reply to: dan.matlack

After many attempts I managed to remove the defect by changing the value of Mask Threshold Cat Happy,

even if, by rotating the object now seem to appear some empty space along some UV border (probably caused by the low-resolution texture).

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report