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
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
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
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)
{
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
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
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
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
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),
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
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
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
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 (
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
14 matches
Mail list logo