Hi,
Hi,
I am working on an application that is currently using a Cylinder Drawable
object.
However I had read that if you have plans on using drawables in a final
application that needs high-performance then you probably should create your
own geometry library. (from osghelp site)
I am usin
Hi Sanat,
I am working on an application that is currently using a Cylinder Drawable
object.
You probably mean ShapeDrawable, since Drawable is the base class for
all drawable objects (including osg::Geometry).
How Can I go from using a Drawable to actual geometry ?
You have to calculat
Hi Jean,
Thanks for your post. It was very helpful indeed. (yes I mean ShapeDrawable)
My main reason for wanting to create Geometry is that I need to divide the
Cylinder object into primitives for further processing and the parser that I
had written doesn't seem to work with an osg file created
Hi Sanat,
My main reason for wanting to create Geometry is that I need to divide the
Cylinder object into primitives for further processing and the parser that I
had written doesn't seem to work with an osg file created from ShapeDrawable.
So I inferred that I need to create geometry rather th
On 2/23/2011 7:45 PM, Jean-Sébastien Guay wrote:
>> My main reason for wanting to create Geometry is that I need to divide the
>> Cylinder
>> object into primitives for further processing and the parser that I had
>> written doesn't
>> seem to work with an osg file created from ShapeDrawable.
>>
Hi Chris,
Thanks for the link. I'll take a look. Seems very promising.
Thanks
Sanat.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37089#37089
___
osg-users mailing list
osg-users@lists.opensceneg
Hi Jean,
I modified the code in the functions and it seemed fairly straightforward.
However, I notice that all the cylinders are rendered at the origin inspite of
me doing a glTranslate (which I have commented out now).
When I opened the osg file I noticed that the matrix had its last column a
The problem with the code was that I was not setting the matrix translation and
rotation correctly.
I was doing the following which was not working:
translateToCenter =
Code:
osg::Matrix::translate(osg::Vec3(shapefileVertexArray->at(i).x(),
8 matches
Mail list logo