x


Alpha Channel: Want a gradient blend fade of transparency using Targa with alpha Channel

I have a cone of light that I want to use for a lighthouse:

Using alpha channels with a grey to white gradient shape in the alpha channel. I am using photoshop to create rgb texture with a alpha channel and saving as a targa file.

I attempting changing the shader in Unity to transparent/cutout/diffuse but that proved unfruitful.

I want the rotating cone to start as visible and fade to invisible.

Made and exported to fbx using maya

more ▼

asked Apr 28 '11 at 02:38 AM

Alex 23 gravatar image

Alex 23
1 2 2 5

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I ended up using the material particle/alpha blended for the light cone and that gave me the desired effect although I not sure if it was the right approach

more ▼

answered May 04 '11 at 01:54 AM

Alex 23 gravatar image

Alex 23
1 2 2 5

(comments are locked)
10|3000 characters needed characters left

You don't want to use cutoff, just use the regular transparent/diffuse. Cutoff literally clears any pixels with an alpha below a certain threshold. Using the regular transparent. The pixels are alpha-blended to be laid over the current image.

more ▼

answered Apr 28 '11 at 03:01 AM

Peter G gravatar image

Peter G
15k 16 44 136

I used that material but when I start the scene in unity the entire cone is still visible. Here is what I am looking at and the setting being used.

http://www.flickr.com/photos/47648476@N06/5665855892/in/photostream/lightbox/

http://www.flickr.com/photos/47648476@N06/5665855958/in/photostream

Apr 28 '11 at 06:54 PM Alex 23

Black is entire invisible. Gray will be somewhere in between, and white will be entirely visible. Also make sure that you imported the texture into Unity as a type that includes an alpha channel.

Apr 30 '11 at 07:51 PM Peter G
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x491
x23
x21

asked: Apr 28 '11 at 02:38 AM

Seen: 1496 times

Last Updated: Apr 28 '11 at 02:38 AM