Re: [osg-users] How to convert bounding box to position and scale?

2015-08-20 Thread michael kapelko
Turned out, I used non-centered box to display the bounding box. Fixed it. 2015-08-21 8:04 GMT+07:00 michael kapelko : > Hi. > I want to convert bounding box to position and scale of a box. > I tried to do it, but I couldn't get it right. Can anyone share the > formula? > > Thanks. >

[osg-users] How to convert bounding box to position and scale?

2015-08-20 Thread michael kapelko
Hi. I want to convert bounding box to position and scale of a box. I tried to do it, but I couldn't get it right. Can anyone share the formula? Thanks. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo

Re: [osg-users] "Error: Not able to create requested visual." for osg application utilizing multi-sampling, ran with optirun.

2015-08-20 Thread Jannik Heller
This might be simply a driver limitation. Not all hardware and drivers support multisampling. For example, I'm using OSG on Mesa + Intel HD Graphics which doesn't support multisampling at all. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64858#6

[osg-users] "LOS" materail query

2015-08-20 Thread Mike Greene
Hi, I am wanting to do a dust cloud when an entity (helicopter) lands on a terrain. Ideally, would like the color of the dust cloud to be similar to the material/texture that the entity is on. Is there a way to do a "material/texture color" query based on an entity position, kind of like an LOS

Re: [osg-users] Android osgPlugins

2015-08-20 Thread Christian Kehl
Hi, In the meanwhile, I was working further on the topic - and cracked it this time, I think. First and foremost, I use OpenSceneGraph 3.3.8 (still) and compile it for Android, while having the necessary 3rdParty-folder inside the OpenSceneGraph root folder (little suggestion: at some point thi

[osg-users] "Error: Not able to create requested visual." for osg application utilizing multi-sampling, ran with optirun.

2015-08-20 Thread Hamza Alloush
Hello, I'v been having trouble using optirun with the virtualgl rendering bridge, and an osg app utilizing multi-sampling. using this simple example(attached also): #include #include #include #include   osg::Node* createScene() {     osg::Geode* geode = new osg::Geode();     geode->addDr

Re: [osg-users] Vec3Array Deep Copy

2015-08-20 Thread Erik Hensens
Hi Robert, Thanks again. "You da man". Erik robertosfield wrote: > HI Erik, > > > The constructor takes a reference not a pointer so try: > >  osg::ref_ptr < osg::Vec3Array > pCopy = new osg::Vec3Array(*pVertexArray, > osg::CopyOp::DEEP_COPY_ALL); > > > Noe the *. > > > > Or use osg::c

Re: [osg-users] Vec3Array Deep Copy

2015-08-20 Thread Robert Osfield
HI Erik, The constructor takes a reference not a pointer so try: osg::ref_ptr < osg::Vec3Array > pCopy = new osg::Vec3Array(*pVertexArray, osg::CopyOp::DEEP_COPY_ALL); Noe the *. Or use osg::clone() i.e. pCopy = osg::clone(pVertexArray->get()); Robert. On 20 August 2015 at 18:30, Erik He

[osg-users] Vec3Array Deep Copy

2015-08-20 Thread Erik Hensens
Hi everyone! I have a simple question but I just can't figure it out. What is the proper way to copy a Vec3Array? The code below is not right: Code: osg::ref_ptr < osg::Vec3Array > pVertexArray = new osg::Vec3Array; ... osg::ref_ptr < osg::Vec3Array > pCopy = new osg::Vec3Array(pVertexArray,

Re: [osg-users] Advice on how to implement custom file format

2015-08-20 Thread Chris Hanson
Aaron, this sounds a lot like something I've worked with recently. If you want to get in touch with me privately and share more details on the format you are working with, I might be able to assist you more. On Sun, Aug 16, 2015 at 3:11 PM, Aaron Andersen wrote: > Hello, > > I'm planning to rend

[osg-users] Problems with MultiTouchTrackballManipulator on iOS.

2015-08-20 Thread Alessandro Terenzi
Hi, recently I updated my apps from OSG 3.2.0 to OSG 3.4.0 and I noticed that the MultiTouchTrackballManipulator behaves differently. Specifically while single touches are working almost the same (for instance to rotate the view), the pinch gesture is quite different because even if I try to mak

Re: [osg-users] [ANN] View-dependent progressive meshes on OpenSceneGraph

2015-08-20 Thread Jim Tan
Hello dear OSG-community, I've upgraded OpenSceneGraph to the newest version and refined cmake scripts to suit the newest version of cmake. https://github.com/kctan0805/vdpm Best regards, Jim -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64849#6