Re: [osg-users] Adding Constraints to Draggers
bam098 wrote: > However, I don't quite understand it unfortunately. All constrain methods of > the class are set to true here and I don't get why this was done. I don't see anywhere in the entire osg project where the return from constrain is used. I don't think it serves any purpose at this point. Constraints manipulate the command to accomplish their task. Code: grep -IrnF -- ".constrain" * include/osgManipulator/Command:61:virtual void accept(const Constraint& constraint) { constraint.constrain(*this); } include/osgManipulator/Command:112:virtual void accept(const Constraint& constraint) {constraint.constrain(*this); } include/osgManipulator/Command:149:virtual void accept(const Constraint& constraint) {constraint.constrain(*this); } include/osgManipulator/Command:188:virtual void accept(const Constraint& constraint) {constraint.constrain(*this); } include/osgManipulator/Command:233:virtual void accept(const Constraint& constraint) {constraint.constrain(*this); } include/osgManipulator/Command:278:virtual void accept(const Constraint& constraint) {constraint.constrain(*this); } include/osgManipulator/Command:314:virtual void accept(const Constraint& constraint) {constraint.constrain(*this); } grep -IrnF -- "->constrain" * //returns nothing. bam098 wrote: > But how is the situation currently? Are osgmanipulator and especially the > dragger classes are still used today? I have been using osgmanipulator library and have been happy it is available. https://gitlab.com/blobfish/cadseer/tree/master/library[/url][/code] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75142#75142 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Correct way to set auto scale with osg::AutoTransform
Victoria Rudakova wrote: > > Could anyone point out what am I doing wrong or what is missing here? Thank > you! > Have you tried removing the calls to 'setMinimumScale' and 'setMaximumScale'? Do you have another static object(not auto scaled) in your scene? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74694#74694 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Outlining a node (Beginner)
Hi, You have a memory leak. You don't need to dynamically allocate for the Node*. You find an existing node in the graph and put it under your outline, but you don't remove it from it's existing parent/s. did you intend to draw it more than once? One of my favorite aspects of osg is the samples. Great resource for typical uses of objects.https://github.com/openscenegraph/OpenSceneGraph/blob/master/examples/osgoutline/osgoutline.cpp Thank you! Cheers, tom -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72604#72604 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] PolytopeIntersector::Intersection::primitiveIndex
Hi, I am looking for some clarification of the primitiveIndex value of polytope intersection. I have added a very simple scene file containing 3 planar faces of a cube with 6 triangles in a primitive set. I have been testing the polytope intersector with osgkeyboardmouse using the following command Code: 'osgkeyboardmouse --kdtree box_partial_work_1set.osgt' Running this command and hitting the 'p' key and then selecting the 2 triangles making up the red face I get the following output. Code: osgkeyboardmouse --kdtree box_partial_work_1set.osgt Building KdTrees ViewerBase::configureAffinity() numProcessors=4 databasePagers = 1 _forceVertexArrayObject = 0 _forceVertexBufferObject = 0 Using PolytopeIntersector PoltyopeIntersector traversal took 0.104ms Picked 10 2.44399 1.97205 Distance to ref. plane 4.928, max. dist 5.0417, primitive index 4, numIntersectionPoints 2 Hits Geometry nodePath size 3 parent Group PoltyopeIntersector traversal took 0.034ms Picked 10 7.93759 7.66585 Distance to ref. plane 4.13599, max. dist 4.24392, primitive index 5, numIntersectionPoints 2 Hits Geometry nodePath size 4 parent Scribe why are primitive indexes 4 and 5? Shouldn't they be 0 and 1 because those triangles are listed first in the scene file? If I do the same procedure and leave off '--kdtree' I am getting indexes of 1 and 2. Thank you! Cheers, tom[/code] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70992#70992 Attachments: http://forum.openscenegraph.org//files/box_partial_work_1setosgt_251.zip ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgUtil::DelaunayTriangulator
Hi, Nick you can use git track down the example file. Code: //to find example file git log --all --name-status | grep delaunay //to find commit that removed file git log --all --name-status -- examples/osgdelaunay/osgdelaunay.cpp //show file contents 1 commit before removal git show 62fd0ef36^:examples/osgdelaunay/osgdelaunay.cpp ... Thank you! Cheers, tom[/code] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69239#69239 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] vertex_array_object branch merged with master
robertosfield wrote: > Hi Tom, > > On 14 October 2016 at 20:58, tom spencer <> wrote: > > > I am getting a crash in the radeon driver in both kubuntu 16.04 and kubuntu > > 16.10. I have attached a back trace. > > > > Do you have a specific data file that provokes this crash? > > Do know what whether previous versions of the OSG worked fine with > this model? If so what is the most recent version that worked? > > Robert > ___ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- > Post generated by Mail2Forum Hi, Robert Sorry for not pointing this out. The backtrace shows running osgviewer with dumptruck.osgt which is part of openscenegraph-data https://github.com/openscenegraph/OpenSceneGraph-Data Yes this was working prior to the vertex array merge. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69018#69018 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] vertex_array_object branch merged with master
Hi, I am getting a crash in the radeon driver in both kubuntu 16.04 and kubuntu 16.10. I have attached a back trace. Thank you! Cheers, tom -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69010#69010 Attachments: http://forum.openscenegraph.org//files/osgviewercrashgdb_839.txt ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Feedback/guidance sought on move of osgQt out into it's own project/repository
Hi, Here is my attempt to help. Here is a command that I have put together that seems to be accomplishing the task. from 14240 commits to 1204. Code: git filter-branch \ --prune-empty \ --index-filter ' git ls-tree -z -r --name-only --full-tree $GIT_COMMIT \ | grep -z -v "^AUTHORS.txt" \ | grep -z -v "^ChangeLog" \ | grep -z -v "^CMakeLists.txt" \ | grep -z -v "^CTestConfig.cmake" \ | grep -z -v "^LICENSE.txt" \ | grep -z -v "^NEWS.txt" \ | grep -z -v "^README.md" \ | grep -z -v "^CMakeModules/cmake_uninstall.cmake.in" \ | grep -z -v "^CMakeModules/ListHandle.cmake" \ | grep -z -v "^CMakeModules/ModuleInstall.cmake" \ | grep -z -v "^CMakeModules/OsgCPack.cmake" \ | grep -z -v "^CMakeModules/OsgCPackConfig.cmake.in" \ | grep -z -v "^CMakeModules/OsgDetermineCompiler.cmake" \ | grep -z -v "^CMakeModules/OsgMacroUtils.cmake" \ | grep -z -v "^CMakeModules/UtilityMacros.cmake" \ | grep -z -v "^doc/Doxyfiles/all_Doxyfile" \ | grep -z -v "^doc/Doxyfiles/auto_Doxyfile" \ | grep -z -v "^doc/Doxyfiles/auto_Mainpage" \ | grep -z -v "^doc/Doxyfiles/core_Doxyfile" \ | grep -z -v "^doc/Doxyfiles/custom_Footer.html" \ | grep -z -v "^doc/Doxyfiles/doxyfile.cmake" \ | grep -z -v "^examples/CMakeLists.txt" \ | grep -z -v "^examples/osgqfont" \ | grep -z -v "^examples/osgQtBrowser" \ | grep -z -v "^examples/osgQtWidgets" \ | grep -z -v "^examples/osgviewerQt" \ | grep -z -v "^include/osgQt" \ | grep -z -v "^packaging/pkgconfig/openscenegraph-osgQt.pc.in" \ | grep -z -v "^PlatformSpecifics" \ | grep -z -v "^src/CMakeLists.txt" \ | grep -z -v "^src/osgQt" \ | grep -z -v "^src/osgPlugins/CMakeLists.txt" \ | grep -z -v "^src/osgPlugins/qfont" \ | xargs -0 -r git rm --cached -r ' \ -- \ --all I ran this with the HEAD reset back to '489860f Updated version number to 3.5.5' and used Roberts cleanup commit as a reference. I pushed the results to 'github blobfish osgQtCleaned01'. If you want to try this command, note that it works on all branches in the repo. You might want to clone a copy of your repo to experiment with. Keeping only relevant history on individual files (like CMakeLists.txt) will be more problematic. Thank you! Cheers, tom[/code] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68610#68610 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org