Re: [osg-users] crash at delete mViewer

2008-10-30 Thread Ümit Uzun
Hi forest, If you had implement cOSG class on your program, you should be careful about destroying viewer and threads precedence. Sometimes it can be crash as you experienced because when destroying threads process time need. In osgviewerMFC project AfxMessageBox("Exit Rendering Thread"); message

[osg-users] QT4 ViewerQOSG and Q_OBJECT

2008-10-30 Thread mgb
> Could you post complete modified file as this will explain the changes > without any chance of ambiguity. Sorry my mistake, Note if you want to use QT_OBJECT the ViewerQOSG class declaration should be in it's own header file. QOSGWidget.h Description: Binary data

[osg-users] OSG and Chromium/VR Juggler

2008-10-30 Thread Paul Pocock
Hi, I simply want to run OSG on a PC Cluster of 9 Nodes in a Master/ 0..N Slaves configuration. If people who have used either Chromium http://chromium.sourceforge.net/ or VR Juggler http://www.vrjuggler.org/ please report their experiences with these. Kind Regards Paul IMPORTANT: This ema

[osg-users] crash at delete mViewer

2008-10-30 Thread forest37
hi all, There is a class "cOSG" in example osgviewerMFC,i find that a sentence " Sleep(1000);" is added to the function cOSG::~cOSG().Maybe it's used to avoid crash at delete mViewer.But Sometimes I still get a crash at delete mViewer.Is it because of the thread is not stoped? How can

[osg-users] Cull-Traversal Performance

2008-10-30 Thread Sean Spicer
Hi Folks, First off, let me say that it's good to be back on the list - it has been awhile ;-) I'm trying to tune a scene-graph representing a relatively-large model. I'm seeing what I think are abnormally long cull-traversal times. The SG looks as follows: (State is constant across the entire

Re: [osg-users] OSG and C# Users

2008-10-30 Thread Jason Beverage
Hi Maya, I'm not sure why the osgdb_jpegd.dll would fail to load, hard to say. One thing to note is that osgviewer works, but what about osgviewerd? From the debug output, you are running your app in debug mode. Try running in release and see if it works. I'll bet that osgviewerd doesn't work.

Re: [osg-users] TrackballManipulator asymptote

2008-10-30 Thread Richard Baron Penman
thanks again Robert - now I better understand how TrackballManipulator works. I overloaded the calcMovement() function to move consistently and it is working well. Richard Hi *Richard*, > > The trackball slows as you move into the origin as the rate of > movement in is always a percentage of dis

Re: [osg-users] Shadows in osgviewerQT ?

2008-10-30 Thread Julian Scheid
Hi, OK so I figured out that my problems are due to using AdapterWidget - I understand that shadows etc. should work fine with QOSGWidget. Unfortunately QOSGWidget doesn't work here: the widgets remains white and Qt prints warnings about recursive repaint. I've checked out the latest OSG trunk a

Re: [osg-users] OSG and C# Users

2008-10-30 Thread usergroups_email
Jason Thanks for the quick response. Trying debug mode I get FindFileInPath() : trying XXX\OpenSceneGraph\bin\osgPlugins-2.7.3\osgdb_jpegd.dll ... FindFileInPath() : USING XXX\OpenSceneGraph\bin\osgPlugins-2.7.3\osgdb_jpegd.dll DynamicLibrary::failed loading "osgPlugins-2.7.3/osgdb_jpegd.

Re: [osg-users] OSG and C# Users

2008-10-30 Thread Jason Beverage
Hi Maya, It's hard to tell what could be going on without some more information about your setup. One thing you should try is setting the OSG_NOTIFY_LEVEL environment variable to DEBUG to help get a clue of what is going on. If you build your app as a Console application you will see all of OSG'

Re: [osg-users] OSG and C# Users

2008-10-30 Thread usergroups_email
Jason The osgdb_jpg.dll and osgdb_gif.dll plugins are in the same location as the osgdb_gif and osgdb_rgb.dll, so I would expect them to work. Any other hints? thanks maya From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Beverage Sent: Thursday, October 30, 2

