Re: [osg-users] Some question about osgShadow... can someone help me?

2011-02-02 Thread Axel Spirtaat
Hi Steven, thanks for reply. I tryed to add shadows on my scene copying the osgShadow demo example. When I cleanbuild the project, the make returns an error... I don't understand why. Can you help me? Here is the code I added to my project: Code: int ReceivesShadowTraversalMask = 0x1;

[osg-users] Render To Texture is very slow

2011-02-02 Thread Martin Großer
Hello, I would like use render to texture in every render step. My texture resolution is 2048 x 2048 and it is very slow. There are tipps and tricks to speed up the render to texture? With 2048 x 2048 I get around 15 FPS and with 1024 x 1024 I get 45 FPS. Thanks Martin -- Neu: GMX De-Mail -

Re: [osg-users] Some question about osgShadow... can someone helpme?

2011-02-02 Thread Wojciech Lewandowski
Axel, Messages suggest that Linker cannot find symbols. Looks to me as missing osgShadow lib in your make file. For the small scene like yours simplest ShadowMap technique should be sufficient. I am recomending it because, extending this technique to support multiple lights will be easiest

[osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Aitor Ardanza
Hi, I'm having problems building osg 2.9.11.71 with support for fbx. By building with visual studio 2008 skips the below linking error: Code: Linking... 10fbxRAnimation.obj : error LNK2001: unresolved external symbol private: static void (__cdecl*

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Michael Platings
You say building with Visual Studio 2008 skips the link error - do you mean that it works on VS2008, but doesn't work with another IDE? Are you trying to use Visual Studio 2010? Are you trying to use the 2011.3 FBX SDK, or the 2011.3*.1* SDK? In CMake what are the FBX libraries and directories?

[osg-users] Camera control in osgvisual

2011-02-02 Thread Vijeesh Theningaledathil
Hi, I' new to the osg. I generated a terrain using osgdem. now Iwant to render it and I should be able to fly around. I downloaded osgVisual and in configuration file a selected the terrain which i created. But while executing the camera goes to some lat/lon . How can I control the camera

Re: [osg-users] [forum] OSG initial setup

2011-02-02 Thread Neil Neilson
Hi, CMAKE_INSTALL_PREFIX my error, I used the line in CMake Where to build the binaries I changed it the next time, that part is OK. When I am able to add something useful I will get an account in the wiki. Having the Getting Started on the main page would help. To deploy an app can the

Re: [osg-users] Render To Texture is very slow

2011-02-02 Thread David Callu
Hi Martin What is your Hardware/Software configuration? Which osg::Camera::RenderTargetImplementation did you use in your code ? Try the osgprerendercubemap example to test performance of your hardware. HTH David Callu 2011/2/2 Martin Großer grosser.mar...@gmx.de Hello, I would like use

Re: [osg-users] Camera control in osgvisual

2011-02-02 Thread Torben Dannhauer
Hi Vijeesh, If you just want to view your terrain you can also use the plain osgviewer. The benefit of osgVisual is that it allows to attach visible objects to external datasources and that you can use it across multiple rendering channels. To your problem: In your start command, do you

Re: [osg-users] Render To Texture is very slow

2011-02-02 Thread Martin Großer
Hello David, So I use the FRAME_BUFFER_OBJECT and I have a NVIDIA GTX 470 grafics card. I tried the osgprerendercubemap, but I cannot print out the frame rate. Additionally I tried the osgprerender example and I get a frame rate of around 3500 FPS. Here my Implementation:

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Aitor Ardanza
Michael Platings wrote: You say building with Visual Studio 2008 skips the link error - do you mean that it works on VS2008, but doesn't work with another IDE? Are you trying to use Visual Studio 2010? Are you trying to use the 2011.3 FBX SDK, or the 2011.3.1 SDK? In CMake what are the FBX

Re: [osg-users] Render To Texture is very slow

2011-02-02 Thread Peter Hrenka
Hi Martin, Am 02.02.2011 14:35, schrieb Martin Großer: Hello David, So I use the FRAME_BUFFER_OBJECT and I have a NVIDIA GTX 470 grafics card. I tried the osgprerendercubemap, but I cannot print out the frame rate. Additionally I tried the osgprerender example and I get a frame rate of

Re: [osg-users] Render To Texture is very slow

2011-02-02 Thread Martin Großer
Hello Peter, that was the problem! Now I have around 1500 FPS. I didn't know there are difference between to attach an image or a texture. Thank you very much! Cheers Martin Original-Nachricht Datum: Wed, 02 Feb 2011 14:58:46 +0100 Von: Peter Hrenka

Re: [osg-users] [forum] OSG initial setup

2011-02-02 Thread Jean-Sébastien Guay
Hello Neil, CMAKE_INSTALL_PREFIX my error, I used the line in CMake Where to build the binaries I changed it the next time, that part is OK. Good. To deploy an app can the necessary .dlls, images, etc. be included in a .zip and in the same directory as the app .exe so a user does not have

[osg-users] ON_DEMAND Rendering, OSG 2.8.0 released

2011-02-02 Thread Thomas Canipel
Hi, I need to use the ON_DEMAND rendering but I couldnt find a wawy to make it works wih the realeased 2.8.0, before I was using checkneedToDoFrame to see if I was really in need of calling the frame() function but it does not exist anymore, the env variable doesnt seems to be usable too so

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Michael Platings
That's all fine, I'm also building with VS2008 and FBX 2011.3.1. Again: In CMake what are the FBX libraries and directories? Also, have you tried cleaning the FBX project? (Always the first thing to try when VS won't build your project). On 2 February 2011 13:48, Aitor Ardanza

[osg-users] Concurrent image loading

2011-02-02 Thread Matt Schafer
Hi, I'm working on a program that periodically receives new images to display in our scene and sometimes may need to load multiple images at the same time. I'm currently trying to use my own background threads that call the osgDB readImage to return an Image pointer and then add a texture

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Aitor Ardanza
FBX_INCLUDE_DIR = C:/Program Files/Autodesk/FBX/FbxSdk/2011.3.1/include FBX_LIBRARY = C:/Program Files/Autodesk/FBX/FbxSdk/2011.3.1/lib/vs2008/fbxsdk_20113_1.lib FBX_LIBRARY_DEBUG = C:/Program Files/Autodesk/FBX/FbxSdk/2011.3.1/lib/vs2008/fbxsdk_20113_1d.lib I will try cleaning the vs

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Michael Platings
That could be the problem. Did you modify them manually? CMake shouldn't generate those automatically. Mine are: C:/Program Files/Autodesk/FBX/FbxSdk/2011.3.1/include C:/Program Files/Autodesk/FBX/FbxSdk/2011.3.1/lib/fbxsdk_md2008.lib C:/Program

Re: [osg-users] Some question about osgShadow... can someone help me?

2011-02-02 Thread Axel Spirtaat
Hi Wojtek, thank you for reply and suggestions. Wojciech Lewandowski wrote: Axel, Messages suggest that Linker cannot find symbols. Looks to me as missing osgShadow lib in your make file. I was supposing this, and of course I need to change the make file. Unfortunatelly, to create the

Re: [osg-users] Concurrent image loading

2011-02-02 Thread Robert Osfield
Hi Matt, I haven't ever used JPEG 2000 images and multi-threaded reading before so I can't say whether this will be thread safe. Are you using the OSG's jasper based plugin, or your own route? You'll need to use a debug to find out where you application is crashing. Also try changing to

Re: [osg-users] Some question about osgShadow... can someone helpme?

2011-02-02 Thread Wojciech Lewandowski
Axel, I am on Windows but imho CMakeLists.txt should contain osgShadow among REQUIRED osg libs. See the example below: # cmake_minimum_required (VERSION 2.6) set( APP_NAME my_applet ) project (${APP_NAME})

[osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Mukund Keshav
Hi Everyone, im having some trouble setting up a frustum view. i used the following code: Code: viewer.getCamera()-setProjectionMatrixAsFrustum(-640, 640, -480, 480, 1900, 20); and i queried the frustum with: Code: viewer.getCamera()-getProjectionMatrixAsFrustum(a, b, c, d, e, f);

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Aitor Ardanza
Hi, CMake can't find automaticaly FBX libs and dir. On C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib I have only 7 folders: Python26_x64, Python26_x86, Python31_x64, Python31_x86, vs2005, vs2008, vs2010 Thank you! Cheers, Aitor -- Read this topic online here:

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Michael Platings
Did you download the dynamic FBX libraries? You need to install the *static*FBX libraries. On 2 February 2011 16:29, Aitor Ardanza aitoralt...@terra.es wrote: Hi, CMake can't find automaticaly FBX libs and dir. On C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib I have only 7 folders:

Re: [osg-users] Some question about osgShadow... can someone help me?

2011-02-02 Thread Axel Spirtaat
HI Wojtek, thank you very much, your suggestion helped me a lot! Now the shadow works properly in my app. For who may have my same problem (I'm sure nobody is newbie as me), the solution was to add the line: FIND_OSG_LIBRARY(OSGSHADOW_LIBRARY osgShadow) to CMakeModules/FindOSG.cmake file Now I

Re: [osg-users] Discussion: metadata readerwriters output

2011-02-02 Thread Bob Youmans
What will the users do, who current utilize the userData in the node for their own specialized purposes? Is this going to break our models? -Original Message- From: Sukender [mailto:suky0...@free.fr] Sent: Tuesday, February 01, 2011 4:11 PM To: OpenSceneGraph Users Subject: Re:

[osg-users] osgQt::QWebViewImage, osgAnimation and Delta3d

2011-02-02 Thread Aitor Ardanza
Hi, I need the functionality of osgQt::QWebViewImage into Delta3d. I have compiled Delta3D 2.5 with osg 2.9.11 to be able to use it, and all is well... but I get errors when I try to load a model with animations. I know Delta3D is based on version 2.8.3 of osg and from that version there

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Aitor Ardanza
Michael Platings wrote: Did you download the dynamic FBX libraries? You need to install the static FBX libraries. could that be the problem ... I'll try ... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36285#36285

Re: [osg-users] Concurrent image loading

2011-02-02 Thread Matt Schafer
We're using the OSG Jasper based plugin 2.8.3. The program dies in the readImage function with the filename string argument. It references a null pointer returned from the jasper jas_image_decode function that can be returned if it found an error. It looks like there is some global data in

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Michael Platings
That's almost certainly the problem. I've updated the information in ReaderWriterFBX.h to make it clear that the static FBX libs are needed :) On 2 February 2011 16:57, Aitor Ardanza aitoralt...@terra.es wrote: Michael Platings wrote: Did you download the dynamic FBX libraries? You need to

Re: [osg-users] Concurrent image loading

2011-02-02 Thread Robert Osfield
Hi Matt, I'm not too familiar with the jasper plugin, as I'm not the author or user of it, so I'm afraid I won't be able to comment much directly. General things it would be worth looking at to double check jasper thread safety - there is chance it's not thread safe, or that there is restrictions

[osg-users] FrameStamp::getFrameNumber() ?

2011-02-02 Thread Brad Colbert
I'm trying to understand how the threading works in OSG when DrawThreadPerContext with respect to which process is on which frame at which time. It appears to me that the draw frame is skipping values in the frame count, as reported from FrameStamp::getFrameNumber(). My test code fills a

Re: [osg-users] OsgAnimation questions, strange fps and splitting animations

2011-02-02 Thread Cedric Pinson
Hi Thomas, Can you send the me files in osg, osgt, osgb. Then I will check those format before trying the fbx plugin (I dont have it installed yet) Regards, Cedric On Tue, 2011-02-01 at 18:37 +, Thomas Hogarth wrote: Hi Cedric Thanks for the feedback, If you experience something

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Mukund Keshav
Well, i saw a similar post in the forum. http://forum.openscenegraph.org/viewtopic.php?t=1780 So, my first query is clear. Well as for my second one. How is it the object is being projected if it is even placed before the near-clip plane? ie before 1900? i could not get this part. Thanks,

[osg-users] osgUtil::Optimizer::MergeGeometryVisitor

2011-02-02 Thread Poirier, Guillaume
Hello OSG community ! Just a quick question on the MergeGeometryVisitor. What is it supposed to do exactly ? My expectation is that it will merge all geometry drawables of a geode into one ? I created and exported a simple cube in 3DSMax. The file has one geode and 6 drawables, one for each

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Jean-Sébastien Guay
Hi Mukund, So, my first query is clear. Well as for my second one. How is it the object is being projected if it is even placed before the near-clip plane? ie before 1900? i could not get this part. Do you have a camera manipulator attached to your viewer? Even if you don't create one

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Mr Alji
this is a test ! thank you 2011/2/2 Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Hi Mukund, So, my first query is clear. Well as for my second one. How is it the object is being projected if it is even placed before the near-clip plane? ie before 1900? i could not get this part.

Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Anastasia Papas
I am facing the exact same problem :-/ Any solution yet??? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36272#36272 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] [vpb] [osgdem] remove polygons of the sea

2011-02-02 Thread Julien Chavaroche
Hi, I'm using osgdem to convert srtm to the flt format I very happy with the result but I got two problems: I want to remove the polygons of the sea and I don’t see in GDAL and in OSGDEM an option to remove data/polygons under the sea level The second problem is that each subtile exported is

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Mukund Keshav
Hi J-S, Thanks for the reply. Well, im not using a camera manipulator. This is what im doing: Code: int main() { // code here viewer.getCamera()-setProjectionMatrixAsFrustum(-640, 640, -480, 480, 1900, 20); osg::Matrix t; t.makeTranslate(osg::Vec3(0, 0, -1000)); //translate by 1000

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Jean-Sébastien Guay
Hello Mukund, There are two factors here: your setting the frustum, and OSG's compute near-far mode. First, since you are calling setProjectionMatrixAsFrustum yourself, you are resetting the coordinate system to be Y-up, with the Z axis going out of the screen. So when you make a line that

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Mukund Keshav
Hi J-S, But in your case, if you just want to not see your line (because it's closer to the camera than the near plane, and you want that near plane to stay set the way you've set it), do this before your frame loop:

Re: [osg-users] OpenSceneGraph 3.0 Beginners' Guide, drawing to a close

2011-02-02 Thread David Glenn
Greetings! Well, I finally reviewed the book and found it a good introduction to OSG! even though most of the stuff that is covered is based on stuff that you would learn as a matter of course from the forum and the examples. I guess that the only other (and maybe dumb) question I would have

[osg-users] Problem with OpenVrml Plugin( OSG 2.9.10)

2011-02-02 Thread Kumar Saurabh Arora
Hi Robert, I am using 0.18.6 OpenVrml and OSG 2.9.10. b-create_vrml_from_stream is returning empty nodes for everymodel.( parse_vrml returns vector of empty nodes) Does OSG plugin(2.9.10) compatible with OpenVrml 0.18.6? If so, what could be the possible reason? I am able to view models

Re: [osg-users] OsgAnimation questions, strange fps and splitting animations

2011-02-02 Thread Thomas Hogarth
Hi Cedric Can you send the me files in osg, osgt, osgb. Then I will check those format before trying the fbx plugin (I dont have it installed yet) The link I sent you was to a rar archive containing all the formats you requested, I'll resend the link in a mo. Also what platform are you on. I can

Re: [osg-users] How to setup osg with c++

2011-02-02 Thread Neil Neilson
Hi, He is having the same problem I have. http://forum.openscenegraph.org/viewtopic.php?t=7663start=0postdays=0postorder=aschighlight= The Getting Started should be on the main page rather than under Documents. Documents often refer to API data. He could be given this link

Re: [osg-users] [forum] OSG initial setup

2011-02-02 Thread Neil Neilson
Hi, You have been a great help. That is what I meant for inclusion in a .zip. I did not disable the MFC in Cmake, next time I will. Some progress: With the VS compile of the SVN code I was able to get many of the examples to run with a modified runexamples.bat Got some help on the Upp forum:

Re: [osg-users] How to setup osg with c++

2011-02-02 Thread Jean-Sébastien Guay
Hi Neil, You should have a look on osg website to find installation help. or Do a Google search. Is not what anyone needs or expects. Honestly, have you seen the traffic on this mailing list / forum? Have you seen the number of possible development environments you can use to develop C++

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Jean-Sébastien Guay
Hi Mukund, Well, i tried using the Visual Studio debugger to inspect the matrix values after retrieving them into an osg::Matrix variable. But that didn't help much. No, I said do a getProjectionMatrixAsFrustum() and inspect the result. For example: double left, right, top, bottom, zNear,

[osg-users] Controlling animations in FBX models

2011-02-02 Thread Renato Silveira
Hi, In my application I’m using osg with FBX plug-in. The FBX model that I’m using has a unique sequence of animations, called “Take 001”. The sequence includes a walk, stand, and run animations. Is there a way to specify that from frame 0 to 100 I have the walk animation, from frame 1001 to

[osg-users] Generating multitouch events

2011-02-02 Thread Paul Martz
Hi Stephan (and others) -- I'm working on a project that needs to generate multitouch events, and I have a question about the current (2.9.10) implementation. There are three main EventQueue methods for adding three different multitouch events: touchBegan() touchMoved() touchEnded()

Re: [osg-users] Camera control in osgvisual

2011-02-02 Thread Vijeesh Theningaledathil
Hi Torben Thanks for the reply. I want to develop a flight simulation visuals. That'ts why I can't use osgviewer. I modified the xml configuration file that is included in the download so that my terrain is loaded. (section pointing to terrain filename). and I removed the animation because I

Re: [osg-users] Problem with setProjectionMatrixAsFrustum()

2011-02-02 Thread Mukund Keshav
Hi J-S, Thanks a lot for the reply. You have been of great help. Show a little initiative, we won't be there to give you all the answers all the time! Sure. i think i have been a little lazy! i will do a thorough search in future, before asking any questions. Thanks a lot for the

Re: [osg-users] Camera control in osgvisual

2011-02-02 Thread Torben Dannhauer
Hi vijeesh, I personally use the animationpath ( I recorded it for 1 second while hovering on the destination location) so it immediately strts at that position and as soon as I want to use another camera manipulator, I use that. So I use th animationpath not for playing a real animation but

Re: [osg-users] How to setup osg with c++

2011-02-02 Thread Torben Dannhauer
Hi shyuan, I wrote a detailed OSG setup guide for linux and windows. The windows one is designed for VS 2008 Standard you can finde them here: General instructions: http://www.osgvisual.org/projects/osgvisual/wiki/BuildEnvironment Windows step-by-step Guide: