Re: [osg-users] Setting up window with GraphicsWindowWin32

2009-07-23 Thread Vic Ace
Haha yes that was it. :-* Oh and one thing, the program is still not responsive. The background in the window that opens is plain white and in the task manager it sais "not responding". I'm guessing this could have something to do with event handling, no? -- Read this topic o

Re: [osg-users] osgOcean: Change of contact details

2009-07-23 Thread Kim Bale
Hi Pierre, Yes I've known about this for a while, in fact even before 2.3 the FFT support was supposed to be pretty good. It's definitely something I intend to chase up. Unfortunately at the moment I'm trying to polish off the end of my thesis and don't have much time for fun things, which is why

Re: [osg-users] Terrain by Heightmap

2009-07-23 Thread Markus Husseini
Thanks a lot again for the answers. @Kim Bale: Your solution voice good. But i dont understand how i can get the pixel height infomation from an image obeject. Can You give me a example code, it would be very helpfull. If i have the Pixelinformation i can write my own Terrainclass too. @Pierr

Re: [osg-users] Billboard blinking

2009-07-23 Thread Adrien Joly
Hi, I used the MatrixTransform to work like an AutoTransform. I already knew the code of AutoTransform and transformed this class. Anyway, thank you for your answer ! Cheers, Adrien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15274#15274

Re: [osg-users] maya plugin, anyone interested?

2009-07-23 Thread Jordi Torres
Hi Rabbi, I tested rbReader with success in Mac osX. I'll try to get time to test exporter today with my own maya files. Good job! Cheers, Jordi. 2009/7/22 Jordi Torres > Hi Rabbi, > Good news! I will give it a try this afternoon. > > Cheers, > Jordi > > 2009/7/21 Rabbi Robinson > > Hi, >> >>

Re: [osg-users] Terrain by Heightmap

2009-07-23 Thread Kim Bale
osg::Image* img = osgDB::readImageFile("name"); unsigned char pixel = img->data( x, y ); But as Pierre says, OSG offers a lot of support for rendering Height field data out of the box. It's worth digging around before reinventing the wheel as OSG has usually got there first. Regards, Kim. 200

Re: [osg-users] osgOcean: Change of contact details

2009-07-23 Thread Pierre Bourdin (gmail)
Le jeudi 23 juillet 2009 à 09:03 +0100, Kim Bale a écrit : > Hi Pierre, Hi Kim, > > > Yes I've known about this for a while, in fact even before 2.3 the FFT > support was supposed to be pretty good. It's definitely something I > intend to chase up. > I had seen it was good already, but because

Re: [osg-users] Computer Vision and osg

2009-07-23 Thread Joe Kilner
Well, it's nice to know I'm not the only one doing this. If I come up with anything useful I'll be sure to share it! Joe -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15279#15279 ___ osg-users mail

Re: [osg-users] Camera Move example

2009-07-23 Thread Danny Lesnik
Hi, Thank you so much you solved my problem. Thank you! Cheers, Danny -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15280#15280 ___ osg-users mailing list osg-users@lists.openscenegraph.org htt

[osg-users] object blinking why moving camera

2009-07-23 Thread Danny Lesnik
Hi, I'm able now to move my camera left and right as the keyboard event. waht i'm doing is taking current camera matrix by camera->getViewMatrix(); Then multiply this matrix with transaction matrix having X(0,4) = 1 for moving right and -1 ny moving left. any setting new camera location mat

Re: [osg-users] osgViewer in stereo mode

2009-07-23 Thread Eric Pouliquen
Sorry, but is my question very silly ? I'm sorry if it's a very newbie question... but I tried accessing the cameras during hours and didn't reach any result... :( Thanks a lot if someone can help me on this stupid problem. -- Read this topic online here: http://forum.opensceneg

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 buil

Re: [osg-users] Getting Texture coordinates

2009-07-23 Thread Jordi Torres
Hi Brett, Normalize your particular position between 0 and 1 values. Take a look to OpenGL red book, or google for OpenGL texture coordinates. Hope this helps . Cheers, Jordi. 2009/7/17 Brett Thomas Lee > Hi, > > I want to get Texture coordinates at a specific position.Is there any > function

Re: [osg-users] osgViewer in stereo mode

2009-07-23 Thread Mathias Buhr
Hi Eric, as far as I know there is no direct access to these cameras. Usually you don't have to implement stereo by yourself. You can just pass a few arguments to osgviewer to enable stereo. After all I have to admit that I'm not familiar with osgPPU but you can take a look at osgUtil::SceneView

Re: [osg-users] osgViewer in stereo mode

2009-07-23 Thread Pierre Bourdin (gmail)
Hi Eric, Le jeudi 23 juillet 2009 à 09:55 +, Eric Pouliquen a écrit : > Sorry, but is my question very silly ? I don't think it is, but people are probably busy... > I'm sorry if it's a very newbie question... but I tried accessing the cameras > during hours and didn't reach any result... :

[osg-users] procedural texture