[osg-users] osgManipulator::Dragger and osg::AutoTransform

2008-10-30 Thread Jean-Sébastien Guay
Hi guys, Once again, a question about something pretty specific, so bear with me please... I want an osgManipulator::Dragger to be always the same size on the screen, independently of how far away the camera is (if someone is familiar with Maya, something like that). So I thought putting it

Re: [osg-users] read file Collada using osg

2008-10-30 Thread Paul Martz
Try searching the osg-users archives for "collada". This has been discussed extensively in the past (where to get the DOM source, what version is required, etc). -Paul ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscene

Re: [osg-users] OpenSceneGraph Stereo Viewer question

2008-10-30 Thread Jean-Sébastien Guay
Hello Thanh, It's very easy to load a model using stereo display by add an argument "--stereo" on console line, such as osgviewer --stereo cow.osg but how can I implement the stereo display on my application? I have searched all over but can not find it anywhere. Check osg::DisplaySettings:

Re: [osg-users] read file Collada using osg

2008-10-30 Thread Jason Daly
Adonai Canêz wrote: Hi, I'm don't find source of collada in www.collada.org , what is location download? The library is called the COLLADA DOM. You can find it here: http://sourceforge.net/project/showfiles.php?group_id=157838&package_id=270665&release_id=596687 --"J"

Re: [osg-users] OSG and C# Users

2008-10-30 Thread Jason Beverage
Hi Maya, As long as you have the appropriate image plugin within your path (osgdb_jpg.dll, osgdb_gif.dll, etc) things should work fine. Make sure you are building these plugins and they are accessible. In theory, if the model works from osgviewer, it should work in your c# application. Good luc

[osg-users] OpenSceneGraph Stereo Viewer question

2008-10-30 Thread Thanh Trung Trinh
Hi all! It's very easy to load a model using stereo display by add an argument "--stereo" on console line, such as osgviewer --stereo cow.osg but how can I implement the stereo display on my application? I have searched all over but can not find it anywhere. One more question: Where can I fin

Re: [osg-users] read file Collada using osg

2008-10-30 Thread Adonai Canêz
Hi, I'm don't find source of collada in www.collada.org, what is location download? Date: Thu, 30 Oct 2008 15:06:07 -0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [osg-users] read file Collada using osg Well did you read what 3rd Party packages it provides ? Does it list Collada i

[osg-users] OSG and C# Users

2008-10-30 Thread maya leonard
Hello hesicong, OSG and C# Users I'm trying to get textures to load within osg C# application and nothing happens. Certain textures such as rgb formats work, but jpg and gif do not work. You can replicate this problem with the osgnetdemo sample by hesicong and the sample skydome.osg sampl

[osg-users] CompositeViewer event delivery bug? [patch included]

2008-10-30 Thread thomas weidner
Hi, I use osgViewer::CompositeViewer with several views. All views share parts of their scene graphs. Within these common part some nodes have event handlers which use the action adapter argument to the event handler to determinate which view received the event. Here is the problem, osgViewer::Com

Re: [osg-users] read file Collada using osg

2008-10-30 Thread Tomlinson, Gordon
Well did you read what 3rd Party packages it provides ? Does it list Collada if it does then you should be ok if it does not then you have provide.. The package only provides a subset of possible 3rd part additions for OSG its aimed at the common prerequisites that most would need Gordo

Re: [osg-users] read file Collada using osg

2008-10-30 Thread Adonai Canêz
Hi, when I'm compile osg I'm using 3rd party from http://www.openscenegraph.org/projects/osg/wiki/Downloads/Dependencies. This package not solve this problem? Date: Thu, 30 Oct 2008 14:52:27 -0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [osg-users] read file Collada using osg

Re: [osg-users] read file Collada using osg

