Re: [osg-users] Windows forms and c#

2009-06-22 Thread Smelik, R.M. (Ruben)
Dear Ba, Here's a working example of integrating OSG with C++/CLI and WinForms, which was made by Hesicong a year ago: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-February/007430.html You can integrate this into a Visual Studio solution with a C# project. Kind

Re: [osg-users] osgOcean : Integration intoexisting Database/Application

2009-06-22 Thread John Vidar Larring
Hi Kim, Sorry, I should mention that we only work with geocentric models, so I forgot to consider flat terrain models in the naming:) A world without elevation is just an Ellipsoid for us. Hence, a new TerrainManipulator that ignores elevation altogether, would basically be an

Re: [osg-users] intersection point and the right triangle

2009-06-22 Thread Großer Martin
Hello Robert, now, I use the osgUtil::IntersectionVisitor. The example was very helpfully. But I have a new little problem. I get the first intersection: const osgUtil::LineSegmentIntersector::Intersection hit = _ray-getFirstIntersection(); After this, I get the intersection point in world

Re: [osg-users] OpenGl settings wrongly read?

2009-06-22 Thread Christophe Herreman
Indeed Ulrich, It seems that for some reason Opengl32.dll uses a software implementation of microsoft, which only supports a few basic features. Strangely, when I retry to load the same scene in the same conditions, it sometimes uses the correct nvidia driver and hardware. Even re-installing

Re: [osg-users] VPB and CMake

2009-06-22 Thread Robert Osfield
HI Loic, Could you try removing your CMakeCache.txt file and then re-run ./configure to see if the variables get set up correctly. Robert On Sun, Jun 21, 2009 at 6:52 PM, Simon Loicsimon1l...@gmail.com wrote: Hi Robert, I perfectly understand the aim of this test. Though I'm a bit perplexed

Re: [osg-users] VPB and CMake

2009-06-22 Thread Simon Loic
Hi Robert. I don't understand. I've just tried at work and the build goes well. I'll try to see what went wrong at home. Thanks Loïc Simon On Mon, Jun 22, 2009 at 9:41 AM, Robert Osfield robert.osfi...@gmail.comwrote: HI Loic, Could you try removing your CMakeCache.txt file and then re-run

Re: [osg-users] [3rdparty] Is the osgOcean Linux bug still present?

2009-06-22 Thread Pierre Bourdin (gmail)
Le dimanche 21 juin 2009 à 15:40 +0100, Kim C Bale a écrit : Hi Pierre, I won't have many time next week, but if I can, I'll try to witch the 2 cards, just to see if it's working well with the 4600 on debian 32 bits... If you could that would be brilliant, but I realise it's a big ask.

Re: [osg-users] Advice sought for rendering coins in OSG. Lots ofcoins.

2009-06-22 Thread Kim C Bale
Hi Christian, Looks great! The behaviour of the coins is spot on. It's crying out for some shiny shaders though.. Kim. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christian Buchner Sent: 21 June

[osg-users] osg _email_list

2009-06-22 Thread jinpengxuan
osg _email_list ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Windows forms and c#

2009-06-22 Thread Himar Carmona
Hi Ba, maybe i could recommend you two books about C++/CLI: First, Pro Visual C++/CLI and the .NET 2.0 Platform by Stephen R.G. Fraser. This is an introductory manual to .NET from the C++/CLI perspective. It's like a beginner C# book, but instead using c#, it uses C++/CLI. Here you will

[osg-users] [3rdparty] cannot run examples on osgNV

2009-06-22 Thread Sebastien Nerig
Hi, I've just downloaded osnNV 0.6.2, compiled it, and tried to run osgNVCg1 example. When I execute the sample, a dialog box says that message : the cgGetParametersBufferOffset function cannot be find in cg.dll Do I have a bad version of CG on my computer ?? My CG.dll version seems to be

[osg-users] OpenSceneGraph-2.8.2 release candidate one tagged