2009-07-23 Thread Yafes
Hi @ all, at the moment we are learning shading in school, i would like to ask, if there are any information about "procedural texturing". thank you -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=11767#11767 ___

Re: [osg-users] Terrain by Heightmap

2009-07-23 Thread Markus Husseini
Hi, i did this Code: osg::Image* img = osgDB::readImageFile("test.tga"); osg::ref_ptr heightmap = new osg::HeightField; for(int z=0; z<256; z++) { for(int x=0; x<256; x++) { heightmap->setHeight( x, z, img->data( x,z ) ); } }

Re: [osg-users] procedural texture

2009-07-23 Thread Tomlinson, Gordon
http://www.google.com/search?q=procedural+texturing http://en.wikipedia.org/wiki/Procedural_texture Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com

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

2009-07-23 Thread Paul Melis
Laurens Voerman wrote: 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

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

2009-07-23 Thread Paul Melis
Jean-Sébastien Guay wrote: Hi Paul, Right, that is what I originally suspected. So is there any point to the debug packages *in their current form*? Yes, they allow you to compile your own project in debug mode. They don't allow you to debug into the OSG itself, but otherwise they're requi

Re: [osg-users] Collision Response

2009-07-23 Thread Brian R Hill
Brett, That's a huge and complex topic that's not directly related to OSG. Google collision detection and response. Brian This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of

Re: [osg-users] Setting up window with GraphicsWindowWin32

2009-07-23 Thread Jean-Sébastien Guay
Hi Vic, Oh and one thing, the program is still not responsive. The background in the window that opens is plain white and in the task manager it sais "not responding". I'm guessing this could have something to do with event handling, no? Hard to say without seeing code. I suggest you start w

Re: [osg-users] Terrain by Heightmap

2009-07-23 Thread Kim Bale
Hi Markus, Take a look at the documentation online: http://blogninja.com/doc/openscenegraph-doc/openscenegraph/classosg_1_1HeightField.html Should answer your questions. OSG function names are in general pret

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

2009-07-23 Thread Jean-Sébastien Guay
Hi Paul, Yes, they allow you to compile your own project in debug mode. They don't allow you to debug into the OSG itself, but otherwise they're required to get your own apps to compile and run in debug mode at all. Don't you just ha^H^H love windows... Well, to be fair, that's not Windows's

Re: [osg-users] Collision Response

2009-07-23 Thread Jean-Sébastien Guay
Hi Brett, I found intersection of a line segment with a triangle mesh using intersection visitor in osg.But I dont want the line segment to penetrate into the triangle mesh.Can someone help me in doing this using osg please. OSG is not a collision detection library, it's a graphics library.

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

2009-07-23 Thread Jean-Sébastien Guay
Hi all, I would recommend that Jose Luis simply install CDash somewhere on openscenegraph.org if possible. The install is fairly simple for a PHP/MySQL webapp and I would be happy to lend assistance with setup or ongoing maintenance if needed. Yes, I'll see with

Re: [osg-users] Collision Response

2009-07-23 Thread Vincent Bourdier
Hi, Using the intersector nodepath, normal and intersection point, you can compute the reaction to a collision. Vincent. 2009/7/23 Jean-Sébastien Guay > Hi Brett, > > I found intersection of a line segment with a triangle mesh using >> intersection visitor in osg.But I dont want the line seg

[osg-users] CDash site now under openscenegraph.org

2009-07-23 Thread Jean-Sébastien Guay
Hi all, Some of you may have noticed that nightly builds have not been showing up on the public CDash dashboard recently. http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph That's because the public CDash build dashboard has a build limit which we exceeded recently. See this t

Re: [osg-users] CDash site now under openscenegraph.org

2009-07-23 Thread Pierre Bourdin (gmail)
Well done J-S and J-L ! I'll try it... It would be nice to have many different build tests when Robert will come back ;-) Cheers, Pierre. Le jeudi 23 juillet 2009 à 09:38 -0400, Jean-Sébastien Guay a écrit : > Hi all, > > Some of you may have noticed that nightly builds have not been showing

[osg-users] Proximity trigger ?

2009-07-23 Thread Pierre Bourdin (gmail)
Hi all, is there something that looks like a proximity trigger in OpenSceneGraph ? I mean, something that can start an action when the user (the camera) goes close or in contact with some particular object ? I know it exists in Delta3D but I don't remember having seen it in OSG... Regards, Pi

Re: [osg-users] Proximity trigger ?

2009-07-23 Thread Vincent Bourdier
Hi, You can use the nodecallbacks to code the one you need. (with the manipulator or the camera you get the camera position each frame) I did it lot of times. Regards, Vincent. 2009/7/23 Pierre Bourdin (gmail) > Hi all, > > is there something that looks like a proximity trigger in > OpenSce

[osg-users] [3rdparty] OSGOcean reflection is not mirrored

2009-07-23 Thread Martin Scheffler
Hi, seems like the reflection in osgOcean is not mirrored correctly. When I have letters reflecting in the water, they are from right to left (mirrored vertically) but they should be from bottom to top (mirrored horizontally)! Cheers, Martin -- Read this topic online here: htt

