Re: [osg-users] Move object with callback

2010-04-28 Thread J.P. Delport
Hi, if you don't want to use callbacks you can split the viewer->run() into !done and viewer->frame(); And then just update a PositionAttitudeTransform or MatrixTransform that sits above your node you want to move between frame calls. jp On 21/04/10 09:54, daniele argiolas wrote: Hi, in my

Re: [osg-users] openGL error with osgEarth?

2010-04-28 Thread Akilan Thangamani
Hi Jason, In fact, I create the map through program.What the program does is that as and when some new tif file arrives at particular folder which I am monitoring continuously thru callback, I add the file to the already created map. It works well for some 2-3 tile addition. When it goes beyond

Re: [osg-users] ANN: PAK Scene Editor for OSG

2010-04-28 Thread René Molenaar
Nice work, i will take a look! cheers, René 2010/4/27 Peter Kilpatrick > Hello, > I'd like to announce the first release of PAK Scene Editor for OSG. > > Features: > - Add models to a scene. > - Drag nodes. > - Edit light and material properties. > > Release details: > - OSG 2.8.0 > - Qt 4.5

Re: [osg-users] Simple line construction in a 3d Space

2010-04-28 Thread Jason Daly
Richard Redding wrote: [quote="Jason Daly"]Richard Redding wrote: I think the osggeometry example has what you're looking for. --"J" [/quote] Hey J, I'm really wet behind the ears on this site. Do you think you could link me to what you are talking about :D!!! Sure. I'm assuming you

Re: [osg-users] Simple line construction in a 3d Space

2010-04-28 Thread Richard Redding
[quote="Jason Daly"]Richard Redding wrote: I think the osggeometry example has what you're looking for. --"J" [/quote] Hey J, I'm really wet behind the ears on this site. Do you think you could link me to what you are talking about :D!!! Thanks for the help! I appreciate it! Cheers mate,

Re: [osg-users] [osgPPU] HDR example: wrong average luminance?

2010-04-28 Thread josselin . petit
Dear Art, Luca, Allen, This is really great news for me to hear that the problem is gone :) Now my tone mapping should be faster and more accurate. Thank you Art! Josselin. This message was sent using IMP, the Internet Messaging

Re: [osg-users] Simple line construction in a 3d Space

2010-04-28 Thread Jason Daly
Richard Redding wrote: Hey all!, I need to use a line in 3d space and hold one end fixed to a wall and then P.A.T. the other point through data which I am sending it in real time sort of like a tracker. I have a hunch to do this would be through the: osg::Geometry* newLine = new osg::Geomet

[osg-users] Simple line construction in a 3d Space

2010-04-28 Thread Richard Redding
Hey all!, I need to use a line in 3d space and hold one end fixed to a wall and then P.A.T. the other point through data which I am sending it in real time sort of like a tracker. I have a hunch to do this would be through the: osg::Geometry* newLine = new osg::Geometry(); but I'm not sure h

Re: [osg-users] Osg Viewer in Windows style window

2010-04-28 Thread Trajce (Nick) Nikolov
wait. Are these from the sample that is coming with the osg sources? They should work ,,, if something is not broken -Nick On Wed, Apr 28, 2010 at 7:36 PM, Sanat Talmaki wrote: > (remaining .h and .cpp files) > > Thanks for taking a look. I'm not able to make any headway > > Cheers, > Sanat > >

[osg-users] Simplifier does nothing if smoothing set false

2010-04-28 Thread Butler, Lee Mr CIV USA USAMC
I have experimentally determined that a Simplifier with _smoothing set to false will not accomplish anything. The number of verticies always stays the same: osgUtil::Simplifier simp; simp.setSmoothing(false); // set true to actually do something. simp.setSampleRatio(0.5); root->accept(s

Re: [osg-users] dimension oh a model

