Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Shader issue with alpha

Please report bugs in this group. We will maybe populate a list of known bugs with a possibly modified description at a later time.

Moderator: Support

Post Reply
User avatar
Robert
Posts: 318
Joined: 21 Jan 2012, 09:25
Location: Toulouse - France
Contact:

Shader issue with alpha

Post by Robert » 29 May 2020, 19:01

Hi devs,

I think that we have a problem with alpha in HLSL shader.

The green circle should be totaly transparent in the second case. Look at the attached pictures and the shader code.

We would appreciate a quick fix if it's a real bug.

Thx

R
Attachments
Capture2.JPG
Capture.JPG

User avatar
lerou
Posts: 345
Joined: 06 Sep 2013, 07:14
Location: Hamburg, Germany

Re: Shader issue with alpha

Post by lerou » 29 May 2020, 20:56

The output is pre-multiplied. Apply your alpha to RGB before outputting it (multiply RGB * A)
Attachments
pre-multiplied.jpg

User avatar
Robert
Posts: 318
Joined: 21 Jan 2012, 09:25
Location: Toulouse - France
Contact:

Re: Shader issue with alpha

Post by Robert » 29 May 2020, 21:30

Ok man you are my master :oops:

Thank you lerou !

R

remi_agi
Posts: 19
Joined: 07 Jun 2012, 15:08

Re: Shader issue with alpha

Post by remi_agi » 31 May 2020, 12:50

Hello lerou,

Do you know the new semantic for this ?

Code: Select all

AlphaBlendEnable = TRUE;
...
AlphaBlendEnable
AlphaTestEnable
BlendOp
CullMode
DestBlend
SrcBlend
StencilEnable
StencilFail
StencilFunc
StencilMask
StencilPass
StencilRef
StencilWriteMask
StencilZFail
ZEnable
ZFunc
ZWriteEnable

User avatar
lerou
Posts: 345
Joined: 06 Sep 2013, 07:14
Location: Hamburg, Germany

Re: Shader issue with alpha

Post by lerou » 31 May 2020, 15:39

Those parameters can be set up using native Ventuz nodes.

User avatar
lerou
Posts: 345
Joined: 06 Sep 2013, 07:14
Location: Hamburg, Germany

Re: Shader issue with alpha

Post by lerou » 01 Jun 2020, 06:23

you can also set them up in the technique section of the Shader. See Ventuz doc for details.

Post Reply