2008-10-30 Thread Tomlinson, Gordon
You will need to build the Collada 3rd party libraries and dependencies www.collada.org Gordon __ Gordon Tomlinson Product Manager 3D Email : gtomlinson @ overwatch.textron.com __

[osg-users] read file Collada using osg

2008-10-30 Thread Adonai Canêz
Hi, I'm trying to read a file extension .dae (COLLADA) version 1.4.0, using openSceneGraph version 2.4, but I'm getting the information that has no plugin todo the reading.How do I solve this? int main(){osg::Group* cenario = new osg::Group();osg::Geode* GeodeTerreno = new osg::Geode();osgViewe

Re: [osg-users] osgShadow question (ATI related?)

2008-10-30 Thread Rick Middelkoop
Hi Wojtek, Thanks for helping out. Unfortunately I didn't have much time today to further investigate the problem. It does not sound like easy one. Are you sure that ATI bug only affects texture application ? Maybe render to texture is also flipped somehow. I assume you have modified texge

Re: [osg-users] choppiness on 2nd graphics card with 4 monitors

2008-10-30 Thread Joe Lyga
Hi Robert, Problem solved! It appears that this was either a Vista issue, an Nvidia Vista driver issue, or a combination of both. I managed to get an XP installation running using an extra internal hard drive on the 4 monitor system. With osgviewer on 4 monitors I'm getting nearly 500 fps with

Re: [osg-users] help building vpb for osg 2.6.1

2008-10-30 Thread David _
solved From: [EMAIL PROTECTED] To: osg-users@lists.openscenegraph.org Date: Thu, 30 Oct 2008 13:07:28 +0100 Subject: [osg-users] help building vpb for osg 2.6.1 Hi i´m a vista user, visual studio 2005 and i´m trying to compile VPB against osg 2.6.1 i cheked the vpb web and it said that

Re: [osg-users] World-space bounds of a node

2008-10-30 Thread Jean-Sébastien Guay
Hi Paul, PS Interestingly, Microsoft has a patent on cheaply computing bounding sphere radii in a scene graph. See US patent 6,664,975 in case you're interested Well, then forget I ever said anything about this. :-) J-S -- __ Jean-Sebastien

Re: [osg-users] World-space bounds of a node

2008-10-30 Thread Paul Melis
Jean-Sébastien Guay wrote: osg::Vec3 radiusVec(bs._radius, 0, 0); radiusVec = osg:Matrixd::transform3x3(radiusVec, localToWorld); bs._radius = radiusVec.length(); Or as Vincent noted: radius *= localToWorld.getScale().x(); But that would only be correct if the scale is uniform. If not, the

Re: [osg-users] mingw build problems

2008-10-30 Thread Csaba Halász
On Thu, Oct 30, 2008 at 9:38 AM, Alberto Luaces <[EMAIL PROTECTED]> wrote: > Hi Csaba, > > Out of curiosity, are you "jester"? Hi Alberto, Yes that's me :) > If that were your machine, how did you manage to install Dart with Mingw? I am > be interested in doing the same with a Cygwin build. I bu

Re: [osg-users] World-space bounds of a node

2008-10-30 Thread Jean-Sébastien Guay
Hi, osg::Vec3 radiusVec(bs._radius, 0, 0); radiusVec = osg:Matrixd::transform3x3(radiusVec, localToWorld); bs._radius = radiusVec.length(); Or as Vincent noted: radius *= localToWorld.getScale().x(); But that would only be correct if the scale is uniform. If not, the bounding sphere is a bo

Re: [osg-users] DatabasePager questions

2008-10-30 Thread John Vidar Larring
Thanks for removing it. The osgDB::Registry::getOrCreateDatabasePager function method has probably sent me on a wild goose chase more than once... -- John Robert Osfield wrote: Hi Rick, On Thu, Oct 30, 2008 at 12:17 PM, Rick Appleton <[EMAIL PROTECTED]> wrote: I see the point in having a sin

Re: [osg-users] Camera rotation on three axes

2008-10-30 Thread Steven Saunderson
- From: Paul Melis at 2008-10-30 23:45- Steven Saunderson wrote: > Hi Paul, > > Thanks for you quick answer. I've tried loading the matrix manually > but I still get stuck when both x-axis and y-axis are PI/2. I'm not sure what you mean here. It sounds like you're building your matrix fr

Re: [osg-users] OpenSceneGraph-2.7.4 dev release tagged.

2008-10-30 Thread Paul Melis
Paul Melis wrote: Ok, upgrading to CMake 2.7.8 seems to have fixed this... Doh! That should be 2.4.8... Paul ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] DatabasePager questions

