Christian Kanthak wrote:
Hello,
i have made a cones geometry core with Simple Geometry function:
GeometryPtr coneGeo = osg::makeConeGeo(...);
Then i have changed the material, cause i want the cone to be
transparent. After that, i create a node for the core:
NodePtr n = Node::create();
beginEditCP(n);
beginEditCP(geo);
SimpleMaterialPtr material = SimpleMaterial::create();
beginEditCP(material);
material->setLit(false);
material->setTransparency(0.25);
material->setDiffuse(Color3f(1,0,0));
endEditCP(material);
geo->setMaterial(material);
n->setCore(geo);
endEditCP(geo);
endEditCP(n);
But the cone isn't transparent. Can someone tell me why?
Is the color correct? Otherwise make sure you do not have a material set
in any of the parent nodes above this one.
/Marcus
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users