Re: [osg-users] heightfield height

2009-12-05 Thread Thomas Maier
Hi, also when i use negative values in the setHeight() call, the heightfield draws seemed to got its origin in the x=0, y=0 coordinate of the viewer window? is it not allowed to use negative values as heightfield heights? Thank you! Cheers, Thomas -- Read this topic online her

[osg-users] heightfield height

2009-12-05 Thread Thomas Maier
Hi, i cannot find anything in the wiki about it, i got a heightfield set to a heightieldlayer and this one i set as elevationlayer to a terraintile. now i cannot find any doc about allocate, setXInterval and setYInterval. If i setup e.g. allocate(100,100) and set[X,Y]Interval(1.0), then i set a

Re: [osg-users] display terrainTile

2009-12-02 Thread Thomas Maier
Hi, thanks alot, after inserting the technique it complained about a missing locator, now it works. thanks alot Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20764#20764 ___

[osg-users] display terrainTile

2009-12-02 Thread Thomas Maier
Hi, i got this little piece of code, with which i wanna display a heightfield. I read that for performance reasons one should use terrainTile and add the heightfield to it, but i dont get it to display in the viewer? i know the osgTerrain example, but i find it is too big for starting. i hope s

Re: [osg-users] heightfield change height crashes

2009-11-25 Thread Thomas Maier
Hi, i inserted the dirtyDisplayList() into an update callback which i set with setUpdateCallback() and it works, but only if i click into the viewer window and move the heightField ? thanks for the help, i will try also the other variants, to see if they work better. Thank you! Cheers, Thom

Re: [osg-users] heightfield change height crashes

2009-11-23 Thread Thomas Maier
Hi, i use SingleThreaded, i got no multithreading enum property only these SingleThreaded, CullDrawThreadPerContext, ThreadPerContext = CullDrawThreadPerContext, DrawThreadPerContext, CullThreadPerCameraDrawThreadPerContext, Th

Re: [osg-users] heightfield change height crashes

2009-11-23 Thread Thomas Maier
Hi, i only have set ->setDataVariance(osg::Object::DYNAMIC); to the geode, now i also have set it to the shapeDrawable. Should i apply it only to the shapeDrawable or to both? After this change it draws the first point of my setHeight() changes, any following setHeight() call doesnt paint anyt

[osg-users] heightfield change height crashes

2009-11-23 Thread Thomas Maier
Hi, i created a geode and a heightfield, then i created a shapeDrawable with the geode as argument. After that i addDrawable to the geode, and the geode to the group. Now i can see the heightfield, but when i now try to change a height it does not update the frame? when i use dirtyDisplayList()

Re: [osg-users] [build] rotating a geometry?

2009-10-31 Thread Thomas Maier
Hi, it seemed that all translations/transformations are done with a PAT, but when i rotate the PAT object which does not sit at position 0,0,0 of the "world-coordinates", but it rotates around the world-coordinate-axis, but i want to rotate around a axis of the object itself? I tried code like

Re: [osg-users] [build] rotating a geometry?

2009-10-30 Thread Thomas Maier
Hi, i can rotate an geometry when i use osg::PositionAttitudeTransform* rectangleTwoXForm = new osg::PositionAttitudeTransform(); and add the geometry with rectangleTwoXForm->addChild(rectangleGeode); then i can rotate the rectangleTwoXForm with e.g. rectangleTwoXForm->setAttitu

[osg-users] [build] rotating a geometry?

2009-10-30 Thread Thomas Maier
Hi, i build an L-shape-plate with a geode and a geometry, but it could also consist out of two plane-boxes, one box 90 degress folded up to the other. I get it to move around in the scene with setPosition() member function, but i wanna control the geometry, so that it e.g. rotates? How can i do

Re: [osg-users] [build] how to build basicGeometry example?

2009-10-29 Thread Thomas Maier
Hi, thanks for the help. I am on debian there it seemed i must use lower-case find_package(osg), not OSG. the line target_link_libraries(testProjectMain ${OSG_LIBRARY} ${OPENTHREADS_LIBRARY}) works with "OpenThreads" , but ${OPENTHREADS_LIBRARY} it cannot find Thank you! Cheers, Thomas ---

[osg-users] [build] how to build basicGeometry example?

2009-10-28 Thread Thomas Maier
Hi, i used the source code on this site http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/BasicGeometry, then i build test-src/ and test-build/ directories. Into test-src/ dir i put in the file main.cpp with the example code. Then i created a CMakeLists.txt file and put into it