[osg-users] Lightning
Hi, I am working on 'Lighting' to blink lights on a sphere by making osg::StateAttribute ON and OFF ,its working fine.But i am not able to make that sphere itself as light souce(means from sphere light is not diffusing,just it is blinking),how to apply different light properties. Thank you! Cheers, Latha -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70758#70758 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How can I get pixels 3D coordinates and RGB values from a geode ?
Thank you Alberto ! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70757#70757 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to get the orientation of 3d object?
"Jiechang Guo" writes: > Hi, > > I am dealing with a task of orienting and positioning one object > relative to another(the same object as the manipulated one,but has > different position and orientation). And when the task is finished, I > wanna compute the deviation(both position and orienting). For the > orientation, I want to get the angle and axis. > > I'm so confused with the Local coordinate and World coordinate in OSG. > > I know maybe I should define a vector under the object local > coordinate and rotate translate the vector as well as the object is > being manipulated.And do some math with the vector under the world > coordinate to get the angle and axis. > > Can someone give me some advice? > Hi Jiechang, if you want to place an object relative to other, just make it as its child. The positioning matrix of the second one will be the information you are looking for. After that, you can convert that matrix to a quaternion or whatever representation you prefer. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg::Timer
"Latha Rani Baddala" writes: > Hi, > > Can any one explain about osg::timer Hi Latha, it is a clock class that you can use as a stopwatch. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How can I get pixels 3D coordinates and RGB values from a geode ?
"Yrieix Leprince" writes: > Hi, > > I am working on a osg::Geode (constructed from .osgb files), and I > would like to have all the 3D coordinates of each pixels (x,y,z), and > also the Red Green Blue values. At the end I need to have a 3D point > cloud with RGB values as properties. > > I have tried many ways to answer this need, but no one is working... Does > anyone have encountered the same issue ? Hi Yrieix, a good start would be the osgpick example, since it teaches you how to use the intersection system. You would have to sample your object and cast one intersection per pixel. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Forum problems
Hi Jannik, Hi, I've seen this quite often in the past; so far deleting the site cookies and logging back in always solved it (for a while anyway). That indeed did the trick. Cheers Sebastian Cheers, Jannik -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70752#70752 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to get the orientation of 3d object?
Hi, I am dealing with a task of orienting and positioning one object relative to another(the same object as the manipulated one,but has different position and orientation). And when the task is finished, I wanna compute the deviation(both position and orienting). For the orientation, I want to get the angle and axis. I'm so confused with the Local coordinate and World coordinate in OSG. I know maybe I should define a vector under the object local coordinate and rotate translate the vector as well as the object is being manipulated.And do some math with the vector under the world coordinate to get the angle and axis. Can someone give me some advice? Thank you! Thanks a lot! Cheers, Jiechang :D -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70732#70732 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Lighting
Hi, I applied lightning to a sphere it is working fine,but i am not able to do blink the light for every 30secs,can anybody help me?(sending my code) Thank you! Cheers, Latha -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70738#70738 Attachments: http://forum.openscenegraph.org//files/ligth_to_sphere_193.txt http://forum.openscenegraph.org//files/ligth_to_sphere_480.txt http://forum.openscenegraph.org//files/ligth_to_sphere_215.txt ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How can I get pixels 3D coordinates and RGB values from a geode ?
Hi, I am working on a osg::Geode (constructed from .osgb files), and I would like to have all the 3D coordinates of each pixels (x,y,z), and also the Red Green Blue values. At the end I need to have a 3D point cloud with RGB values as properties. I have tried many ways to answer this need, but no one is working... Does anyone have encountered the same issue ? Thank you very much! Cheers, Yrieix -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70749#70749 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg::Timer
Hi, Can any one explain about osg::timer Thank you! Cheers, Latha -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70744#70744 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Forum problems
Hi, I've seen this quite often in the past; so far deleting the site cookies and logging back in always solved it (for a while anyway). Cheers, Jannik -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70752#70752 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing stateset for all assoc nodes without traverse
Hi Yura, On 12 April 2017 at 13:10, Yura Ivanovwrote: > How can I remove stateset for all associated nodes without calling > setStateset(NULL) to each node? Or what is the fastest way to do it? The way you remove a stateset from a Node is via setStateSet(). To remove it from all the nodes that are associated with you can get the StateSet::ParentList using StateSet'::getParents() then traverse through this list calling setStateSet(0) on each one. There isn't an more efficient way to do this than the above approach, setStateSet() does all the internal house keeping required and no more, you can't short cut this otherwise the scene graph would end up with a mess of dangling pointers, memory leaks or crashes. The fact that you raise this as a performance issue SCREAMs out to me that you are again trying to solve a problem because of poor choice of scene graph construction. You are trying to solve the problem with the wrong tools. The basic approach you have taken sounds wrong, and you are hitting performance issues because of this and trying to look to "optimize" stuff in the OSG to solve the bottlenecks rather than look at the basic approach you are taking. I think the best thing you can do right now is take a step back, accept that the approach you have taken thus far is inefficient and call for suggestions form the community how they would solve the particular task you are trying to tackle. I've requested you provide more high level details like this in previous threads but so far there hasn't been enough to go on to know what the best route would be. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Removing stateset for all assoc nodes without traverse
Hi, How can I remove stateset for all associated nodes without calling setStateset(NULL) to each node? Or what is the fastest way to do it? Thank you! Cheers, Yura -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70750#70750 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Having an issue with OSG plugins error.
"Brigham Keys, Esq." writes: > Hello all, > > I have OpenSceneGraph set up in my project, however when I try to load > any files I always get this error > > Error reading file build/untitled.osgt: read error (Could not find > plugin to read objects from file "build/untitled.osgt".) > > Which I did not think I needed a plugin set up for the native format, > it does this on .obj and on .dae parsing as well and the 3D model > never gets loaded into the scene. I tried doing this with files that > could not possibly be real and it gives me the exact same error (and > not an error relating to the file not existing). Has anyone else > experienced this issue? Hi Brigham, this error could be caused by your system not finding the plugin directory, or when it holds a different version of the plugins (debug/release, any other version...) -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Having an issue with OSG plugins error.
Hi Brigham, All the OpenSceneGraph loaders are built as plugins, this includes the native .osg, .ive ,osgt, .osgb and .oisgx formats. The OSG uses the Chain Of Responsibility pattern with it's loaders, first attempting to load formats by the ReaderWrtier already registered with the osgDB::Registry, if this doesn't succeed then a plugin associated with the extension of the file is loaded. For files like .osgt, .osgb and .osgx a extension alias is provided to map these to the osg plugin. If you don't want to dynamically link the OSG and load the plugins at runtime then you can statically link the OSG including the plugins, you'll need to explicitly link in the symbols to do this, the osgstaticviewer example illustrates how this is done. If you want to dynamically link the OSG, as is the default build and OSG usage, you'll need to make sure the parent directory of plugins is one your system file path or use the OSG_LIBRARY_PATH env var. You don't mention anything about your OS, build tools, how you built the OSG, how you installed the OSG so there isn't anything specific can advise, hopefully the above will give you enough pointers to get things working. Robert. On 12 April 2017 at 06:20, Brigham Keys, Esq.wrote: > Hello all, > > I have OpenSceneGraph set up in my project, however when I try to load any > files I always get this error > > Error reading file build/untitled.osgt: read error (Could not find plugin to > read objects from file "build/untitled.osgt".) > > Which I did not think I needed a plugin set up for the native format, it > does this on .obj and on .dae parsing as well and the 3D model never gets > loaded into the scene. I tried doing this with files that could not possibly > be real and it gives me the exact same error (and not an error relating to > the file not existing). Has anyone else experienced this issue? > > > -- > Brigham Keys, Esq. > Software Maintainer > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Forum problems
Hi folks, Is anyone else experiencing forum problems related to getting a "502 Bad Gateway" for some topics? @Robert: I sent you a private message/email concerning the topic. Could you please check if you got it? Cheers Sebastian ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org