Re: [osg-users] side-by-side stereo display

2007-08-21 Thread Laurens Voerman
Hi Tom, for wat you're describing set OSG_STEREO=ON set OSG_STEREO_MODE=HORIZONTAL_SPLIT should do the trick. See http://www.openscenegraph.org/index.php?page=UserGuides.StereoSettings for more details. Laurens Voerman HPCV CIT University of Groningen www: http://www.rug.nl/cit/hpcv Tom Pearce

Re: [osg-users] OSGEXP building problem...

2010-03-08 Thread Laurens Voerman
Hi Alessandro, I usually build the exporter with a static linked osg, so I have no recent experience with your problem. It seems to me that you might be missing a dependency for osgdb_ive.dll, as the osgdb_osg.dll is found and working I can't see any reason why the ive plugin would not be

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

2009-07-23 Thread Laurens Voerman
Paul Melis wrote: Jason Daly wrote: Paul Melis wrote: Okay, can you give me some pointers how to make it work then? I have VS8 sp1, have downloaded the corresponding debug package from the OSG website and have a really small test application that forces OSG to use some freed memory. If I

Re: [osg-users] Static linking with user pulgins AND dynamic OSG?

2010-04-06 Thread Laurens Voerman
Hi Sukender, I'm very confused about Robert's reply, because it's working fine for me. I am using a modified dds reader linked into my app, which takes precedence over any osgdb_dds.dll because it registers on startup. This can be done by simply adding the (modified) ReaderWriterDDS.cpp to the

Re: [osg-users] Static linking with user pulgins AND dynamic OSG?

2010-04-07 Thread Laurens Voerman
://pvle.sourceforge.net/ - Laurens Voerman l.voer...@rug.nl a écrit : Hi Sukender, I'm very confused about Robert's reply, because it's working fine for me. I am using a modified dds reader linked into my app, which takes precedence over any osgdb_dds.dll because it registers on startup. This can be done

Re: [osg-users] Static linking with user pulgins AND dynamic OSG?

2010-04-08 Thread Laurens Voerman
files from a project into another one at link-time, but I guess it's a bit tricky and non portable... Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ - Laurens Voerman l.voer...@rug.nl a écrit : Hi Sukkender, if you are linking whith the .lib

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] valgrind, memory leak debugging

2010-05-04 Thread Laurens Voerman
Hi Thomas, I did a quick read of your code, and the first thing I notice is that the osgDB::readNodeFile result is assigned to a osg::Group*, NOT a osg::ref_ptrosg::Group . The pointers run out of scope at the end of generateSimplifiedNodes, mergeNodes seems to take most of the geometry, but

Re: [osg-users] Developer release of OSG and VPB imminent, please test.

2010-06-18 Thread Laurens Voerman
Hi Robert, OSG builds fine on my Windows XP, with VS2008. Our application runs as expected. I have not tested VPB nor have I tested with linux (not test case ready). Laurens. On 6/18/2010 10:30 AM, Robert Osfield wrote: On Thu, Jun 17, 2010 at 5:23 PM, Robert Osfield

Re: [osg-users] Reading/writing float data into an image

2010-10-15 Thread Laurens Voerman
Hi Mahendra , osgimage::data() returns an (unsigned char *) so the array indexing only steps one byte. use ((float *)dirImage-data(i))[0] = pos.x();//same effect ((float *)dirImage-data(i))[1] = pos.y();//different effect ((float *)dirImage-data(i))[2] = pos.z(); Laurens. On 10/15/2010 10:55

Re: [osg-users] PagedLOD - Trying to understand climbing mem usage