2010-04-28 Thread David Glenn
Paul Martz wrote: > Alberto Luaces wrote: > > > how could I have missed this! Thank you for the tips :) > > > > OSG is big. :-) > > -- > -Paul Martz Skew Matrix Software > http://www.skew-matrix.com/ > ___ > osg-users mailing list > > http://l

Re: [osg-users] how to setup a simple camera?

2010-04-28 Thread Mourad Boufarguine
Hi Claus, You can setup your camera view matrix using : viewer.getCamera()->setViewMatrix(matrix) or viewer.getCamera()->setViewMatrixAsLookAt(eye, center, up) The second one is a good start. For the meaning of the parameters eye, center and up, ask your friend (google ^^) about gluLookAt. Hope

Re: [osg-users] Osg Viewer in Windows style window

2010-04-28 Thread Sanat Talmaki
(remaining .h and .cpp files) Thanks for taking a look. I'm not able to make any headway Cheers, Sanat -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27398#27398 Attachments: http://forum.openscenegraph.org//files/stdafx_520.h http://forum.op

Re: [osg-users] Osg Viewer in Windows style window

2010-04-28 Thread Sanat Talmaki
Hi, I'm attaching the files (I don't think I made any changes to the code that was in the example). So attaching all the .h and .cpp files provided in the sample. (some in the next post as >10 were there). ... Thanks Cheers, Sanat -- Read this topic online here: http://forum

Re: [osg-users] how to setup a simple camera?

2010-04-28 Thread Claus Thaler
Hi, did nobody ever had this kind of problem? You won't tell me, that you all use the default TrackballManipulator, don't you? I kindly ask for help - or links, topics or threads that help. kindly, Claus -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.

Re: [osg-users] Osg Viewer in Windows style window

2010-04-28 Thread Trajce (Nick) Nikolov
Hi, if you post your project I can take a look. -Nick On Wed, Apr 28, 2010 at 5:17 PM, Sanat Talmaki wrote: > Hi Nick, > > I have been trying to get the sample running but had a couple of > difficulties along the way. Solved most of them but now am getting a > run-time error. > (I'm using a Wi

Re: [osg-users] [3rdparty] Texture applied in modelling tool not showing up

2010-04-28 Thread Adam Smith
Hi J-S, Thanks for the quick reply and the info. This is good information and I will follow up as you have suggested. Hopefully I can bring it home from here. I'll let you folks know when I have a resolution (or if I get stuck I'll pos another question :-* ). Thanks again J-S. Cheers,

Re: [osg-users] [3rdparty] Digital elevation model visualization

2010-04-28 Thread Jason Beverage
Hi Lucie, I would recommend looking at both osgEarth and VirtualPlanetBuilder for displaying geospatial data in OSG. Both VPB and osgEarth are built using OSG's osgTerrain library so the resulting scene graphs are similar. The main difference is that VPB produces optimized static scene graph til

Re: [osg-users] [3rdparty] Texture applied in modelling tool not showing up

2010-04-28 Thread Jean-Sébastien Guay
Hi Adam, Don't worry about inexperience. The people around here are very friendly and will only generally respond negatively if you display no desire whatsoever to try and debug things yourself, or if you post a heap of code and ask others to debug it for you. This was not your case, so you'r

[osg-users] [3rdparty] Texture applied in modelling tool not showing up

2010-04-28 Thread Adam Smith
Hi, I hope I am posting to the proper forum. I would like to ask a very basic question. If there is something I missed in the FAQs/forums, I apologize in advance and I will look again. I created a textured scene with a 3D tool (Truespace) and exported the scene as a Collada (.DAE) file. I

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Dario Minieri
Nice, now working properly! Many thanks Bye Michael Platings wrote: > Hi Dario, > it just occurred to me that if you're using the 2.8.3 version then changing > to the latest code will be a big pain for you. Instead, in your code go to > the switch statement at line 417 of fbxRNode.cpp and del

[osg-users] [3rdparty] Digital elevation model visualization

