Re: [osg-users] osgShadow one shot shadow map

2008-02-13 Thread Wojciech Lewandowski
Hi J-S, This is the part I'm having trouble with. I actually don't mind using the scene bound I get with the ComputeBoundingBoxVisitor, but getting a usable camera frustum (both for main and light cameras) and then intersecting those is the hard part for me. Any tips there? How do you create the

Re: [osg-users] how to read GeoTIFF files using osgdem?

2008-02-13 Thread ümit uzun
Hi Linh, 1. Reply : if you use geotiff image (which meaning georeferenced tiff) you have to use like this command : osgdem -t sample.tif -d sample.tif -l 2 -v 0.08 -o result.ive -a result.osga In this command you can change the -v parameters value between 1.0 = -v = 0.0 I think you would

Re: [osg-users] Stereoscopy in OSG

2008-02-13 Thread Rémy Deslignes
First have a look at the osgViewer 's doc : Environmental Variables: OSG_EYE_SEPARATION float physical distance between eyes OSG_SCREEN_DISTANCE float physical distance between eyes and screen OSG_SCREEN_HEIGHT float physical screen height OSG_SPLIT_STEREO_AUTO_ADJUST_ASPECT_RATIO

Re: [osg-users] traversal question w/latest developer release -blacknodes

2008-02-13 Thread Paul Martz
(Hm, shaders. Maybe someone with more experience with shaders in OSG can read and post an opinion?) Hi Sherman -- Interesting issue. OpenGL is a state machine, and if you're just using raw OpenGL, then you could enable blending, for example, never change blending state again, and blending would

Re: [osg-users] osgShadow one shot shadow map

2008-02-13 Thread Jean-Sébastien Guay
Hello Wojtek, And thats it. Thank you Robert ! Thank you Wojtek, I'll check that out! I'm really very grateful to you for contributing this. I've been banging my head on this and we're still on OSG 2.2 here so I didn't think of going to see in the new additions if there was something that

Re: [osg-users] traversal question w/latest developer release -blacknodes

2008-02-13 Thread sherman wilcox
Is strange. I'm using all OSG code. Is possible I've found some odd OSG bug - but I think is more likely that I'm doing something that's not intended and am experiencing a side effect. I'm going to spend a bit of time and see if I can simplify this problem down to a trivial example. On Feb 13,

Re: [osg-users] Update scene while moving window

2008-02-13 Thread André Garneau
Hi J-W, I'm assuming you are running on the Windows platform right ? If so, this is the expected behaviour and is a consequence of the way Windows processes move resize events. When a move event is processed, Windows will not return control to the message loop until the mouse button has been

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-13 Thread Luigi Calori
René Molenaar wrote: Swig wrappers for OpenSceneGraph Python and Perl These files are part of: The VRmeer Library - Delft University of Technology The files are based on osgswig (http://code.google.com/p/osgswig/) with some additions and CMake files. Thanks for the post, I' ll try them

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-13 Thread René Molenaar
I read this in the swig manual: If you need to cast a pointer or change its value, consider writing some helper functions instead. see: http://www.swig.org/Doc1.3/Python.html %inline %{ /* C++-style cast */ Foo *BarToFoo(Bar *b) { return dynamic_castFoo*(b); } %} You can also create the

[osg-users] Extra workload during first render of a model

2008-02-13 Thread Emilio Lozano
Hi all, In my application I load all the models I need before start to render the scene. These models are loaded from flt files (heavy models with a lot of data). These objects are spread along the scene, I mean, not all of them are watched at the same time. When I move the camera around, the

Re: [osg-users] Update scene while moving window

2008-02-13 Thread Jean-Sébastien Guay
Hello André, There might be a way to avoid this by using a separate thread for message dispatching in the GraphicsWindowWin32 class, but that remains to be explored. And in fact, I imagine that's what video players like Windows Media Player do, since you can move the window while video is

Re: [osg-users] Extra workload during first render of a model

2008-02-13 Thread Paul Martz
If you are using osgViewer, it should run the GLObjectsVisitor for you, which should create all the OpenGL objects your entire scene graph requires. You can set a breakpoint in the GLObjectsVisitor to ensure this is happening. If the GLObjectsVisitor is being run and appears to be doing its job,

[osg-users] PrimitiveSet constructors, const correctness issue

2008-02-13 Thread Paul Martz
I just noticed the following PrimitiveSet constructor... DrawElementsUInt(GLenum mode,unsigned int no,GLuint* ptr) : The first parameter is the primitive type, the second is the number of element indices, and the third is a pointer to an array of indices. Shouldn't the third parameter be

Re: [osg-users] how to read GeoTIFF files using osgdem?

2008-02-13 Thread Linh Phan
Hi Umit, ümit uzun wrote: Hi Linh, 1. Reply : if you use geotiff image (which meaning georeferenced tiff) you have to use like this command : osgdem -t sample.tif -d sample.tif -l 2 -v 0.08 -o result.ive -a result.osga I thought the GeoTIFF would have the scaling info embeded in it since

Re: [osg-users] how to read GeoTIFF files using osgdem?

2008-02-13 Thread ümit uzun
Hi Linh, First of all I am a newbie like you :) If I give you wrong information, forgive me! ÜMİT UZUN Date: Wed, 13 Feb 2008 14:30:51 -0800 From: [EMAIL PROTECTED] To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] how to read GeoTIFF files

Re: [osg-users] how to read GeoTIFF files using osgdem?

2008-02-13 Thread Linh Phan
Hi Umit, Do you know if osgdem actually look at any of the .prj, .aux, .rrd at all or is it only looking at the .tif file? Also, do you know if we have two GeoTIFFs of one big patch (but low resolution) and one smaller patch (but high res) of the same area, we can use osgdem to generate an

[osg-users] another one - osg and C#

2008-02-13 Thread sherman wilcox
I've read a few posts and I'm a bit fuzzy on the subject. I have an OSG app wrapped up in a C++ library. Now I need a UI. I can attach this and drive this libarary from a console app, MFC GUI, or even the standard Windows API, etc. - All in C++. However, I'm considering using C#. I've heard lots

[osg-users] Tiled textures on osg::Box

2008-02-13 Thread Frans Fürst
Hi everyone, I'm afraid I have a very simple question, but I didn't find answer in the examples or tutorials. Perhaps you can give me a small hint.. I want to add texture to an new osg::Box, and I want to have it repeated. So I tried: m_osg_shape = new osg::ShapeDrawable( new