Re: [osg-users] RTT into a single color channel

2011-07-18 Thread J.P. Delport
Hi, I can't follow what you expect and what is working/not? If you are using 2DRect remember that texture coords are not between 0 and 1, so it does not make sense to directly put them into colours then. jp On 15/07/2011 20:31, Bolstad, Mark wrote: So I've done some testing. I've decided

Re: [osg-users] stencil buffer and CSG Boolean operations

2011-07-18 Thread Craig Fletcher
Hi Thanks alot for your comments Sergey and Chris. I have tried to implement the algorithm, code and comments below but it doesn't work as I had hoped. What I expected to see is the back wall of a cylinder (which intersects a box). What I actually see is the whole back wall of a cylinder

Re: [osg-users] osgGA modifications for IPhone and other

2011-07-18 Thread William Hutama
Hi Stephan, I just tried your modification on my iPhone (3gs) and also on iPad. The rendering looks ok when I change the orientation to landscape. However, the touch input space does not seem to be correct, there are some offsets between the location that I actually touch and the location in the

Re: [osg-users] RTT into a single color channel

2011-07-18 Thread Sergey Polischuk
Hi, Mark Afaik osgdistortion uses 2d textures not rect textures. Cheers, Sergey. 18.07.2011, 11:42, J.P. Delport jpdelp...@csir.co.za: Hi, I can't follow what you expect and what is working/not? If you are using 2DRect remember that texture coords are not between 0 and 1, so it does not

Re: [osg-users] OSG based WebKit plugin - Mac OSX - Crash

2011-07-18 Thread Gino
Hi Robert! Thank you for your prompt replay, and sorry for my late one. I upgraded to OSG 3.0 and now everything seems to be ok. :) G. Il giorno 19.giu.2011, alle ore 18:59, Robert Osfield ha scritto: Hi Gino, What form is your colour data? A Vec3Array? A Vec4Array? A Vec4ubArary?

Re: [osg-users] [build] problem compiling osg 3.0.0 for Android

2011-07-18 Thread Rubén Díaz
Hi again, Have fun with Osg and Android. Thanks, I'll do my best :P I've been checking out the android examples, both osgAndroidExampleGLES1 and osgAndroidExampleGLES2. No problem with osgAndroidExampleGLES1 :) But when it comes to do the same thing with osgAndroidExampleGLES2, I am not

Re: [osg-users] [build] problem compiling osg 3.0.0 for Android

2011-07-18 Thread Jorge Izquierdo Ciges
Yes, you have to build two versions of OSG one with Gles1 and one with Gles2. According the Ndk google group it's not good to mix them up. If you used the cmake chain that was on the wiki I think it was for Gles1 ... if not I don't know. But as I was saying you need one for each one. Although

[osg-users] AutoTransform and multiple views

2011-07-18 Thread David Cofer
Hi, I am using the Drag handlers with an autotransform on them (see code below). I have it set to AutoscaleToScreen. This works great as long as I only have 1 view of the scene. When I have multiple views though, I get a problem where zooming in on one will cause the autotransform to change

[osg-users] Unit of preMult-(osg::Matrix::Translate(osg::Vec3(x, y, z)

2011-07-18 Thread Nagore Barrena
Hi, I'm rendering new 3d models using OSG. In translate fuction (preMult-(osg::Matrix::translate(osg::Vec3(x,y,z)) What unit are x, y and z? There are metres, milimetres, pixels? Thanks in advance! Cheers, Nagore -- Read this topic online here:

Re: [osg-users] AutoTransform and multiple views

2011-07-18 Thread J.P. Delport
Hi, On 18/07/2011 13:19, David Cofer wrote: Hi, I am using the Drag handlers with an autotransform on them (see code below). I have it set to AutoscaleToScreen. This works great as long as I only have 1 view of the scene. When I have multiple views though, I get a problem where zooming in on

Re: [osg-users] RTT into a single color channel

2011-07-18 Thread Bolstad, Mark
Switching the shader to use *2D instead of *2DRect fixed it. Thanks! Mark Mark A. Bolstad Scientific Computing Janelia Farm Research Campus Howard Hughes Medical Institute 19700 Helix Drive, Ashburn, VA 20147 email: bolst...@janelia.hhmi.org office: +1.571.209.4623 web:

Re: [osg-users] [osgPlugins] VRML plugin - file url

2011-07-18 Thread Jan Ciger
Hi Michael, On 07/10/2011 03:48 PM, Michael Chechow wrote: Hi, .. I removed all of these lines except the last line: Code: fileName = unixFileName; After recompiling the VRML plugin, it could load the VRML file from whichever location I specified. I use OSG on Mac OS X 10.6.8, which

Re: [osg-users] [osgPlugins] VRML plugin - file url

2011-07-18 Thread Michael Chechow
Hi Jan, I tried both relative and absolute file paths. The VRML file, which I try to load, is located at /Developer/workspace/osgtest/model.wrl . I reverted my changes of the VRML plugin and added the following line for debugging purposes: osg::notify(osg::INFO) fileName= fileName.c_str()

[osg-users] viewer focus event

2011-07-18 Thread David Cofer
Hi, Is there a viewer window focus event? I have been looking through the GUIEventAdapter and I do not see anything that would signal when a window gets the focus? Is it possible to get this info in OSG? Thank you! Cheers, David -- Read this topic online here:

[osg-users] building for xcode on os x

2011-07-18 Thread Brian Rojas
I'm getting the following errors when trying to build osg for xcode on mac os x. Does anyone have any idea what's going on and how to fix. I'm a newbie and following instructions for osg book and this is what i got: osgdb_jp2

[osg-users] Write the Android example exclusively in C++

2011-07-18 Thread Wang Rui
Hi all, It's exciting to see the Android support is added in the OSG trunk, as well as two examples showing the integrations with ES1 and ES2. Unfortunately they are both written with Java and hard to be compiled along with other libraries and examples. It will be much better if we could have a

Re: [osg-users] [osgPlugins] VRML plugin - file url

2011-07-18 Thread Mathias Fröhlich
Hi, On Monday 18 July 2011, Michael Chechow wrote: [...] Both the absolute and relative file path works. I observed something similar here. For my local hacky use, I have just removed the 'file://' too. I have put invesigating why this is required for my environment onto the todo list, where