Re: [osg-users] osgDB::readNodeFile fails for IVE files, works in osgviewer

2010-10-15 Thread Ulrich Hertlein
Hi Daniel, On 16/10/10 12:18 , Daniel Barber wrote: > (Ubuntu 10.04), and I am not able to get the program to load my IVE files > that were > generated in Windows. However, the osgviewer program is able to open the > files without > problem, but my program won't. Every time I try using osgDB::

[osg-users] osgDB::readNodeFile fails for IVE files, works in osgviewer

2010-10-15 Thread Daniel Barber
Hi, I am in the process of porting a program using OSG developed in Windows to Linux (Ubuntu 10.04), and I am not able to get the program to load my IVE files that were generated in Windows. However, the osgviewer program is able to open the files without problem, but my program won't. Every

Re: [osg-users] Intersecting volumes and terrain

2010-10-15 Thread Christiansen, Brad
Hi, I haven't done this myself, but I believe the PolytopeIntersector will give you a list of points you are after. You need to define the planes that make up your volume and then use an IntersectionVisitor with the PolytopeIntersector to intersect agains your terrain. From there you can retrie

[osg-users] changing the up direction of the SphericalManiuplator

2010-10-15 Thread Cory Riddell
I have been using the SphericalManipulator and it works really well for my application. One thing I would like to do is change which direction is up. The default is Z == up. Sometimes I want X to be up. If I understand the code, I need to make fairly extensive modif

[osg-users] Intersecting volumes and terrain

2010-10-15 Thread Roman Grigoriev
Hi, I generate terrain using VPB and need to implement intersection lines like on attached picture (green lines that shows intersecton between cone and terrain). Could someone please give me a hint how to make it using osg? Thank you! Cheers, Roman -- Read this topic online her

Re: [osg-users] Stencil buffer and FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT

2010-10-15 Thread Fred Smith
Hi JP, As soon as I attach an image, OSG crashes on me. The problem arises in FrameBufferObject::Pimpl::Pimpl. Code: // This code crashes osg::Texture2D *texture = new osg::Texture2D(); texture->setTextureSize(1024, 1024); texture->setInternalFormat(GL_DEPTH24_ST

Re: [osg-users] Problems about osgOcean

2010-10-15 Thread Jean-Sébastien Guay
Hello Lee, I think fork is more sharp :). Ha, I am sorry for the wrong words. Hehe, it's fine, I didn't mean to make fun of your wording, it was just a funny slip. :-) Actually, I found that the 3rd part lib I download from osg office site is not include the libpng(d).dll file. It might

Re: [osg-users] [osgPlugins] use FFmpeg with Visual C++

2010-10-15 Thread Patrice Defond
Ok I have always problem to compile FFMpeg but it isn't the topic of this forum... I have found the release for Windows (with the link of Norman) and the plugin works perfectly ! Thanks for your help ! Cheers, Patrice -- Read this topic online here: http://forum.openscenegrap

Re: [osg-users] Threading issues with osgText

2010-10-15 Thread Robert Osfield
Hi Björn, If setting the DataVariance to DYNAMIC doesn't fix the crash then it looks likely that the problem is elsewhere. I don't have an answer to what this might be, debugging problems like this is hard when you have the crashing app in front of you, without this it's just a case of educated g

Re: [osg-users] Save texture changes via fragment shader

2010-10-15 Thread J.P. Delport
OK, so we've finally arrived at your problem :) On 15/10/10 14:31, Aitor Ardanza wrote: Yeah, I understand it... but I can't work on a quad, because I need to compare the position of the picking and the vertex in the vertex shader, and depending on the distance between them make a new texture ..

Re: [osg-users] Problems about osgOcean

2010-10-15 Thread Haifeng Li
Hi J-S Thanks for your reply! I think fork is more sharp :). Ha, I am sorry for the wrong words. Actually, I found that the 3rd part lib I download from osg office site is not include the libpng(d).dll file. The libpng.dll I used is complied by the newest version download from libpng office site

Re: [osg-users] Save texture changes via fragment shader

2010-10-15 Thread Aitor Ardanza
Yeah, I understand it... but I can't work on a quad, because I need to compare the position of the picking and the vertex in the vertex shader, and depending on the distance between them make a new texture Doing on a quad, the resulting image would be the next: [Image: http://img836.imagesh

Re: [osg-users] Problems about osgOcean

2010-10-15 Thread Jean-Sébastien Guay
Hello Lee, Hi forks. I prefer to think of myself as a spoon. SPN! Sorry, I had to. :-) 1 When I run it via visual studio, I get information that can not load island.ive. But I have download the oceandata and put it into resources directory just like osgocean wiki told. If you run i

[osg-users] Problems about osgOcean

2010-10-15 Thread Haifeng Li
Hi forks. I saw some pictures in the internet about osgocean and attracted by it's amazing effects. now I want try myself. I have compiled it, but some problems at run time. 1 When I run it via visual studio, I get information that can not load island.ive. But I have download the oceandata and p

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

2010-10-15 Thread Mahendra G.R
Hello Laurens, Thank you, you are correct it worked. Best regards, On Fri, Oct 15, 2010 at 11:23 AM, Laurens Voerman wrote: > 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 effe

Re: [osg-users] Threading issues with osgText

2010-10-15 Thread Björn Blissing
Hi Robert et al, I have already set DYNAMIC data variance to both the osgText::Text and the osg::Geode which holds the text. Crashes anyway. I have tried to replicate the error in a more simple environment than our production software. But no luck with getting crashes with the simple one. :/ T

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:

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

2010-10-15 Thread Mahendra G.R
Hello guys, I'm trying to write and then read back float data from an image but for some reason only the last written data seems correct code: dirImage->allocateImage((int) vertices.size(), (int)vertices.size(), (int)vertices.size(), GL_RGB, GL_FLOAT); for ( unsigned int i = 0; i < vertices.si

Re: [osg-users] texture SubloadCallback and TextureObject generating

2010-10-15 Thread Mikhail I. Izmestev
Hi Thomas, 15.10.2010 0:26, Thomas Hogarth wrote: Hi Robert, Mikhail Mikhail thanks for pointing me to this as a solution to my subload problems. Robert, i'll take a look at the new code, but I assume this can be used to solve my problem of not wanting the object released if the image demensi

Re: [osg-users] Stencil buffer and FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT

2010-10-15 Thread J.P. Delport
Hi Fred, we've also encountered cases (float formats) where we need to call: void setInternalTextureFormat(GLint internalFormat); after allocateImage in the case of using Images to read back data. If you look at allocateImage code, you'll see why. Can you check if this works for you without