Hello all,
I'm analyzing the vertices of a geometry like so:
Code:
osg::Array *pVertexArray = pGeometry->getVertexArray();
int nVertices = (int)(pVertexArray->getNumElements());
osg::Vec3 *pVertexData = (osg::Vec3 *)(pVertexArray->getDataPointer());
for (int i = 0; i < nVertices; i++)
{
float f
Hi,
I have met the same problem recently. Have you solved this problem?
...
Thank you!
Cheers,
Guo
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63090#63090
___
osg-users mailing list
osg-users@
Hi Erik,
Your code is rather perverse and potentially unsafe way to get at the xyz
coords, but if the array is a Vec3Array then it should probably work OK.
A better way to look at to coords is to cast the array to a Vec3Array and
access the vertices via the std::vector<> methods (Vec3Array subcla
Hello,
Even though I have been inactive in the past 3 years, I wanted to inform
anyone who might be interested. Since Google Code is closing down in
less than a year
(http://google-opensource.blogspot.ca/2015/03/farewell-to-google-code.html),
I went ahead and moved my old pet project osgboost
I'm currently using osgOculusViewer in conjunction with osg::Text to try and
create a GUI. Thing is, the text isn't being displayed as I'd expect.
The text appears to be mirrored.
___
osg-users m
Hi,
I am new to OpenSceneGraph,
I want to load multiple nodes and transform to their coordinates.
My code looks like;
Code:
osg::Node* myNodes[10];
osg::PositionAttitudeTransform * myXForm =new osg::PositionAttitudeTransform();
for (row=0; row<10; row++) {
myNodes[row] = osgDB::readNodeFile("m
Paul has been moving his projects to Google Code today. I think the
GoogleCode osgephemeris was the official one now, per Don.
Jeremy wasn't feeling well this weekend, but I expect he'll be moving his
projects.
If anyone needs help re-hosting, just shout. It's pretty straightforward.
On Sat, Mar
7 matches
Mail list logo