2010-04-28 Thread lucie lemonnier
Hi, I want to develop an application for the visualization of 3D digital terrain models, and browsing through these models. I found some plugins to add to openscenegraph (VirtualPlanetBuilder, osgEarth, Virtual Terrain Project, ...). What do you recommend? Thank you! Cheers, lucie

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Dario Minieri
Hi I read right now this message. I try now your trick. Michael Platings wrote: > Hi Dario, > it just occurred to me that if you're using the 2.8.3 version then changing > to the latest code will be a big pain for you. Instead, in your code go to > the switch statement at line 417 of fbxRNode.

Re: [osg-users] Osg Viewer in Windows style window

2010-04-28 Thread Sanat Talmaki
Hi Nick, I have been trying to get the sample running but had a couple of difficulties along the way. Solved most of them but now am getting a run-time error. (I'm using a Win32 Console application project to test the MFCViewer sample) In the OSG_MFCMDI.cpp file; the lines // create main MDI

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Dario Minieri
Thanks Michael I have some errors at compile time for the fbx plugin in the fbxRAnimation.cpp. .../fbx/fbxRAnimation.cpp:25: error: variable or field 'readKeys' declared void .../fbx/fbxRAnimation.cpp:25: error: 'KFbxAnimCurve' was not declared in this scope .../fbx/fbxRAnimation.cpp:25: error:

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Michael Platings
Hi Dario, it just occurred to me that if you're using the 2.8.3 version then changing to the latest code will be a big pain for you. Instead, in your code go to the switch statement at line 417 of fbxRNode.cpp and delete the whole of the case statement for KFbxNodeAttribute::eUNIDENTIFIED _

Re: [osg-users] Refreshing a Scenegraph

2010-04-28 Thread Laurens Voerman
Hi Suvajit, From your description I suspect that your problem is caused by the osg object cache. try osgDB::Registry::instance()->clearObjectCache(); before the ReadFile() to see if that's the problem. If that helps you might want to just supress the usage of the cache for this readfile call:

Re: [osg-users] Refreshing a Scenegraph

2010-04-28 Thread Robert Osfield
HI Suvajit, On Wed, Apr 28, 2010 at 2:49 PM, Suvajit Sengupta wrote: > Hi Robert, >  Yes, I am calling the viewer->frame() after updating the model assuming that > after the model is built then only I can call for update and render traversal. >   Now the question to me how to re-render a scene ?

Re: [osg-users] dimension oh a model

2010-04-28 Thread Paul Martz
Alberto Luaces wrote: how could I have missed this! Thank you for the tips :) OSG is big. :-) -- -Paul Martz Skew Matrix Software http://www.skew-matrix.com/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http

Re: [osg-users] [osgPPU] HDR example: wrong average luminance?

2010-04-28 Thread Luca Vezzadini
Hi, cool, I'll give it a try as soon as I can. Out of curiosity, can you post here the syntax of the call to texture2DLod you used? I'm on 0.4 for now and I'd like to test on it, later I'll switch to the trunk. Thanks! Luca -- Read this topic online here: http://forum.opensce

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Jean-Sébastien Guay
Hi Dario, This sound like but unfortunatly don't works. I've exported the variable (export OSG_OPTIMIZER="OFF") but the result is the same as above. HummThere is some other way to control the optimizer behaviour in this cases? OSG is 2.8.3 version. Not sure if you need the quotes or even

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Michael Platings
Just saw your last email - you'll need to get the latest FBX plugin code from the subversion trunk -Michael On 28 April 2010 15:04, Dario Minieri wrote: > Hi, thanks for your reply. > > This sound like but unfortunatly don't works. I've exported the variable > (export OSG_OPTIMIZER="OFF") but th

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Michael Platings
Hi Dario, I've changed the FBX reader so it will keep redundant nodes (leaving it to the optimiser to remove the fluff) so that combined with J-S's recommendation should get things working the way you want. ___ osg-users mailing list osg-users@lists.opens

