Problem with Opacity Map on Particles

Discussions regarding Materials, Material-Compounds or Shaders, etc.
Post Reply
7rayes
Posts: 9
Joined: 09 Jan 2011, 04:37

Problem with Opacity Map on Particles

Post by 7rayes » 14 Jan 2011, 08:54

I'm applying a simple white/black opacity map onto the shader of some rectangular shaped particles, using ice... but for some reason roughly half of the particles are not opaque like they should be, while the other half renders fine... I'm assuming this has to do with which side of the particle is facing the camera, but if so I can't figure out how to render correctly.
The only way I can get it to work is if I use a constant shader, which I would really prefer not to use as I need some specular, so any help on how to use opacity maps with particles on standard blinn/phong ect.. shaders would be much appreciated. ^:)^
How many malicious people, as unending as space, can I kill?
When the mind-state of anger is slain, then all enemies are slain.

-Shantideva

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: Problem with Opacity Map on Particles

Post by Hirazi Blue » 14 Jan 2011, 13:55

Sorry for the probably painfully obvious question,
but where does your opacity map come into play?
In the ICE Tree or in the Render Tree?
And are you trying to use the map per particle or per cloud? :-\
Stay safe, sane & healthy!

7rayes
Posts: 9
Joined: 09 Jan 2011, 04:37

Re: Problem with Opacity Map on Particles

Post by 7rayes » 14 Jan 2011, 20:10

lol np, not so obvious here.
I've applied the opacity in the render tree onto the particle cloud.
I've been keeping it as simple as possible for now, a default blinn shader, with an opacity map plugged into its transparency slot.
How many malicious people, as unending as space, can I kill?
When the mind-state of anger is slain, then all enemies are slain.

-Shantideva

User avatar
origin
Posts: 619
Joined: 09 Jun 2009, 11:59
Location: warsaw

Re: Problem with Opacity Map on Particles

Post by origin » 14 Jan 2011, 22:25

its working here. can you post a scene?

7rayes
Posts: 9
Joined: 09 Jan 2011, 04:37

Re: Problem with Opacity Map on Particles

Post by 7rayes » 14 Jan 2011, 23:02

Sure here are a few quick renders:

Phong Shader.. maybe not the best frame to capture, but some render fine, and some as you see here show the full rectangle.
Image

Constant Shader (Which works right but I don't want constant)
Image
How many malicious people, as unending as space, can I kill?
When the mind-state of anger is slain, then all enemies are slain.

-Shantideva

User avatar
origin
Posts: 619
Joined: 09 Jun 2009, 11:59
Location: warsaw

Re: Problem with Opacity Map on Particles

Post by origin » 15 Jan 2011, 00:18

This 'rectangle' is probably specular reflection. You must mask out specular as well. Or use arch shader with cut_off - It could be faster than phong/blinn.

7rayes
Posts: 9
Joined: 09 Jan 2011, 04:37

Re: Problem with Opacity Map on Particles

Post by 7rayes » 15 Jan 2011, 04:21

I tried disabling specular on the shader awhile back... and it still would not render correctly, so assumed it must be something else. But I just tried plugging my opacity map into the specular channel as well, and it renders fine now!
Thanks for that. *-:)
How many malicious people, as unending as space, can I kill?
When the mind-state of anger is slain, then all enemies are slain.

-Shantideva

Zafar Iqbal
Moderator
Posts: 169
Joined: 26 Oct 2009, 10:04

Re: Problem with Opacity Map on Particles

Post by Zafar Iqbal » 13 Feb 2011, 06:16

The arch shader cut_off feature as origin mentions, or using the Sprite shader is a much simpler and predictable approach. You should lean towards one of those in the future.
- Zafar Iqbal

Post Reply

Who is online

Users browsing this forum: brandwatch [Bot] and 21 guests