Re: [osg-users] Render To Image Crash in RenderStage.cpp - trunk

2011-04-18 Thread Matthias Asselborn
what can i do? ive always a crash? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38569#38569 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Render To Image Crash in RenderStage.cpp - trunk

2011-04-16 Thread Matthias Asselborn
nobody an idea? i tried another thing, but there is no sceneobject on the image ive also tried the osgscreencapture example is there a way to get rid of the callback? i need only one screenshot Code: void render() { osgUtil::SceneView *SceneView = new osgUtil::SceneView;

[osg-users] Render To Image Crash in RenderStage.cpp - trunk

2011-04-15 Thread Matthias Asselborn
Hi, i want to render a loaded scene into an image. i dont want to see any viewer windows. I have tried to realize it with osg::Viewer, but after the call viewer-frame a viewer window poped up. Now ive tried it with osgUtils::SceneViewer but after the draw call - the program crashes whats

[osg-users] How to improve lighting - headlight brighter

2010-04-13 Thread Matthias Asselborn
Hi, here is a screenshot of my scene, iam using the standard headlight how can i improve the brightness ive already implemented a light source too... light-setAmbient(osg::Vec4(0.0f,0.0f,0.0f,1.0f)); light-setDiffuse(osg::Vec4(1.0f,1.0f,1.0f,1.0f));

[osg-users] osgWidget WindowManager - EventInterface ?! const ?!

2010-03-28 Thread Matthias Asselborn
Hi, i want to controll my camera over a osgWidget. ive implemened the mousePush method from EvenetInterface Code: bool mousePush(double, double, const osgWidget::WindowManager* wm2) { osgWidget::WindowManager* t = const_castosgWidget::WindowManager*(wm2);

[osg-users] change yellow active color osgManipulator

2010-02-15 Thread Matthias Asselborn
Hi, how can i change the color ( yellow ) of an active manipulator Thank you! Cheers, Matthias -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24186#24186 ___ osg-users mailing list

Re: [osg-users] Question about osgManipulator::GridConstraint

2009-11-26 Thread Matthias Asselborn
Hello, Robert, did you get the file? Thank you! Cheers, Matthias -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20445#20445 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Question about osgManipulator::GridConstraint

2009-11-24 Thread Matthias Asselborn
Hi, now i tested it with the old command manager but it didnt work is there a bug in GridConstraint? I need a snapping to given points Can anybody help me? Code: osgManipulator::GridConstraint *con = new osgManipulator::GridConstraint( *root , osg::Vec3(0,0,0), osg::Vec3(1.1,1.1,1.1 ) ) ;

Re: [osg-users] Question about osgManipulator::GridConstraint

2009-11-24 Thread Matthias Asselborn
Thank you very much Robert for this reply! here is the whole code ive modified the method addDraggerToScene Code: /* OpenSceneGraph example, osgmanipulator. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files

Re: [osg-users] osgManipulator error bug? in removeTransformUpdating

2009-11-21 Thread Matthias Asselborn
Hi, ive checked the trunk, it works - thanks a lot Thank you! Cheers, Matthias -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20064#20064 ___ osg-users mailing list

Re: [osg-users] Question about osgManipulator::GridConstraint

2009-11-18 Thread Matthias Asselborn
nobody any ideas? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=19785#19785 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Question about osgManipulator::GridConstraint

2009-11-13 Thread Matthias Asselborn
Hi, iam using the trunk of OSG I want to have a snap grid for the dragger. I found the class GridConstraint can anybody tell me how it works? Code: osg::Node *n= new osg::Node; osgManipulator::GridConstraint *con = new osgManipulator::GridConstraint( *n , osg::Vec3(0,0,0),

[osg-users] Bug in osgGA::SphericalManipulator

2009-11-10 Thread Matthias Asselborn
Hi, i tried to use -Y as up vector i set it in MatrixManipulator and i tried to set Code: SphericalManipulator *spm = new SphericalManipulator; spm -setHomePosition( osg::Vec3( 0,0,0 ),osg::Vec3( 0,0,0 ),osg::Vec3( 0,-1,0 ) ); both changes doesnt work because

Re: [osg-users] osgManipulator bug in removeTransformUpdating

2009-11-04 Thread Matthias Asselborn
nobody an idea? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=19198#19198 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] osgManipulator error bug? in removeTransformUpdating

2009-11-01 Thread Matthias Asselborn
Hi, iam using the trunk of OSG i ve a simple code snipped a Group with a dragger and two transformmatrix objects and their childs there is no problem to call the method pDragger-addTransformUpdating( pTransformBrick1 ); pDragger-addTransformUpdating( pTransformBrick2 ); but when i call the

[osg-users] Whats going wrong in osg::Simplifier and osg::LOD

2009-10-08 Thread Matthias Asselborn
Hi, i want to auto generate a few LODs with osg::Simplifier then i want to add these nodes to an LOD whats going wrong i see only the first Node from 0 - 300 pixels distance iam using Version 2.8.2 of OSG Code: int main( int argc, char **argv ) { glutInit(argc, argv);

Re: [osg-users] osgGA::GUIEventAdapter::MOVE: doesnt work

2009-06-01 Thread Matthias Asselborn
iam holding the mouse button not down. i want a pick each time i move my mouse! i thought its implemented with : MOVE ... but its not working ... Thank you! Cheers, Matthias -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13254#13254

Re: [osg-users] osgGA::GUIEventAdapter::MOVE: doesnt work

2009-06-01 Thread Matthias Asselborn
Thank you Robert your example works perfect this is exactly what i need what osg version did you use? did you change only code in the swith case section? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13258#13258

Re: [osg-users] osgGA::GUIEventAdapter::MOVE: doesnt work

2009-06-01 Thread Matthias Asselborn
ive fied this problem. the reason was glut ive forgotten to declare a passiveMouse Callback sorry ... ;-) now it works perfect ;-) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13261#13261 ___

Re: [osg-users] smooth angle on normal calculation

2009-06-01 Thread Matthias Asselborn
in many CAD progs, is there an option to recalculate Normals with an given angle. Especially for smoothing. In OpenSG for example exists the methode: calcVertexNormals(geo, deg2rad(30)) therefore my question if this is also implemented in osg yet. Or how can i implement it?

[osg-users] osgGA::GUIEventAdapter::MOVE: doesnt work

2009-05-31 Thread Matthias Asselborn
Hi, a want to force a Pick each Mouse move Code: case osgGA::GUIEventAdapter::MOVE: { if ( pick( ea, pViewer, aa ) ) { return true; } return false; } case osgGA::GUIEventAdapter::RELEASE: i set a breakpoint under the case MOVE: expression

Re: [osg-users] smooth angle on normal calculation

2009-05-30 Thread Matthias Asselborn
Hi, i need a smooth with recalculate normals of 30 degrees the left side of picture shows a smoothed version with smoot visitor. The right side without it. can i recalculate the normals to 30 degrees with smooth visitor? Thank you! Cheers, Matthias -- Read this topic online

Re: [osg-users] Dragger snap to grid / raster

2009-05-29 Thread Matthias Asselborn
20 pixel is only a value.. i want to implement a snapping grid for a dragger how can i set the snapping to dragger? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13173#13173 ___ osg-users mailing

[osg-users] smooth angle on normal calculation

2009-05-29 Thread Matthias Asselborn
Hi, iam looking for a function that calculates normals by given smooth angle or is it already implemented? Thank you! Cheers, Matthias -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13188#13188

[osg-users] Drager snap to grid / raster

2009-05-25 Thread Matthias Asselborn
Hi, i use a xy grid and a object dragger. How can i realize a snapping of 20 pixels by moving the dragger Thank you! Cheers, Matthias -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12884#12884

[osg-users] Loader for Geometries

2009-05-19 Thread Matthias Asselborn
Hi, ive a few txt files which contains geometry, like: lines, triangles , quads, and matrices. Matrices reffered to sub txt files, which contains also lines quads tris and matrices. i wrote my own loader class One txt file will be loaded in a geode. the loader runs recursively over all files

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-24 Thread Matthias Asselborn
Hello now ive implemented my own Pick Handler and it runs perfect with the LineSegmentIntersector thanks a lot !! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10812#10812 ___ osg-users mailing

[osg-users] Picking Problem NodeVisitor

2009-04-22 Thread Matthias Asselborn
Hi, ive tried the Picking Handler from http://www.lulu.com/content/767629 ebook page 116 it uses the PolytopeIntersector but the accuracy isnt very well My Question: can anybody help me to realize a working pick handler or a picking method which visits only nodes and which gives me the picked

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-22 Thread Matthias Asselborn
Yes it is. First my SceneGraph has a a root ( osg::Group ). The Root contains few transform nodes under one transform nodes is one node, a model added by a loader. now i want to click on a object on the screen. and i want to get a pointer of this object by picking! the example in the book is

[osg-users] problems in hanging in and out Nodes to a TransformNode

2009-04-22 Thread Matthias Asselborn
Hi, if i perfom a pick in my scene i get the picked node ( TransformNode1 ) i added to this picked Node a boundingbox ( TransformNode1-addchild( boundingNode ) when TransformNode1 isnt picked i have to remove this boundigbox node i do this with: (TransformNode1-removeChild( boundingNode )

Re: [osg-users] problems in hanging in and out Nodes to a TransformNode

2009-04-22 Thread Matthias Asselborn
thanks a lot it works! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10661#10661 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-22 Thread Matthias Asselborn
oh what a great idee! ive checked that no... i can't reproduce my problems ... in osgkeyboardmouse example i will change my code! and i will notice you! thanks -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10664#10664

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-22 Thread Matthias Asselborn
what is the difference between Polytope Intersector and Linesegment Intersector ? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10665#10665 ___ osg-users mailing list