Jump to content

Recommended Posts

Posted

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

Posted

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

  • Upvote 1

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

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

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.

×
×
  • Create New...