[osg-users] Issue With osgDB::writeNodeFile Writing New Material to .osgb

2013-09-29 Thread Patrick Keenan
Hello, I have an osg::ProxyNode model that I change the material on then I try to update the file itself so that next time I run the program the changes persist. If I save it to my_model.osgb then the next time I go to open it osgDB::readNodeFile locks up trying to read the file, however if I s

Re: [osg-users] Is it possible to do boolean operations with objects (primitives)?

2013-10-11 Thread Patrick Keenan
How about osgModeling? http://sourceforge.net/projects/osgmodeling/ Patrick -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56754#56754 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] giving thickness/color to line segments

2013-11-17 Thread Patrick Keenan
Hello, Check out http://forum.openscenegraph.org/viewtopic.php?p=53988#53988 for plotting the lines! Patrick -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=57258#57258 ___ osg-users mailing list os

Re: [osg-users] Issue With osgDB::writeNodeFile Writing New Material to .osgb

2014-02-28 Thread Patrick Keenan
Hi Ulrich I think you are right in what was going wrong but for some reason the prox node does not complain when I delete the file and rewrite it, the key is to delete it first. The material-modified models can be saved and reloaded with this code: Code: void M_model::Update_files(void) {

[osg-users] Keeping a Slave Camera Still While Tracking Node

2014-03-16 Thread Patrick Keenan
Hello, I am trying to use a slave camera in my viewer to follow a node and render what it sees to a pixel buffer, then I convert the images to cv::Mat to do image processing on them. It is a simulation of a robot setup were the camera is rigidly attached to the robot. I have managed to get it m

Re: [osg-users] Keeping a Slave Camera Still While Tracking Node

2014-03-17 Thread Patrick Keenan
It works!! Thank you so much Robert. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58624#58624 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.c

Re: [osg-users] Keeping a Slave Camera Still While Tracking Node

2014-03-18 Thread Patrick Keenan
Just for anyone trying this here is what I have for code Code: std::int64_t M_OSG_viewer::Draw(void) { _last_draw_time_us = _last_draw_timer.Get_elapsed_us(); if(_has_slave_cam) { //_sl_cam_mount is a matrixTransorm attached to the node I would like to track

Re: [osg-users] correct version (or disabling) of ffmpeg when compiling OSG

2014-06-02 Thread Patrick Keenan
Hi, For anyone having this problem on Debian (I have kernel 3.14.4-rt5 with Nvidia btw) testing osg-3.3.2 from Git (June 2 2014) the only way I could find to disable ffmpeg (using cmake build method) was by commenting out some lines in Code: osg_3_3_2/src/osgPlugins/CMakeLists.txt they bec

Re: [osg-users] osg::ref_ptr, osg::outline Question

2013-03-25 Thread Patrick Keenan
I have some unexpected behavior which is illustrated by the following code: Code: stationaryModels.push_back(new MillModel("../Models/bigservo.osgb", osg::Matrix::translate(6000.0f, 0.0f, 200.0f),

Re: [osg-users] osg::ref_ptr, osg::outline Question

2013-03-25 Thread Patrick Keenan
Hi Robert, Good point I didn't see that! Thinking too hard, or maybe not hard enough on that one. It works now. Thanks, Patrick -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53297#53297 ___ osg-u

Re: [osg-users] set render bin details

2013-05-01 Thread Patrick Keenan
Hi, If using Code: ObjStateSet->setRenderBinDetails(-1, "RenderBin"); causes that thing to be rendered first is there some trick to cause the thing to be drawn last? Right now I'm using Code: HUDStateSet->setRenderBinDetails(1000, "RenderBin"); to render my Heads Up Display last but I

Re: [osg-users] Dinamic Line Drawing

2013-05-09 Thread Patrick Keenan
Hi, This post was really helpful for me but I still couldn't add points on the fly either. A few edits made it happen so I'm attaching my M_OSG_line_strip class. To use the class I have the following in my CreateScene() Code: osg::Vec3Array* line_pts = new osg::Vec3Array; line_pts->pu

[osg-users] osgGA::TrackballManipulator Bottom View (Look Directly Up)

2013-05-18 Thread Patrick Keenan
Hi, This should be a simple answer, hopefully this hasn't been asked. I have some buttons for switching to the views between top, right,... and bottom. my code is all in the following function: Code: void M_OSG_viewer::setViewpoint(Viewpoint new_viewpoint, double distance) { switch (

Re: [osg-users] Stop osgGA::TrackballManipulator spinning

2013-06-07 Thread Patrick Keenan
Hi, here is one way without inheriting: Code: void M_OSG_viewer::Stop_spinning(void) { osg::Quat rot(manipulator->getRotation()); osg::Vec3d ctr(manipulator->getCenter()); double dist(manipulator->getDistance()); manipulator->home(0); manipulator->setDista