[osg-users] glow

2010-02-11 Thread Trajce Nikolov
Hi Community, has anyone experimented with glow effect? I have spent some time with research and I found only implementation as image post processing that requires having your scene rendered into a frame buffer. I dont like this way though, so I am looking for some alternative. Please let me

[osg-users] PagedLod : how to change priority for some nodes

2010-02-11 Thread Vincent Bourdier
Hi all, Maybe my last question about PagedLod... I hope ;-) Starting my application, databasePager start to load thousand of PagedLod in my scene. In this list, I would like to make some PagedLods nodes being loaded before the rest of the scene. (because thousands of node take sometimes

Re: [osg-users] 2D rendering priority...

2010-02-11 Thread Christiansen, Brad
Hi, We used this approach for rendering a 2D scene using the painters algorithm (i.e. render back to front according to our own order definition). I have included the most relevent code snippets. No comments on their quality please ; ). 1) Added a 'user data' object (which contains the

Re: [osg-users] PagedLod : how to change priority for some nodes

2010-02-11 Thread Robert Osfield
Hi Vincent, PagedLOD has a prority offset and scale per child that allows you to modify the priority computed from the distance range. The PagedLOD methods of interest are: void setPriorityOffset(unsigned int childNo, float priorityOffset) { expandPerRangeDataTo(childNo);

Re: [osg-users] Transparent window

2010-02-11 Thread Serge Lages
Thank you very much Farshid, I'll try it as soon as I can, but it looks definitely cool ! :) On Thu, Feb 11, 2010 at 8:30 AM, Torben Dannhauer z...@saguaro-fight-club.de wrote: Hi, That looks cool! Where do I call the DwmEnableBlurBehindWindow function? Is this in OSg or just a c++

[osg-users] atomic pointer swap

2010-02-11 Thread Torben Dannhauer
Hi, does OpenThreads provide an atomic, threadsafe and platform independent swap of two pointers? Thank you! Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23994#23994 ___

[osg-users] How to thange color of static Geometry using Switch and StateSet?

2010-02-11 Thread Andrius Kausinis
Hi, i am OSG newbie. and i'm working with Java project which uses JavaOSG binding by NoodleGlue. about the problem: 1. I have static Geode with one drawable (geometry to draw Icosahedron). These geodes represents some specific points (lets name it diamonds) in scene (may be more than 100).

Re: [osg-users] clear and switch buffers

2010-02-11 Thread Gottfried Gross
Hi JP, thx for the quick response. Yes, there is a ClearNode, but I'm not sure, if it makes much sense using it, because I think I will need a camera anyway to specify which colorbuffer exactly I want to clear. As far as I know I can only call setDrawBuffer() on a camera object, or is there

[osg-users] Fixed model on scene

2010-02-11 Thread Tufan Taş
Hi, I want to add a model as a fixed image on scene and stay on scene while I translate the scene. I use the following code but the model does not seen. ref_ptrNode myNode(readNodeFile(model.3ds)); ref_ptrStateSet stateSet = myNode-getOrCreateStateSet();

[osg-users] Geotiff rendering?

2010-02-11 Thread Akilan Thangamani
Hi, Suppose when we add ive tiles to a group and render the group, all the tiles are placed at corresponding places according to their lat and lon. But when I m trying to do the same using just tif files it s not happening so. Instead, multiple tif tiles are overlaid one over other. Anyway tif

Re: [osg-users] glow

2010-02-11 Thread Rafa Gaitan
Hi Trajce, I always use this kind of glow. Glow tipically is a post process effect, but If you find another way tell me! :). I have implemented some filtering system with shaders based on OSG so you can concantenate some filters (gaussian, radial, etc) to the final image. If you want I could

Re: [osg-users] clear and switch buffers

2010-02-11 Thread J.P. Delport
Hi, Gottfried Gross wrote: Hi JP, thx for the quick response. Yes, there is a ClearNode, but I'm not sure, if it makes much sense using it, because I think I will need a camera anyway to specify which colorbuffer exactly I want to clear. As far as I know I can only call setDrawBuffer() on a

Re: [osg-users] Geotiff rendering?

2010-02-11 Thread J.P. Delport
Hi, if the tiffs don't have geo info embedded you will need to add it. See gdaltranslate command... gdal_translate -of GTiff -a_srs +proj=latlong +datum=WGS84 -a_ullr ... jp Akilan Thangamani wrote: Hi, Suppose when we add ive tiles to a group and render the group, all the tiles are

Re: [osg-users] Geotiff rendering?

2010-02-11 Thread J.P. Delport
also... J.P. Delport wrote: Hi, if the tiffs don't have geo info embedded you will need to add it. See gdaltranslate command... gdal_translate -of GTiff -a_srs +proj=latlong +datum=WGS84 -a_ullr ... you cannot just read the tiffs directly then, you'll need to push them through vpb or

Re: [osg-users] glow

2010-02-11 Thread Trajce Nikolov
Hi Rafa, I have some post processing code I put together from the online resources. But interested in what you have done. Thanks -Nick On Thu, Feb 11, 2010 at 3:08 PM, Rafa Gaitan rafa.gai...@gmail.com wrote: Hi Trajce, I always use this kind of glow. Glow tipically is a post process

Re: [osg-users] glow

2010-02-11 Thread J.P. Delport
Hi, there is also a glow example in osgPPU. jp Trajce Nikolov wrote: Hi Rafa, I have some post processing code I put together from the online resources. But interested in what you have done. Thanks -Nick On Thu, Feb 11, 2010 at 3:08 PM, Rafa Gaitan rafa.gai...@gmail.com

Re: [osg-users] glow

2010-02-11 Thread Trajce Nikolov
Thanks JP -Nick On Thu, Feb 11, 2010 at 3:33 PM, J.P. Delport jpdelp...@csir.co.za wrote: Hi, there is also a glow example in osgPPU. jp Trajce Nikolov wrote: Hi Rafa, I have some post processing code I put together from the online resources. But interested in what you have done.

Re: [osg-users] PagedLod : how to change priority for some nodes

2010-02-11 Thread Vincent Bourdier
@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org __ Information from ESET NOD32 Antivirus, version of virus signature database 4857 (20100211) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

Re: [osg-users] clear and switch buffers

2010-02-11 Thread Gottfried Gross
Hi JP, what I meant is, that I need to call glDrawBuffer (or setDrawBuffer in OSG) to select the buffer that I want to clear. Sorry, that I did not make it clear. The following OpenGL code example shows what I want to realize in OSG: Code: //for each frame do id = id mod 2; // Id is switched

Re: [osg-users] How to thange color of static Geometry using Switch and StateSet?

2010-02-11 Thread Paul Martz
With the situation you describe, in which the Geometry is shared, the best way to change color would be with a unique BlendColor on the MatrixTransform's StateSet. You'll need to enable blending for this, and set the blend function to reference the blend color and zero the dest color, like

Re: [osg-users] 2D rendering priority...

2010-02-11 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Brad, I'll look over your implementation. Thanks for sharing this...:) -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christiansen, Brad Sent: Thursday, February 11, 2010 2:35 AM To:

[osg-users] Problem with rotations using PositionAttitudeTransform

2010-02-11 Thread Manuel Garea
Hi, I'm trying to make some rotation of objects, but the results are not the desired I want to draw the coordinate axis. The following function draw an axis with the given rotation: Code: osg::PositionAttitudeTransform* createAxis(osg::Vec4f color, osg::Quat rotation){

Re: [osg-users] Problem with rotations using PositionAttitudeTransform

2010-02-11 Thread Vincent Bourdier
/listinfo.cgi/osg-users-openscenegraph.org __ Information from ESET NOD32 Antivirus, version of virus signature database 4858 (20100211) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ osg-users mailing list

Re: [osg-users] osgDB::writeImageFile() jpg vs png

2010-02-11 Thread Don Leich
Hi Jim, I've been bit by this one. It seems that osgDB::writeImageFile does not correctly support images with pixelFormat = GL_RGBA for JPEG files. I think you'll find that changing to GL_RGB will get you a good file. -Don Leich Trying to save an osg::Image as a .jpg file malfunctions.

Re: [osg-users] osgDB::writeImageFile() jpg vs png

2010-02-11 Thread Robert Osfield
On Thu, Feb 11, 2010 at 5:12 PM, Don Leich d...@ilight.com wrote: Hi Jim, I've been bit by this one.  It seems that osgDB::writeImageFile does not correctly support images with pixelFormat = GL_RGBA for JPEG files. I think you'll find that changing to GL_RGB will get you a good file.

Re: [osg-users] osgDB::writeImageFile() jpg vs png

2010-02-11 Thread Chris 'Xenon' Hanson
On 2/11/2010 10:12 AM, Don Leich wrote: Hi Jim, I've been bit by this one. It seems that osgDB::writeImageFile does not correctly support images with pixelFormat = GL_RGBA for JPEG files. I think you'll find that changing to GL_RGB will get you a good file. It might be good to put a

Re: [osg-users] Build Osg with 64Bit (dependency)

2010-02-11 Thread Anders Backman
it has been Collada that has caused most of my grief. Iconv seems to be one of the most introvert gcc projects on this planet. I was happy for a while when I found this: http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/ But it turned out, that it does not link with VisualStudio.

[osg-users] osgDB::serializer and alignment (pack(n))

2010-02-11 Thread Torben Dannhauer
Hi, I#m thinking about usind the osg serializer to serialize a transportcontainer, transfere it over a network and de-serialize it on the other node. Could osgDB::serializer be fast enough to do that every frame, or is it not fast enough caused by it's architecture? My second question is:

Re: [osg-users] Build Osg with 64Bit (dependency)

2010-02-11 Thread Mourad Boufarguine
Thanks for the hints. I confirm, it is quite easy to build freetype. The distribution comes with visual 2008 project file, you need just to add x64 config and build ! Mourad On Thu, Feb 11, 2010 at 8:13 PM, Anders Backman ande...@cs.umu.se wrote: it has been Collada that has caused most of my

Re: [osg-users] [ANN] OSG Virtual Planets, the core of gvSIG3D.

2010-02-11 Thread Allen Saucier
Hi Rafa Ok, setting the JAVA_HOME env variable did help. What must JAVA_INCLUDE_PATH and JAVA_INCLUDE_PATH2 be set to? I do have a jdk installed on ubuntu and the consistent errors I keep getting are with the JAVA_HOME and JAVA_INCLUDE variables. Setting the JAVA_HOME environment variable

Re: [osg-users] How to change color of static Geometry using Switch and StateSet?

2010-02-11 Thread Andrius Kausinis
Hi, Static means that Geode object is constant (static final in Java) and Data variance of this object is set to STATIC. Thank you! Cheers, Andrius -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24042#24042

Re: [osg-users] [ANN] OSG Virtual Planets, the core of gvSIG3D.

2010-02-11 Thread Allen Saucier
Rafa, My latest attempt synopsis: 1. set the Java home variable 2. set the java include path variable 3. set the java include path2 variable and then I re-ran mvn clean mvn install -Dmaven.test.skip I still had a crash. maven would not work. THen I decided to run maven as root: sudo mvn

Re: [osg-users] [ANN] OSG Virtual Planets, the core of gvSIG3D.

2010-02-11 Thread Allen Saucier
Ok, well, I keep getting the same errors from maven or cmake and I really don't understand what is wrong. No matter what I do, the JAVA_INCLUDE_PATH and JAVA_INCLUDE_PATH2 are not recognized as being set but they are. I have included my output from maven and I really do not understand it.

Re: [osg-users] How to change color of static Geometry using Switch and StateSet?

2010-02-11 Thread Paul Martz
Andrius Kausinis wrote: Hi, Static means that Geode object is constant (static final in Java) and Data variance of this object is set to STATIC. Then I misunderstood your original post. So are you saying that the problem you are trying to solve is this: How to change the color of a

Re: [osg-users] Problem with rotations using PositionAttitudeTransform

2010-02-11 Thread Manuel Garea
Thank you very much Vincent! That was my error, I was calling to the osg::Quad constructor with a wrong order in the params Cheers, Manuel -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24049#24049

[osg-users] Stereo with pre-split images streams

2010-02-11 Thread Bruce Wheaton
I'm about to drop OSG into an app and I'm looking at how to do various things. The built-in stereo support is great, but I'm not sure how to do something that's easy in my current code - handle pre-split images. I have to take a variety of images, mainly in streams, and handle them

Re: [osg-users] node names not preserved going from flt to ive/osg

2010-02-11 Thread Ted Morris
Hey all Yep -- setting OSG_OPTIMIZER to off and preserveFace and preserveObject options did the trick. thanks all! Ted -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24054#24054 ___ osg-users