Tom Pearce wrote: > Theo, > > There should be plenty of resources for learning how to create and manipulate > 2D objects - it is fundamentally just like creating 3D objects, only the > polygon(s) are all in a plane. You can just create a set of vertices > manually to start with. If you've found the examples that deal with 3D > shapes, I'd suggest starting there. If you can understand that, you're > pretty much there! Maybe start with just creating spheres and see if that > helps you understand. Try the plane primitives using example code if you > really need more guidance... the billboard example may also give you a sense > of how to create some 2D geometry. > > Cheers, > Tom
Hi Tom! Thank you for your reply. I can see now tons of tutorials and examples around on 2D shapes. I guess I was just using the wrong keywords for my searches. Kinda embarassing... sorry about that. Anyway, I managed to create some 2d objects but I'm still struggling with creating a 2D circle for my halo. I could draw it by adding a lot of points to an array and then drawing using the LINE_LOOP primitive. The only problem is that even though I'm using a simple circle equation (x^2 + y^2 = radius^2) and adding a LOT of points, the circle is still a little squared. Also, I'm worried about the cost of solving the math involved. Do you think of a better way to draw it? Again, thank you for your assistance. Best Regards, Theo ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28912#28912 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

