WtymonrW Posted April 21, 2015 Share Posted April 21, 2015 SetColor(1,1,1, 0.5) don't work(For each models in fame). I've tried everything. Help, please. What am i doing wrong? Quote Link to comment Share on other sites More sharing options...
CreativeOcclusion Posted April 21, 2015 Share Posted April 21, 2015 "SetColor(1,1,1, 0.5)" context:SetColor(1,1,1,0.5) Quote Link to comment Share on other sites More sharing options...
WtymonrW Posted April 21, 2015 Author Share Posted April 21, 2015 "SetColor(1,1,1, 0.5)" context:SetColor(1,1,1,0.5) No. It set transparency for all drawing. I need only one model Quote Link to comment Share on other sites More sharing options...
CreativeOcclusion Posted April 21, 2015 Share Posted April 21, 2015 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 Quote Link to comment Share on other sites More sharing options...
WtymonrW Posted April 21, 2015 Author Share Posted April 21, 2015 CreativeOcclusion, I'm don't use editor and material. And "Context->SetColor" work normally. Dont work "Model->SetColor" Quote Link to comment Share on other sites More sharing options...
shadmar Posted April 21, 2015 Share Posted April 21, 2015 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); 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
WtymonrW Posted April 23, 2015 Author Share Posted April 23, 2015 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.