Jump to content

Alpha channel model issue


WtymonrW
 Share

Recommended Posts

with only one line of code it is hard to see what the problem is....but it might be the blend mode....

 

context:SetBlendMode(Blend.Alpha)

context:SetColor(1,1,1,0.5)

context:SetBlendMode(Blend.Solid)

 

you will want to turn it back to solid ...

 

have you set the alpha in the material editor for the model?...that should be all you need

Link to comment
Share on other sites

You still need to set blendmode, so something like this might work:

 

Material* material = Material::Create();
material->SetColor(1,0,0,0.5);
material->SetBlendMode(Blend::Alpha);
model->SetMaterial(material);

it stiil work not correctly - it is alpha 0.01

post-14308-0-92280900-1429773318_thumb.png

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...