Re: [osg-users] dimension oh a model

2010-04-28 Thread daniele argiolas
It works!!! Thank you very much! Daniele -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27371#27371 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listi

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Dario Minieri
Hi, thanks for your reply. This sound like but unfortunatly don't works. I've exported the variable (export OSG_OPTIMIZER="OFF") but the result is the same as above. HummThere is some other way to control the optimizer behaviour in this cases? OSG is 2.8.3 version. Many thanks again Bye

Re: [osg-users] Refreshing a Scenegraph

2010-04-28 Thread Suvajit Sengupta
Hi Robert, Yes, I am calling the viewer->frame() after updating the model assuming that after the model is built then only I can call for update and render traversal. Now the question to me how to re-render a scene ? Looking for some directions. ... Thank you! Cheers, Suvajit

Re: [osg-users] dimension oh a model

2010-04-28 Thread Alberto Luaces
Paul Martz writes: > Jean-Sébastien Guay wrote: >> Hi Daniele, Alberto, >> >>> Assuming that no transformation nodes exist in the graph describing your >>> node, you can write a node visitor that joins all the bounding boxes of >>> every geode. >>> >>> Else you'll need to modify every bounding box

[osg-users] [vpb] osgdem problem

2010-04-28 Thread Peter Schmid
Hi, I want to generate a database with osgdem but the application crashes using georeferenced texture data (virtualPlanetBuilder version used 0.10, 0.11 and svn trunk, windows machine) The following steps lead to the problem: 1.) Download srtm_ramp2.world.21600x10800.jpg from visibleearth.na

Re: [osg-users] dimension oh a model

2010-04-28 Thread Paul Martz
Jean-Sébastien Guay wrote: Hi Daniele, Alberto, Assuming that no transformation nodes exist in the graph describing your node, you can write a node visitor that joins all the bounding boxes of every geode. Else you'll need to modify every bounding box by its parent transforms in order to join

