Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Alpha channel model issue


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 post

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);

Link to post

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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Facebook Twitter Youtube Github Steam
×
×
  • Create New...