2009-06-22 Thread Robert Osfield
Hi All, I've just tagged the OpenSceneGraph-2.8.2-rc1, below is what I've posted on the OSG dev blog : http://blog.openscenegraph.org/ -- I have just tagged the OpenSceneGraph-2.8.2-rc1, the first release candidate for the up coming stable OpenSceneGraph-2.8.2 release. OpenSceneGraph-2.8.2 will

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Vic Ace
I have a game-engine-learning-project that uses SDL for input and works fine able to open a window a recieve the input so far but now I want to add OSG to it. I'm completely new and have never used it before, neither am I the most experienced programmer ever so... I may be missing something.

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Tomlinson, Gordon
Are you Visual Studio 2005 ? If so have you installed SP1 , This can also happen if your mixing 2005 and 2008 DLL's Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com

[osg-users] Rendering to PBO from a command line OSG program.

2009-06-22 Thread Jesper D. Thomsen
Hi all (and thank you for your help in the past). I work on an application were I'm using OSG to display viewports of a model. I have a function of my application where I use PBO's to take high-res screenshots of the displayed model. However, I now also need to be able to take screenshots from

Re: [osg-users] Rendering to PBO from a command line OSG program.

2009-06-22 Thread Robert Osfield
Hi Jesper, You can't do OpenGL rendering without a graphics context, that graphics context has to be supplied by either a window or a pbuffer. In your case you'll be wanting to use a pbuffer. The osgscreencapture uses a pbuffer to enable the capture a screen shot without a window appearing.

Re: [osg-users] Rendering to PBO from a command line OSG program.

2009-06-22 Thread Jesper D. Thomsen
Thank you very much, I must have missed that one (somehow) when looking through the examples. From you description, this sounds to be exactly what I'm looking for. I will take a look at that example, and hopefully it'll be easy to translate to my specific needs. Regards, and thanks. Jesper D.

Re: [osg-users] Gearing up for OpenSceneGraph-2.8.2, OpenSceneGraph-2.10 and VirtualPlanetBuilder-1.0 releases

2009-06-22 Thread Andy Skinner
I'd like to see the SceneGraphOrderRenderBin implementation if it could fit in. It was discussed in May. andy -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Saturday, June 20,

Re: [osg-users] intersection point and the right triangle

2009-06-22 Thread Großer Martin
Hello Robert, I dig into the LineSegmentIntersector code and I found the lines 391 - 399: if (geometry) // it is true { osg::Vec3Array* vertices = dynamic_castosg::Vec3Array* (geometry-getVertexArray()); if (vertices) // it is always false { osg::Vec3* first = (vertices-front());

Re: [osg-users] Gearing up for OpenSceneGraph-2.8.2, OpenSceneGraph-2.10 and VirtualPlanetBuilder-1.0 releases

2009-06-22 Thread Robert Osfield
Hi Andy, On Mon, Jun 22, 2009 at 1:14 PM, Andy Skinnerandy.skin...@mathworks.com wrote: I'd like to see the SceneGraphOrderRenderBin implementation if it could fit in.  It was discussed in May. It's already checked in, we just need to put together an example ;-) Robert.

Re: [osg-users] intersection point and the right triangle

2009-06-22 Thread Robert Osfield
Hi Martin, A perplexing result for which I have no answer. Robert. 2009/6/22 Großer Martin grosser.mar...@gmx.de: Hello Robert, I dig into the LineSegmentIntersector code and I found the lines 391 - 399: if (geometry) // it is true {   osg::Vec3Array* vertices =

Re: [osg-users] Windows forms and c#

2009-06-22 Thread Glenn Waldron
http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembedanOSGviewerina.NETcontrol Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Mon, Jun 22, 2009 at 12:35 AM, buidinhba5 buidinh...@gmail.com wrote: Hi Jason Beverage You can give more

Re: [osg-users] [3rdparty] cannot run examples on osgNV

2009-06-22 Thread Wang Rui
Hi Sebastien, osgNV seems to work well with Cg 2.2 (April 2009). Maybe you could check if you have different Cg libraries on your computer. For example, there is another version of Cg included in Autodesk Maya, which may conflict with current 2.2.0.6. Yours, Wang Rui 2009/6/22 Sebastien Nerig