2011-03-23 Thread Laurens Voerman
Hi Sukender, Just a guess here, when you say Generate a PagedLOD, to load 'groupFile' do you call PagedLOD::addChild(Node *child, ) ? for the pageLOD will then hold the child in memory until PagedLOD::removeExpiredChildren() is called. Normally this is done in the frame loop (in

Re: [osg-users] PagedLOD - Trying to understand climbing mem usage

2011-03-23 Thread Laurens Voerman
Hi Sukender, Your code can't cause the problem I suggested, so it must be something else. I have no other suggestions to offer. Laurens. On 3/23/2011 11:12 AM, Sukender wrote: Hi Laurens, Thanks for the tip. But my function looks like: osg::ref_ptrosg::PagedLOD paged( new

Re: [osg-users] OSGExp: CMake build

2011-05-19 Thread Laurens Voerman
Thanks. On 5/19/2011 6:06 PM, Farshid Lashkari wrote: Thanks for pointing that out, should be fixed now. Cheers, Farshid On Thu, May 19, 2011 at 8:59 AM, Laurens Voerman l.voer...@rug.nl mailto:l.voer...@rug.nl wrote: Hi Farshid, sorry to bother you again, I think you are not even

Re: [osg-users] Crashing when building scene

2011-05-20 Thread Laurens Voerman
Seems to me that the transformer arrays are uninitialized. for(int i=0; inumFloors; i++){ elevatorShaftXforms[i] = new osg::PositionAttitudeTransform(); floorXforms[i] = new osg::PositionAttitudeTransform(); glassXforms[i] = new osg::PositionAttitudeTransform();

Re: [osg-users] Export 3ds max to *.osg or *.dae.

2012-11-22 Thread Laurens Voerman
Hi Peterakos, I have made some successful conversions with Bones and skinning by exporting to .fbx format. Laurens. On 11/21/2012 8:57 PM, Peterakos wrote: Edit second sentence: Now i try to use it in OSG. ___ osg-users mailing list

Re: [osg-users] Lock the aspect ratio while allowing the window to be resized

2013-01-22 Thread Laurens Voerman
Hi Ethan, I think this should do the trick: camera-setProjectionResizePolicy(osg::Camera::FIXED); Laurens. On 1/21/2013 4:14 PM, Ethan Fahy wrote: Hello, Is there any way to set up an osgViewer::Viewer with a locked aspect ratio that still allows the user to adjust the window size by

Re: [osg-users] Lock the aspect ratio while allowing the window to be resized

2013-01-22 Thread Laurens Voerman
Hi Ethan, I did not understand your question correctly. Setting the camera to camera-setProjectionResizePolicy(osg::Camera::FIXED) will fix the projection, not the window. As the version you want is not implemented in osg, you will need to catch resize attempts and force the window to resize

Re: [osg-users] Most efficient way to get a single pixel RGBA from an FBO texture

2013-01-23 Thread Laurens Voerman
Hi Ethan, Maybe you could just keep it all on the gpu, and create the text for the hud in a shader like drawtext GLSL shader http://mew.cx/drawtext/drawtext.html Laurens. On 1/23/2013 3:24 PM, Ethan Fahy wrote: I should note that my needs are very similar to the ones described in this post:

Re: [osg-users] Linker error in VS2012 in win 8 64 bit machine

2013-01-24 Thread Laurens Voerman
Hi Selvakumar, delete the file G:\Split5\Debug\Split.pdb and rebuild. I added in my CMakeLists.txt /wd4250 to disable the warning you see, (line ~762) Laurens. SET(OSG_AGGRESSIVE_WARNING_FLAGS /W4 /wd4706 /wd4127 /wd4100 /wd4250) On 1/19/2013 12:04 PM, Selvakumar Chellamuthu wrote: Hi, I

Re: [osg-users] osgviewer - OS X

2013-01-30 Thread Laurens Voerman
Hi Craig, my windows machine continues the output with FindFileInPath() : trying E:\osg\OpenSceneGraph-Data\cow.osg ... FindFileInPath() : USING E:\osg\OpenSceneGraph-Data\cow.osg itr='E:\osg\osgStable\vc91x64\bin' FindFileInPath() : trying

Re: [osg-users] wglGetCurrentContext vs osg::GraphicsContext::createGraphicsContext

2013-03-11 Thread Laurens Voerman
Hi Anders, did you try: m_viewer-setReleaseContextAtEndOfFrameHint(false); before the call to m_viewer-frame(); Hope that helps, Laurens. On 3/11/2013 11:33 AM, Anders Backman wrote: No one with insight on this? /Anders On Fri, Mar 8, 2013 at 11:27 AM, Anders Backman ande...@cs.umu.se

[osg-users] problem with include/osgViewer/config for windows users (svn commit 13403)

2013-05-16 Thread Laurens Voerman
(to winconfig or screenconfig perhaps?). Regards, Laurens Voerman. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] problem with include/osgViewer/config for windows users (svn commit 13403)

2013-05-16 Thread Laurens Voerman
from below 13403 to the commited version with no conflicting file/directory mix. Regards, Laurens On 5/16/2013 10:47 AM, Robert Osfield wrote: Hi Laurens, On 16 May 2013 09:20, Laurens Voerman l.voer...@rug.nl mailto:l.voer...@rug.nl wrote: Hi Robert, with svn commit a problem

Re: [osg-users] Crashes after unloading library

2013-05-16 Thread Laurens Voerman
Hi Gabriel, First a question: what operating system are you using? Second question: when your shared library gets unloaded, do any other shared library's get unloaded as well? On windows I can imagines your dll being linked to an osg part that will install callbacks in the scengraph,

Re: [osg-users] problem with include/osgViewer/config for windows users (svn commit 13403)

2013-05-16 Thread Laurens Voerman
Hi Robert, Svn update successful, (after deleting config directory by hand and TurtoiseSvn clean up ) Cmake configure seemed to work fine, now compiling. osg97-osgViewer.dll compiled just fine. Regards, laurens. On 5/16/2013 12:12 PM, Robert Osfield wrote: Hi All, I have now checked in

Re: [osg-users] Warning messages VS2012...

2013-05-31 Thread Laurens Voerman
On 5/31/2013 10:40 AM, Sebastian Messerschmidt wrote: Hi Robert, Hi Pjotr, On 31 May 2013 08:09, Pjotr Svetachov pjotrsvetac...@gmail.com wrote: This is actually an issue with the visual studio 2012 library, see here for an explanation:

Re: [osg-users] Pre-built dependencies for Visual Studio 2012

2013-06-14 Thread Laurens Voerman
Hi Jan, I have a reasonable package compiled with visual studio express 2012, currently I have 64 bit versions only, a x86 version for winXP is still on my todo list. also still todo is to clean up my the modifications to the sources. the include and relase lib files take 21.7 MB in .7z

Re: [osg-users] Please test svn/trunk in prep for 3.1.8 dev release

2013-06-20 Thread Laurens Voerman
Hi Robert, we noticed over here that something goes wrong if the viewer is started with OSG_STEREO=ON, both with anaglyph stereo on windows and with Quad buffered stereo on linux. We don't have a fix yet, and probably won't get around to digging out the actual problem this week, so for now

Re: [osg-users] Display Order with OpenGL ES 2.0 on Android

2013-06-27 Thread Laurens Voerman
Hi Bruno, you probably want the behind quad to have a different depth (second value in the osg::Vec3), so it will appear to be behind the other quad. The order in the graph or the order of adding to the graph has no impact on the result at all. Regards, Laurens. On 6/26/2013 11:41 AM, Bruno

Re: [osg-users] Question regarding collada

2013-07-18 Thread Laurens Voerman
Hi Chris, Torben, I have set up a svn repostory with the stuff I use to build with vs2012 x64 http://vcs.service.rug.nl/svn/osg-dep/ (currently ~1MB) It could still use polishing, but I will not find the time to do so soon, but suggestions are welcome. I think next on my list are: -x86

Re: [osg-users] [osgPlugins] FBX animations corrupted when using osg 3.2.0 with newer fbx plugin

2013-08-20 Thread Laurens Voerman
Hi Björn, simple things first, did you try with SET OSG_OPTIMIZER=OFF Regards, Laurens. On 8/15/2013 10:14 AM, Björn Blissing wrote: To clarify the problem further. Loading and playing single FBX files seems to work fine. My problems begins when I try to copy animations from several FBX

Re: [osg-users] Create Texture coodinates for modified geometry

2013-09-06 Thread Laurens Voerman
Hi Daniel, the following piece of code calculates the textureCoordinates for a (user picked)point in 3d space, so this might be useful for what you are trying to do. Laurens. if (transparentImage) { const osg::Geometry* geometry = hit.drawable-asGeometry();

Re: [osg-users] using stereo with osgview had a problem

2013-09-12 Thread Laurens Voerman
Hi cloudending, Quad buffered stereo requires a nvidia quadro or ati firepro videocard, with OpenGL stereo enabled in the driver. If you have a capable videocard you will need to enable this option in the driver. Regards, Laurens. On 8/23/2013 4:45 PM, Liao Jinyi wrote: Hi, I an new to

Re: [osg-users] Problem showing a dashed line in the scene.

2013-10-30 Thread Laurens Voerman
Hi Adri, I think you want osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE in your call to setAttributeAndModes, using only OVERRIDE means OVERRIDE | OFF. Hope that helps, I would expect your code to show the solid line. Regards, Laurens. On 10/30/2013 5:17 PM, Adri CS wrote: Hi! I'm

Re: [osg-users] osgconv

2014-02-25 Thread Laurens Voerman
Hi Ekaterina, how is your OSG_NOTIFY_LEVEL set? Notify levels FATAL and WARN suppress even the help output, witch might explain the lack of response you see. try (for windows) set OSG_NOTIFY_LEVEL=NOTICE osgconv -h or for unix bash shell this should be export

Re: [osg-users] Problem with animation in .osgb files

2014-02-25 Thread Laurens Voerman
Hi Maxim I tried your code, and it plays an animation from an .osgb file for me. Regards, Laurens. On 9/30/2013 2:18 AM, Maxim Voloshin wrote: Hi, everyone I am new in OSG and have a problem. I wrote the code that plays animation in .fbx models, but I can't play animation in .osgb(.osgt,

Re: [osg-users] RenderBin-question/problem

2011-11-16 Thread Laurens Voerman
Hi Stephan, You created a nested renderbin, and because of its non negative bin number it will draw after the contents of the first bin. Both are DepthSortedBin with binNumber 10. Regards, Laurens. On 11/14/2011 5:56 PM, Stephan Maximilian Huber wrote: Hi I am having problems with

Re: [osg-users] [osgPlugins] png plugin - problem loading images

2011-11-28 Thread Laurens Voerman
Hi Andrey, Most likely your osgdb_png.dll depens on a dll not in your path. It might be libpng.dll but now I am just guessing. use dependencywalker (http://www.dependencywalker.com/) http://www.dependencywalker.com/ to see what's the problem. Laurens. On 11/23/2011 6:33 PM, Andrey Ibe

Re: [osg-users] [osgPlugins] png plugin - problem loading images

2011-12-01 Thread Laurens Voerman
Hi Andrey, Just assuming the libpng15.dll is the one you build from source, and not something you happened to have in your path.. renaming the way you did is not very likely to work, an executable should now the name of the dll it wants to use, and will fail to start if you renamed it.

Re: [osg-users] Frame syncing over multiple contexts

2012-01-16 Thread Laurens Voerman
Hi Anna, Robbert, I think the bufferswaps on window are by default not synchronized, a call to wglJoinSwapGroupNV(HDC hdc, GLuint group) is needed to make different windows synchronize. the osg lib has the code to make the call, just set traits-swapGroupEnabled = true; before

Re: [osg-users] Play audio files

2012-01-24 Thread Laurens Voerman
Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Laurens Voerman Sent: lunes, 23 de enero de 2012 15:12 To: OpenSceneGraph Users Subject: Re: [osg-users] Play audio files Hi All, I have ffmpeg movie audio working

Re: [osg-users] osgmaxexp problems

2012-01-31 Thread Laurens Voerman
Hi Seppo, What compiler are you using? I think max 2012 is compiled with VC 2008 SP 1, (at least the x64 version is; found some hints at autodesk.com that's true for x86 too). Using a different compiler for osg or osgMaxExp might cause problems. Laurens. On 1/31/2012 1:51 PM, Sergey

Re: [osg-users] osgAnimation: Jump to animation

2012-03-06 Thread Laurens Voerman
Hi Martin, It's not very pritty, but from reading the code I think this will work: animationManager-playAnimation( myAnimation ); myAnimation-setStartTime(myAnimation-getStartTime() -3.0); Regards, Laurens. On 3/6/2012 12:21 PM, Martin Haffner wrote: Hi, I have a little question about

Re: [osg-users] osgb exports from unices not importable on win32 / osgt works fine

2012-05-01 Thread Laurens Voerman
Hi Jan, your ogsb file seems to have been converted to windows newline style: every 0x0A byte has been replaced by 0x0D0A Is something converting your files while you copy? Laurens. On 4/30/2012 6:28 PM, Jan Ciger wrote: On Mon, Apr 30, 2012 at 6:08 PM, Robert Osfield

Re: [osg-users] [osgPlugins] statically linking osgPlugins for Android

2012-08-23 Thread Laurens Voerman
Hi James, in c++ code add the macro: #include osgDB/Registry USE_OSGPLUGIN(3ds) link with osgdb_3ds.lib this is also used in the static linked viewer example: OpenSceneGraph\examples\osgstaticviewer Regards, Laurens. On 8/23/2012 12:51 AM, James Cotton wrote: I managed to get OSG