Hi Christian,
On Thu, 2006-04-27 at 15:12 +0200, 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?
If you just have a single unlit cone it's impossible to see whether it's
transparent or not. I tried your code, and the cone is transparent
(there is the usual face sorting problem, but that's a different story).
It's easy to see if you turn lighting on for testing.
Hope it helps
Dirk
-------------------------------------------------------
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