Re: [osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Jean-Sébastien Guay
Hi Dario, I've exported in FBX a scene structured as the above example and then I have converted this file into an OSG file (osgconv). The OSG file don't contains the NULL nodes but only the object_with_mesh. This is not specific to the FBX loader. osgconv runs the osgUtil::Optimizer on the

[osg-users] [osgPlugins] FBX conversion lost "NULL" nodes.

2010-04-28 Thread Dario Minieri
Hi, Converting a FBX file (2010.2) into an OSG I saw that some "NULL" nodes are lost. For example I've tried a convertion of a simple scene: OBJECT |OBJ_WRAPPER |object_with_mesh OBJECT and OBJ_WRAPPER are simple "NULL" nodes, typically used to group others object. I've ex

Re: [osg-users] dimension oh a model

2010-04-28 Thread Jean-Sébastien Guay
Hi Daniele, Alberto, Assuming that no transformation nodes exist in the graph describing your node, you can write a node visitor that joins all the bounding boxes of every geode. Else you'll need to modify every bounding box by its parent transforms in order to join them. Actually you don't n

Re: [osg-users] [osgPPU] HDR example: wrong average luminance?

2010-04-28 Thread Art Tevs
Hi Luca, Allen, Josselin, ok, I found the bug. as I said the bug is not really a bug it is more or less slightly unclear definition of glsl. The problem was to use texture2D method instead of texture2DLod to get value from mipmaps. Actually in the definition of glsl texture2DLod is mean to be u

Re: [osg-users] integrating AntTweakBar GUI with OSG

2010-04-28 Thread Aitor Ardanza
Hi, I have the same problem... any help? Thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27361#27361 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.

[osg-users] OSG and CEGUI 0.7

2010-04-28 Thread Aitor Ardanza
Hi, I´m trying to implement osg with CEGUI 0.7.1... we have the osgcegui.cpp example but is based on older version. http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgcegui/osgcegui.cpp I tweak the code and i can complile without problems, but the application gim

Re: [osg-users] Pausing and restarting animations in a subgraph read in via osgDB

2010-04-28 Thread Adrian Szymanski
Hi, I see that you found solution to my problem in this topic. My problem is very similar I have models loaded from external file (.ive exported from 3DSMAX using OSGExp) This file contain animation about 1200 frames. And in my program this animation is playing infinitely but i want to play it

Re: [osg-users] Debug Assertion Failed error

2010-04-28 Thread Ulrich Hertlein
Hi Sanat, On 27/04/10 0:46 , Sanat Talmaki wrote: > I tried that and well so far so good. I ran the application and for quite > long and > didn't get that error. I'll crash test it again and hope that the problem's > been > solved. > > Assuming that this caused the bug to be fixed, can you tell

Re: [osg-users] dimension oh a model

2010-04-28 Thread Alberto Luaces
"daniele argiolas" writes: > Hi, > how can I retrieve the dimension of an OSG model loaded in the scene? > > I see that with getBound().radius() I can retrieve informations about the > BoundingSphere. > > But I need also the three dimensions.. Hi Daniele, Assuming that no transformation nodes e

[osg-users] dimension oh a model

2010-04-28 Thread daniele argiolas
Hi, how can I retrieve the dimension of an OSG model loaded in the scene? I see that with getBound().radius() I can retrieve informations about the BoundingSphere. But I need also the three dimensions.. Thanks! -- Read this topic online here: http://forum.openscenegraph.org/vie

Re: [osg-users] Slave-cameras and update-callbacks

2010-04-28 Thread Stephan Maximilian Huber
Hi Martins, Am 27.04.10 22:27, schrieb Martins Innus: > See Robert's response below in a thread entitled "setUpdateCallback > fails under slave-camera" Thanks! So the behaviour is intended. I can work around this. cheers, Stephan ___ osg-users mailing

[osg-users] QOSGWidget.cpp qt integration ..

2010-04-28 Thread Sunil S Nandihalli
Hello everybody, I am trying to run the osgviewerQT with the option --QOSGWidget .. it fails to work. It however works without this option (using AdaptedWidget) . I attached the backtrace when it crashed.. Can anybody see and help me understand why this is failing . I am also going to attach the l

Re: [osg-users] Refreshing a Scenegraph

2010-04-28 Thread Robert Osfield
HI Suvajit, The debig message is telling you that it's just reusing the osgViewer::Scene object, not that it's not re-assigning the scene data itself. The Scene object is a background class used to manage multiple views sharing the same Scene. As for the no visual changes, well are you calling f

Re: [osg-users] Help for control of Text Labels on HUD type display OFF/ON/BLINK and text

2010-04-28 Thread Robert Osfield
Hi Tim, As a general guide I would recommend picking the simplicist way to implement a solution first and it perform fine then stick with it, don't worry too much about performance. Times to worry about performance are when you've already established a bottleneck through testing and now need to a

Re: [osg-users] CityGML

2010-04-28 Thread clement vidal
It seems to be very interessting, we're waiting for looking at your work Clement ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] [osgOcean] Iam in a puzzle about the realization of osgOcean's 'Glare effect'

2010-04-28 Thread Tian Ma
Hi, I saw the code in 'OceanScen.cpp', that 5 cameras in 'osgOcean::OceanScen::_glarePasses' were used to render the glare effect. But I saw the realization code in "water.frag" is just as bellow: if(osgOcean_EnableGlare) { float lum = luminance(lumColor);

[osg-users] Refreshing a Scenegraph

2010-04-28 Thread Suvajit Sengupta
Hi, I have attached a GUIEventHandler to osg::Viewer to refresh the model if the content in the file has changed. Like whenever refresh action is called I do the following: osg::ref_ptr root = osgDB::readNodeFile("path_to_shp_file"); viewer->setSceneData(root.get()); I have to reread the sour