2008-10-30 Thread Robert Osfield
On Thu, Oct 30, 2008 at 12:52 PM, Rick Appleton <[EMAIL PROTECTED]> wrote: > Thanks again for the quick reply. All is clear now, and I'll fix our code to > not use the Registry DatabasePager. They are now removed from svn too :-) Robert. ___ osg-users

Re: [osg-users] OpenSceneGraph-2.7.4 dev release tagged.

2008-10-30 Thread Paul Melis
Ok, upgrading to CMake 2.7.8 seems to have fixed this... Paul Paul Melis wrote: Hello Robert, What are the current requirements on the CMake version used? I have 2.4.6 and get CMake Error: Error in cmake code at /home/paul/c/osg-svn/CMakeLists.txt:25: IF had incorrect arguments: POLICY CMP0

Re: [osg-users] World-space bounds of a node

2008-10-30 Thread Jean-Sébastien Guay
Hi Paul, (just keeping the results here so it's easy to see what we're talking about, sorry for the 5 levels of quoting :-) ) _min = ( -1.4047172 , -0.94869113 , -1.9402435 ) _max = ( 2.7989883 , 0.95002991 , 0.33612174 ) ... _min = ( -1.4047172 , -0.94869113 , -11.940244 ) _max = ( 2

Re: [osg-users] DatabasePager questions

2008-10-30 Thread Rick Appleton
Thanks again for the quick reply. All is clear now, and I'll fix our code to not use the Registry DatabasePager. Rick -Original Message- From: [EMAIL PROTECTED] on behalf of Robert Osfield Sent: Thu 10/30/2008 1:36 PM To: OpenSceneGraph Users Subject: Re: [osg-users] DatabasePager quest

Re: [osg-users] OpenSceneGraph-2.7.4 dev release tagged.

2008-10-30 Thread Paul Melis
Hello Robert, What are the current requirements on the CMake version used? I have 2.4.6 and get CMake Error: Error in cmake code at /home/paul/c/osg-svn/CMakeLists.txt:25: IF had incorrect arguments: POLICY CMP0008 (Unknown arguments specified). Current CMake stack: /home/paul/c/osg-svn/CMakeL

Re: [osg-users] Camera rotation on three axes

2008-10-30 Thread Paul Melis
Steven Saunderson wrote: - From: Paul Melis at 2008-10-30 21:10- You've hit upon a phenomenon called 'gimbal lock'. See http://web.archive.org/web/20041029003853/http:/www.j3d.org/matrix_faq/matrfaq_latest.html#Q34 for an explanation (and possibly some different ways of controling you

Re: [osg-users] DatabasePager questions

2008-10-30 Thread Robert Osfield
Hi Rick, On Thu, Oct 30, 2008 at 12:17 PM, Rick Appleton <[EMAIL PROTECTED]> wrote: > I see the point in having a single osgDB::DatabasePager for a single > osgViewer::Scene. However, this immediately raises the question which > DatabasePager osgDB::Registry would point to, as osgDB::Registry is

Re: [osg-users] DatabasePager questions

2008-10-30 Thread Rick Appleton
Thank you Robert for the quick reply. I see the point in having a single osgDB::DatabasePager for a single osgViewer::Scene. However, this immediately raises the question which DatabasePager osgDB::Registry would point to, as osgDB::Registry is a singleton and only has a single pointer to a Dat

[osg-users] help building vpb for osg 2.6.1

2008-10-30 Thread David _
Hi i´m a vista user, visual studio 2005 and i´m trying to compile VPB against osg 2.6.1 i cheked the vpb web and it said that i needed the vpb svn r924 revision in order to make it work with osg 2.6.0 i downloaded the VPB 0.9.7 and overwrote the files that were modified in the r924 svn relea

Re: [osg-users] [Fwd: Re: auto-capture example: capturing an image from a PagedLOD Database]

2008-10-30 Thread Robert Osfield
Hi John, I'll do a review of the submission and provide a bit more in the way of thoughts once completed. In terms of possible optimizations, disabling the precompile and only doing the update, event, and cull would be probably the most efficient way to get tiles loaded, then once the tiles are l

Re: [osg-users] auto-capture example: capturing an image from a PagedLOD Database

2008-10-30 Thread Kallfass, Daniel
Hi John, > Although this works, it takes a looong time for the program to capture > the full-res image. I'll send the example and DatabasePager mods to > osg-submissions, and I hope the community can find a better / faster way > to implement this example. One suggestion to speed up the loading

Re: [osg-users] DatabasePager questions

2008-10-30 Thread Robert Osfield
Hi Rick, The osgDB::DatabasePager::instance() exist for backwards compatibility with osgProducer from the OSG-1.x era. In OSG-2.x's osgViewer library there is one osgDB::DatabasePager per osgViewer::Scene, and the Scene is used internally by osgViewer::View to manage the sharing of a single scene

Re: [osg-users] Camera rotation on three axes

2008-10-30 Thread Steven Saunderson
- From: Paul Melis at 2008-10-30 21:10- You've hit upon a phenomenon called 'gimbal lock'. See http://web.archive.org/web/20041029003853/http:/www.j3d.org/matrix_faq/matrfaq_latest.html#Q34 for an explanation (and possibly some different ways of controling your camera). Hi Paul, Tha

[osg-users] [Fwd: Re: auto-capture example: capturing an image from a PagedLOD Database]

2008-10-30 Thread John Vidar Larring
Re-sending since the the original mail did not seem to make it through... -- John -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --- Begin Message --- Hi Robert, I made it work! However, to make the example work I had to a new

Re: [osg-users] auto-capture example: capturing an image from a PagedLOD Database

2008-10-30 Thread John Vidar Larring
Hi Robert, I made it work! However, to make the example work I had to a new statistics counter to DatabasePager. I added the method the DatabasePager: /** Get number of fileRequest that are currently being processed in DatabaseThreads */ int getRequestsInProgress() const { return _requestsIn

[osg-users] DatabasePager questions

2008-10-30 Thread Rick Appleton
I've only recently started using OpenSceneGraph, so am probably mistaken about this, but I feel there's some issues with osgDB::DatabasePager. It seems the design of osgDB::DatabasePager allows for multiple instances of it to exist side-by-side. Scene creates one instance in it's constructor, a

Re: [osg-users] BS radius : world coordinate or local coordinate ?

2008-10-30 Thread Vincent Bourdier
Thanks Grodon. :-) 2008/10/30 Tomlinson, Gordon <[EMAIL PROTECTED]> > Hi > > Get bounds is the local coordinates of the node. > > So yes any scale in the tree above the node will need to be factored in if > you matrices that apply a scale above the node > > > *Gordon* > > __

Re: [osg-users] Camera rotation on three axes

2008-10-30 Thread John Vidar Larring
Hi Steven, Here is a snipplet of code from the osgautocapture example that I just sent to osg-submissions (if my email got through?), provided as is. I hope it might be of help: ... // Compute eye point in world coordiantes osg::Vec3d eye; csn->getEllipsoidModel()->convertLat

Re: [osg-users] BS radius : world coordinate or local coordinate ?

2008-10-30 Thread Tomlinson, Gordon
Hi Get bounds is the local coordinates of the node. So yes any scale in the tree above the node will need to be factored in if you matrices that apply a scale above the node Gordon __ Gordon Tomlinson Product Manager 3D Email : gtom

Re: [osg-users] Camera rotation on three axes

2008-10-30 Thread Tomlinson, Gordon
As Paul mentions the is the age old Gimbal Lock problem The quick answer to this is to build a quaternion and use that populate the oration matrix Or the really old nasty trick of limiting rotations to -89.5 thru +89.5 or so ... Gordon _

Re: [osg-users] Camera rotation on three axes

2008-10-30 Thread Paul Melis
Steven Saunderson wrote: I'm trying to rotate a camera on all axes but my code fails when the x-axis or y-axis rotation approaches 90 degrees. I am using a viewer.frame loop to avoid the default manipulator supplied by viewer.run. My current camera code is : cameraRotation.makeRotate (

[osg-users] Camera rotation on three axes

2008-10-30 Thread Steven Saunderson
I'm trying to rotate a camera on all axes but my code fails when the x-axis or y-axis rotation approaches 90 degrees. I am using a viewer.frame loop to avoid the default manipulator supplied by viewer.run. My current camera code is : cameraRotation.makeRotate ( yrads,osg::Vec3

Re: [osg-users] If I want to use wxWidgets with OSG, do I need a particular version of wxWidgets?

2008-10-30 Thread Paul Melis
Frank van Meurs wrote: I've had my share of problems with this of late as well, but managed to get everything working. You have to indeed manually enable OpenGL support when building wxWidgets. To do so, you need to edit the 'master setup.h file'. This file can be found at "include/wx/" (as d

Re: [osg-users] If I want to use wxWidgets with OSG, do I need a particular version of wxWidgets?

2008-10-30 Thread Frank van Meurs
Hi, I've had my share of problems with this of late as well, but managed to get everything working. You have to indeed manually enable OpenGL support when building wxWidgets. To do so, you need to edit the 'master setup.h file'. This file can be found at "include/wx/" (as described at

[osg-users] BS radius : world coordinate or local coordinate ?

2008-10-30 Thread Vincent Bourdier
Hi, Just a simple question for you : When I get the Radius of a BS of a node, do I get the radius in World scale unit ? or is the raduis depending on the scale of the node ? for the moment I use : *node->getBound().radius() * node->getWorldMatrices()[0].getScale()[0] *But I am not sure of the re

Re: [osg-users] mingw build problems

2008-10-30 Thread Alberto Luaces
Hi Csaba, El Miércoles 29 Octubre 2008ES 20:36:19 Csaba Halász escribió: > I encountered some problems while building OSG using mingw. > > 1) can't build osgwrappers. on 32 bit windows, ld goes up to about 2GB > mem usage and then aborts. Out of curiosity, are you "jester"? http://www.cdash.org/

Re: [osg-users] I use eclipse IDE with QT4.4.3

2008-10-30 Thread Wang Rui
Hi YangXiao, I think a same compiler (to build OSG and QT) is required, no matter which IDE is used. Wang Rui 2008/10/30 YangXiao <[EMAIL PROTECTED]> > Hi > I use eclipse IDE with QT4.4.3, Can I integrate with OSG(I compile osg > use vc2005 sp1) with eclipse IDE and QT4.4.3, > > Best Regards

[osg-users] I use eclipse IDE with QT4.4.3

2008-10-30 Thread YangXiao
Hi I use eclipse IDE with QT4.4.3, Can I integrate with OSG(I compile osg use vc2005 sp1) with eclipse IDE and QT4.4.3, Best Regards YangXiao. - 雅虎邮箱,您的终生邮箱!___ osg-users mailing list osg-users@list

Re: [osg-users] Callbacks: operator() call

2008-10-30 Thread Vincent Bourdier
Hi, To use a lot of callback, you need to verify that you call *traverse(node, nv);* at the end of each callback operator() to continue traversing the graph. If I'm right, all the callback are traversed at each frame, during the update (for the updatecallback) and is it not done in a parallel th