Re: [osg-users] Gearing up for OpenSceneGraph-2.8.2, OpenSceneGraph-2.10 and VirtualPlanetBuilder-1.0 releases

2009-06-22 Thread Jean-Sébastien Guay
Hi Robert, Nightly builds of the OSG-2.8 branch are probably the primary touch point right now as the OSG-2.8.2 will be the first in the series of releases to go out the door. OK great, I'll switch my nightly builds to build the 2.8 branch. J-S --

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Vic Ace
I'm using Visual C++ 2008 Express Editon. Downloaded these files from the OSG website: openscenegraph-all-2.8.1-win32-x86-vc80sp1-Debug.zip openscenegraph-all-2.8.1-win32-x86-vc80sp1-Release.zip And I followed this guide: http://dwightdesign.com/2009/05/installing-openscenegraph-280/ I have

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Tomlinson, Gordon
That's correct mixing dll's built with different version of VS in this case 2005/2008 is not recommend and cause the issue you are seeing You need to have the dll's/libs all build with the same compiler version Gordon Product Manager 3d

Re: [osg-users] intersection point and the right triangle

2009-06-22 Thread Großer Martin
Hello Robert, i find out something. I try to print out the adress of the geometry object and the vertices like the following lines: std::cout Adresse Geometry: (*geometry) std::endl; std::cout Adresse Vertices: (*vertices) std::endl; The result was... In LineSegmentIntersector:

Re: [osg-users] intersection point and the right triangle

2009-06-22 Thread Robert Osfield
Hi Martin, Something really odd is going on your system. It kinda looks like a compiler bug or a build error. I have g++ 4.3.3 on my Kubuntu system. It might be useful to put together an example code that illustrate this problem in way that others (like myself) can pick up and reproduce the

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Jason Daly
Vic Ace wrote: In Visual C++ Express Edition I looked at the Help-About page and there it says: Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Would that be the version number that we're talking about? For the SDL lib it says VC8 in the file path so that would be compiled in 8.0? And

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Sergey Kurdakov
Hi Microsoft Visual Studio 2008 is VC9 For the SDL lib it says VC8 that is why you have problems Regards Sergey ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] ViewerBase::stopThreading() and renderers

2009-06-22 Thread Cory Riddell
Hi Robert, The reason I started to look at this flag is because I'm getting frequent access violations when shutting down my app. Usually, the problem is in GraphicsContext::runOperations(). When I shut down, I call setDone(true) on my viewer instance. I also call stopThreading() and make

Re: [osg-users] ViewerBase::stopThreading() and renderers

2009-06-22 Thread Robert Osfield
Hi Cory, Do you find that normal OSG apps have problems when shutting down? Which version of the OSG are you using? When you say delete, exactly how are you going about delete? Could you supply an example of the clean up code you are using, it does sound like there is something amiss. Robert.

[osg-users] NodeTrackerManipulator and referential