[osg-users] Download Not Working

2009-07-23 Thread Jonathan George
Anyone else having trouble downloading files from openscenegraph.org? I seem to get cut off after about 100kb. Is there a mirror or ftp site? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15305#15305

Re: [osg-users] [3rdparty] OSGOcean reflection is not mirrored

2009-07-23 Thread Kim Bale
Hi Martin, I've not come across this problem before. Could you post a screenshot? Also how is the camera position being set, are you using a manipulator? Regards, Kim. 2009/7/23 Martin Scheffler > Hi, > > seems like the reflection in osgOcean is not mirrored correctly. > When I have letters r

Re: [osg-users] Setting up window with GraphicsWindowWin32

2009-07-23 Thread Vic Ace
I'll do that. Thanks for your help! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15310#15310 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cg

Re: [osg-users] [3rdparty] OSGOcean reflection is not mirrored

2009-07-23 Thread Martin Scheffler
OK, never mind, everything is fine. The ship model I am working with is open on the bottom side, so I could peek under the hull and the inner side of the hull was reflected. That reminds me, is there a way to set the height of the ocean? By default it seems to be at z = 0, is there a way for me

Re: [osg-users] [3rdparty] OSGOcean reflection is not mirrored

2009-07-23 Thread Jean-Sébastien Guay
Hi Martin, That reminds me, is there a way to set the height of the ocean? Not yet, but I'll be needing that soon too, it was on my ToDo list. You can always implement it and submit it here, if you get to it before I do... :-) Theoretically it should just amount to inserting a transform be

Re: [osg-users] [osg-submissions] CDash site now under openscenegraph.org

2009-07-23 Thread Philip Lowman
On Thu, Jul 23, 2009 at 9:38 AM, Jean-Sébastien Guay < jean-sebastien.g...@cm-labs.com> wrote: > > So, let's start submitting builds again people! :-) Thanks to you and Jose for setting this up. -- Philip Lowman ___ osg-users mailing list osg-users@l

Re: [osg-users] Runtime texture mod

2009-07-23 Thread Brad Huber
Thanks Ulrich and Jason, Originally I was thinking of something that would load a texture and modify everything with a certain hue (eg everything with a given hue is set to a different hue at runtime). Sounds like there aren't any existing tools for something like that (though it wouldn't be t

Re: [osg-users] Runtime texture mod

2009-07-23 Thread Jason Daly
Brad Huber wrote: Thanks Ulrich and Jason, Originally I was thinking of something that would load a texture and modify everything with a certain hue (eg everything with a given hue is set to a different hue at runtime). Sounds like there aren't any existing tools for something like that (tho

Re: [osg-users] [3rdparty] OSGOcean reflection is not mirrored

2009-07-23 Thread Kim Bale
Martin, J-S, I haven't tried applying any transformations to the ocean surface yet, but I foresee some problems there. The mipmapping detail tests in FFTOceanSurface are pretty hard coded and don't take into account any transformations from it's parents. This I realise is a flaw in the design. A

Re: [osg-users] Transformations

2009-07-23 Thread Pau Moreno
Hi, It was the loading of the rotation Matrix, the Y-up Rotation just rotates 90 degrees on the wrong axis, but the animation was still working OK :) Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15319#15319

Re: [osg-users] [3rdparty] OSGOcean reflection is not mirrored

2009-07-23 Thread Jean-Sébastien Guay
Hi Kim, Adding in a transform between OceanScene and OceanTechnique would be ok, aslong as it's just a translation on the z axis. Any other transformations (scaling x/y trans, rotations) would cause problems with the mipmap level calculations and the tracking of the sea relative to the camera po

Re: [osg-users] Best way to draw a volume

2009-07-23 Thread Evan O'Toole
Hi, I figured out that I need to set the normal array and bind it to each primitive set. Can anyone tell me why I cannot get the opacity of the volume (Geometry) that I've drawn to change? Here's how I set the color: //Se

Re: [osg-users] Best way to draw a volume

2009-07-23 Thread Jason Daly
Evan O'Toole wrote: No matter what value I enter for opacityPercentage, from zero to 100, the volume ends up looking the same. I forgot to mention in my previous post that I'm running osg version 2.6.0. Hi, Evan, You're halfway there. You also need to enable blending: osg::StateSet *

Re: [osg-users] Best way to draw a volume

2009-07-23 Thread Evan O'Toole
Jason Daly wrote: > > > You're halfway there. You also need to enable blending: > > osg::StateSet *stateSet = geometry->getOrCreateStateSet(); > stateSet->setMode(GL_BLEND, osg::StateAttribute::ON); Thanks, J! This really helps out! Jason Daly wrote: > > > You also will probably want t

Re: [osg-users] Collision Response

2009-07-23 Thread Vincent Bourdier
Hi, The Intersector return a osgUtil::LineSegmentIntersector::Intersections. For each intersection, you have a nodePath, an intersection point ( getWorldIntersectPoint() ) and a normal ( getWorldIntersectNormal() ). Now, if you know the vector of the object movement, and the normal of the inters