2009-06-22 Thread Vincent Bourdier
Hi all, I get some code from NodeTrackerManipulator to get my own manipulator able to track a node, and I suceed, but there is some point I do not understand : I get the node rotation using : double sx = 1.0/sqrt(localToWorld(0,0)*localToWorld(0,0) + localToWorld(1,0)*localToWorld(1,0)

Re: [osg-users] ViewerBase::stopThreading() and renderers

2009-06-22 Thread Cory Riddell
Hi Robert, I just saw your post about the release of 2.9.5 and it includes threading fixes. I think I'll grab that and give it a go before I bother the list about this any more. Thanks, Cory Robert Osfield wrote: Hi Cory, Do you find that normal OSG apps have problems when shutting

[osg-users] VirtualPlanetBuilder 0.9.11 developer release tagged

2009-06-22 Thread Robert Osfield
Hi All, My last release of the day is VirtualPlanetBuilder-0.9.11. This is a key milestone towards 1.0 as I've now completed all the must have features for VirtualPlanetBuilder for it's 1.0, and for here on out I'll be focusing on testing, debugging and yes documentation ;-) The main

Re: [osg-users] PolytopeIntersector distance and Transform

2009-06-22 Thread Peter Hrenka
Hi Andrew, Andrew Cunningham schrieb: Hi Peter, Although your fix did not work - it is definitely the scale part of the transform causing the problem. If I remove the scaling part of the transform , then the polytope picking works as expected ... Thank you for the example. It turns

[osg-users] Translate osg 1.2 to 2.8

2009-06-22 Thread datacas
I am new to openscengraph, help!! How can translate OSG 1.2 to OSG 2.8, the following code???: osg::ref_ptrosgProducer::Viewer m_pViewer; for (unsigned int i=0;im_pViewer-getSceneHandlerList().size();i++)

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Vic Ace
I tested Dependency Walker, didn't know there was such a thing, thanks! The result was that it found one MSVCP90D.DLL and one MSVCR90D.DLL. The only difference is one character P and R. What does that mean? -- Read this topic online here:

Re: [osg-users] Obj loader: one mesh with different materials

2009-06-22 Thread Paul Martz
David Oyarzun wrote: Dear all, I am developing an application that allows to apply geometry deformations vertex by vertex. For doing this, I manage a list with the vertex indices of a geometry node. That is, for example I translate the vertex 5th independently

Re: [osg-users] Non-square osgParticles?

2009-06-22 Thread Kris Dale
Oh, very cool, thanks! I like the way that looks a lot better. Though I'm still trying to find a way to keep from bogging my video card down so badly. Making a decent looking plume = tons of particles, and even then it doesn't look solid from the side. Not sure how to get around this yet...

Re: [osg-users] Translate osg 1.2 to 2.8

2009-06-22 Thread Robert Osfield
Hi? Could you please sign with the name you wish to be addressed as we're all humans rather than automaton. On Mon, Jun 22, 2009 at 5:32 PM, data...@alumni.uv.es wrote: How can translate OSG 1.2 to OSG 2.8, the following code???: osg::ref_ptrosgProducer::Viewer m_pViewer; for (unsigned int

Re: [osg-users] OpenSceneGraph-2.8.2 release candidate one tagged

2009-06-22 Thread Jean-Sébastien Guay
Hi Robert, I've just tagged the OpenSceneGraph-2.8.2-rc1, below is what I've posted on the OSG dev blog : http://blog.openscenegraph.org/ Builds fine on Windows Vista, VC++ 2005 SP1. Quick testing of some osg apps and examples reveals no major problems (see below). Also tested a compile

Re: [osg-users] VPB and CMake

2009-06-22 Thread Simon Loic
Hi, back to home and found the problem. I had another cmake installed which was 2.6.0. However when typing which cmake in a console I was getting the ubuntu repositories version. Everything is ok now. thanks Robert. Loïc Simon On Mon, Jun 22, 2009 at 10:27 AM, Simon Loic simon1l...@gmail.com

[osg-users] Viewer and getDatabasePager

2009-06-22 Thread Martin Beckett
I was just testing 2.9.5 with the highest level of debug messages turned on and noticed that DatabasePager::addLoadedDataToSceneGraph is called on every frame - even when the model was simply loaded from an osg file. Do I have to do anything to disable the database pager if I'm not using it?

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Tomlinson, Gordon
A simple Google would get you http://msdn.microsoft.com/en-us/library/abx4dbyh.aspx Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __

Re: [osg-users] OpenSceneGraph-2.8.2 release candidate one tagged

2009-06-22 Thread Robert Osfield
Hi J-S, On Mon, Jun 22, 2009 at 6:55 PM, Jean-Sébastien Guayjean-sebastien.g...@cm-labs.com wrote: Builds fine on Windows Vista, VC++ 2005 SP1. Quick testing of some osg apps and examples reveals no major problems (see below). Also tested a compile with our framework and it went fine, but

Re: [osg-users] initGLNames thread safety

2009-06-22 Thread Paul Martz
I ran my test case for this issue on the 282 tag on Windows and encountered no problems. I'll try the same on the problem Mac system this evening. -Paul Robert Osfield wrote: Hi Paul, On Sun, Jun 21, 2009 at 7:42 PM, Paul Martzpma...@skew-matrix.com wrote: Excellent! That

Re: [osg-users] Viewer and getDatabasePager

2009-06-22 Thread Robert Osfield
Hi Martin, The addLoadedDataToSceneGraph is called on every frame but if there is PagedLOD nodes then this call will effectively be a non op so there will be practically no computation overhead so I wouldn't worry about it, it's been design to work this way and largely keep out of your way when

Re: [osg-users] OpenSceneGraph-2.8.2 release candidate one tagged

2009-06-22 Thread Paul Martz
Jean-Sébastien Guay wrote: Hi Robert, Builds fine on Windows Vista, VC++ 2005 SP1. Quick testing of some osg apps and examples reveals no major problems (see below). Also tested a compile with our framework and it went fine, but there too I only had time to test a few of our examples - no in

Re: [osg-users] OpenSceneGraph-2.8.2 release candidate one tagged

2009-06-22 Thread Jean-Sébastien Guay
Hi Robert, Would it be possible to double check these apps against OSG-2.8.0 and OSG-svn/trunk just to see if there is anything different there. As expected (you and I both) these are visible in svn trunk. I don't have a build of 2.8.0 with examples handy to test, but I expect it will

Re: [osg-users] Viewer and getDatabasePager

2009-06-22 Thread Martin Beckett
Thanks Robert - I commented out the timing message it generates. Other than that 2.9.5 works great in my admittedly limited usage. Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=14369#14369

Re: [osg-users] PolytopeIntersector distance and Transform

2009-06-22 Thread Andrew Cunningham
Hi, Peter Thanks for looking into this a tricky bug ... I got really lost trying to trace the problem myself. good luck! I think as a workaround I will scale the geometry manually without using a transform. Andrew -- Read this topic online here:

[osg-users] How to set the resolution for an openscenegraph window

2009-06-22 Thread tien dat
Dear all, I need to run OpenSceneGraph on a hand-held device (a Viliv S5) and it has a integrated graphics card only. So I want to reduce the resolution of my application so that the frame rate can be higher (right now it renders images at 1024x600 and runs at 0.5 fps or less). Is there a way to

Re: [osg-users] How to set the resolution for an openscenegraph window

2009-06-22 Thread Tomlinson, Gordon
Using env vars: set OSG_SCREEN=1 osgviewer cow.osg Will open it up on screen 1. Using command line: osgviewer cow.osg --screen 1 In windowed mode: set OSG_WINDOW=100 100 500 500 osgviewer cow.osg osgviewer cow.osg --window 100 100 500 500 Or just use a osgViewer .view config file

Re: [osg-users] initGLNames thread safety

2009-06-22 Thread Paul Martz
Re-tested with 8 core Mac and 2.8.2 tag. Verified fixed. Thanks again! -Paul Robert Osfield wrote: Hi Paul, On Sun, Jun 21, 2009 at 7:42 PM, Paul Martzpma...@skew-matrix.com wrote: Excellent! That nailed it, Robert. Bug is not present with current sen head. Tested my app

[osg-users] Need a hint on lightning

2009-06-22 Thread Cervantes Pintor Pedro
Hi. I have some models in a scene rendering perfectly. But when I add a specific model everything becomes dark. All models are child of a single osg::Group. I guess it´s a lightning problem with that model, so i tried to turn lights off for that model (with no luck) with: osg::StateSet*

Re: [osg-users] Need a hint on lightning

2009-06-22 Thread Jean-Sébastien Guay
Hello Cervantes (I assume that's your first name, please correct me if I'm wrong and please sign with your first name at the end of your messages as it makes for much friendlier conversation) I don´t have access to the original model, so i cannot modify it. Can someone give me a hint of how