Re: [osg-users] Multitexturing and Disabling light

2011-09-13 Thread Guillaume Stuber
Hi Sergey, Thanks a lot, it works ! I have just added a white material on my object on the second pass otherwise it take the primary color for the lighting. Cheers, Guillaume -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42666#42666 ___

Re: [osg-users] osgVolume volume size limitation

2011-09-13 Thread Robert Osfield
Hi Clement, I can't really make much sense from your post so can't make any specific suggestions. General comments I would add are that different graphics hardware supports different Texture3D resolution, you have to keep within this to be able doing volume rendering. Also if you don't set up th

Re: [osg-users] Problems with computeIntersections

2011-09-13 Thread Hartmut Leister
Thanks Chris, inverting the y-coordinate did the trick! Picking is now super easy and correct. And I suppose you're right with the twice listed objects. Thanks again Hartmut Here's the new Code for anyone with the same problem: void ViewerQT::mouseReleaseEvent( QMouseEvent* event ) { // de

[osg-users] [build] Problem with building OSG for Android GLES2.0

2011-09-13 Thread Marc Sticksen
Hi, I´m trying to build OSG for Android with GLES2.0. My cmake line looks like this: Code: cmake .. -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=ON -DOSG_GL_VERTEX_FUNCS_AVAILABLE=ON -D

Re: [osg-users] osgAndroidExampleGLES1 and 2 error on Android 3.x device

2011-09-13 Thread Marc Sticksen
Jorge Izquierdo Ciges wrote: > Neon extensions maybe don't make so much acceleration with devices but v7 > makes some improvements depending the device. If you change the Android.mk in > the example and in the OSG build and quit the Neon part of the script (just > comment the LOCAL_ARM_NEON:=tr

Re: [osg-users] [build] Problem with building OSG for Android GLES2.0

2011-09-13 Thread Mourad Boufarguine
On Mon, Sep 12, 2011 at 11:51 AM, Marc Sticksen wrote: > Hi, > > I´m trying to build OSG for Android with GLES2.0. > > My cmake line looks like this: > > > Code: > cmake .. -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF > -DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OF

Re: [osg-users] osgVolume volume size limitation

2011-09-13 Thread Robert Osfield
HI Clement, The image simply looks like texels outside the inner circle are clipped out by the alpha test, could it be that there alpha value is near zero? Robert. On Tue, Sep 13, 2011 at 11:30 AM, wrote: > Hi Robert, > >     Sorry for the misunderstanding.  I would like to repeat my question.

Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-13 Thread Ethan Fahy
a gdalinfo on one of my geotiff files yielded: Coordinate System is: LOCAL_CS["unnamed", UNIT["unknown",1]] Origin = ([removed],[removed]) (There was more to the result but I can't show that part for security reasons) I am guessing that this is the source of my problem... -

Re: [osg-users] Color grid overlay question/help

2011-09-13 Thread Kevin DeMott
So I'm pretty close to getting this working using the osghud example code. The problem I'm having now is that color grid on the left side of the screen is not visible at the start of the application. I traced this problem down to the fact that during creation the window size is larger than what

Re: [osg-users] osgAndroidExampleGLES1 and 2 error on Android 3.x device

2011-09-13 Thread Jorge Izquierdo Ciges
Yeah... bright mind, changin templates than can change form version to version it's better than change the scripts of your build. 2011/9/12 Marc Sticksen > > Jorge Izquierdo Ciges wrote: > > Neon extensions maybe don't make so much acceleration with devices but v7 > makes some improvements depen

Re: [osg-users] [build] Problem with building OSG for Android GLES2.0

2011-09-13 Thread Jorge Izquierdo Ciges
Quoting the wiki page: If you don't know how to set GLES1/2 please read OpenGL-ES in OSG wiki. Aditionally I seriosly suggest that you should read the GLES 2 spec document in Kronos ARB 2011/9/13 Mourad Boufarguine > > > On M

Re: [osg-users] Color grid overlay question/help

2011-09-13 Thread Jeremy Moles
On Tue, 2011-09-13 at 15:35 +0200, Kevin DeMott wrote: > So I'm pretty close to getting this working using the osghud example code. > > The problem I'm having now is that color grid on the left side of the screen > is not visible at the start of the application. I traced this problem down to >

Re: [osg-users] [build] Problem with building OSG for Android GLES2.0

2011-09-13 Thread Marc Sticksen
uhhh...shame on me, I just missed that little link! There´s just too much compressed information on this page. Thanks! Cheers, Marc -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42697#42697 ___ osg

Re: [osg-users] osgAndroidExampleGLES1 and 2 error on Android 3.x device

2011-09-13 Thread Marc Sticksen
Hi, only commenting the NEON-line in the Android.mk doesn´t work. Well, not here in my system, maybe it works for you? Have you tried it? Cheers, Marc -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42699#42699 ___

[osg-users] Calculating distance, in world CS between Camera node and vertices

2011-09-13 Thread Conan Doyle
Hi, I want to calculate the distance between my final render cameras position and the vertices of each object rendered. I want to pass the world position of the camera into a shader and then use gl_Vertex position to perform the calculation. In search the OSG website, the net and this forum (

Re: [osg-users] Color grid overlay question/help

2011-09-13 Thread Kevin DeMott
No, as it is pretty heavily tied into other source that can not be made available. I can probably post the code for how the HUD and the object to be placed in the upper right hand corner are being created if that would help though. IE the posted code would not run on its own. --

[osg-users] [vpb] Compiling VPB/GDAL on Win7 with VS2010

2011-09-13 Thread Jonathan Klein
Hi, I'm trying to compile VirtualPlanetBuilder with VisualStudio 10. I used cmake to generate the project files and everything looks good, but I get the following linker errors: "1>gdal.lib(gdalrasterblock.obj) : error LNK2038: Konflikt ermittelt für "_ITERATOR_DEBUG_LEVEL": Der Wert "0" stimmt

Re: [osg-users] Calculating distance, in world CS between Camera node and vertices

2011-09-13 Thread Robert Osfield
Hi Conan, You just need to use the osg_ViewMatrixInverse or osg_ViewMatrix uniform that is passed down to the shader by the OSG by default. Robert. On Tue, Sep 13, 2011 at 3:19 PM, Conan Doyle wrote: > Hi, > > I want to calculate the distance between my final render cameras position and > the

Re: [osg-users] osgAndroidExampleGLES1

2011-09-13 Thread Marc Sticksen
Hi, so basically textures should work? When I´m loading cow.osg, texture doesn´t appear. Code: > 09-13 16:35:34.140: ERROR/Osg Viewer(4492): Testing > 09-13 16:35:47.320: ERROR/Osg Viewer(4492): There are 1 models to load > 09-13 16:35:47.320: ERROR/Osg Viewer(4492): Loading: /sdcard/osgmodels

Re: [osg-users] osgAndroidExampleGLES1 and 2 error on Android 3.x device

2011-09-13 Thread Jorge Izquierdo Ciges
Yes it works you just need to change it in ALL the Android.mk because it's defined in each script file. That's why I said that I need to make another sumission adding optional optimization WHICH will overwrite every .mk.inwhen it's added to the main library. 2011/9/13 Marc Sticksen > Hi, > > onl

[osg-users] Google+

2011-09-13 Thread Jeremy Moles
Who needs an invite? :) I've got 150... ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] osgAndroidExampleGLES1

2011-09-13 Thread Jorge Izquierdo Ciges
Seriously READ the documentation: http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Android Particularities of OSG in Android There are some particularities tha

Re: [osg-users] Camera control in osgvisual

2011-09-13 Thread Torben Dannhauer
Hi Rooi, Viijesh told me he will send me his working stage. I'm still waiting, havn't recieved any files yet. I personally haven't started with the implementation, still a lot of other things on my to-do stack. One of the osgvisual users i'm currently working with has implemented a X-Plane co

Re: [osg-users] Get window resolution?

2011-09-13 Thread Simon White
Thanks Robert, that does make things slightly easier! Simon. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42713#42713 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.open

Re: [osg-users] Google+

2011-09-13 Thread Chris 'Xenon' Hanson
On 9/13/2011 8:26 AM, Jeremy Moles wrote: > Who needs an invite? :) I've got 150... And if we use those up, I have more... -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Con

Re: [osg-users] Calculating distance, in world CS between Camera node and vertices

2011-09-13 Thread Sergey Polischuk
Hi, Conan gl_ModelViewMatrix * gl_Vertex is position of vertex in camera space If your view matrix dont have scale component, you dont need anything else to calculate distance (by distance i mean vector length) In general case you can use: osg_ViewMatrixInverse * gl_ModelViewMatrix * gl_Vertex <-

Re: [osg-users] Calculating distance, in world CS between Camera node and vertices

2011-09-13 Thread Conan Doyle
How would I calculate the actual world positions, not distances, of the camera and the vertices? CD hybr wrote: > Hi, Conan > > gl_ModelViewMatrix * gl_Vertex is position of vertex in camera space > If your view matrix dont have scale component, you dont need anything else to > calculate dis

Re: [osg-users] Google+

2011-09-13 Thread Chris 'Xenon' Hanson
On 9/13/2011 10:09 AM, Chris 'Xenon' Hanson wrote: > On 9/13/2011 8:26 AM, Jeremy Moles wrote: >> Who needs an invite? :) I've got 150... > And if we use those up, I have more... Actually, it now seems I can give them away indiscriminately: https://plus.google.com/i/5o-OzbjxCZA:s4BNJFPB0h0 -

Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-13 Thread Ethan Fahy
I found out that my geotif files were missing the .aux files that contain the coordinate system. I was unable to use the --geocentric option with the tif files that were using UTM, but I retrieved a version of the geotiffs that had geographic coordinates and was able to successfully create ive

[osg-users] osgFX::BumpMapping .osg / .osgt samples

2011-09-13 Thread Bruno Fanini
Hello osgUsers! is there any .OSG or .OSGT available sample (NOT C++ code) using osgFX::BumpMapping? A minimal 3.* sample would be ok too... I dig into OSG-Data default set, but it looks like there's no such .osg or .osgt sample or something similar. -- Bruno Fanini http://phoenixbf.wikidot.com/

Re: [osg-users] [vpb] Compiling VPB/GDAL on Win7 with VS2010

2011-09-13 Thread Ethan Fahy
I was basically in the same boat as you several days ago and was able to get VPB built in Visual Studio 2010 thanks to some awesome help from this forum. I'll try to reciprocate if I can. I had success compiling VPB by downloading OSGeo4W and having it retrieve all GDAL precompiled binaries fo

Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-13 Thread Chris 'Xenon' Hanson
On 9/13/2011 12:44 PM, Ethan Fahy wrote: > Now I just need to find a forum post I saw that shows how to place an object > on the terrain based on an lat/lot... http://forum.openscenegraph.org/viewtopic.php?t=6734 -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alph

[osg-users] Shader Composition

2011-09-13 Thread Bo Jiang
Hi All, I have a node, and I want to shade it using different effect, i.e. I have several groups of shaders (vertex+geometry+fragment), and each group implements one effect. Now I want to combine all the effects together when display the node. I do not know how to achieve it. I searched the fo

[osg-users] Two Cameras, Two Render Targets?

2011-09-13 Thread He, Yefei
Hello, Folks, I'm working on an OSG application that requires two cameras rendering two different subscenes into textures, and apply the two textures to different geometries in the main scene. I started out with the osgprerender example by creating two cameras and attaching them to two differe

[osg-users] 回复:Re: osgShadow compile problem with OSG 2.7.8

2011-09-13 Thread 蔡少波
Hello,I have a question .And I think only you can solve it: The example picking object have noticed the kdtree and the points in triangle special. I wan't to know how to uses the triangle Thank you very much! At 2011-09-05 15:41:34,"Robert Osfield" wrote: >On Sun, Sep 4, 2011 at 12:48

Re: [osg-users] [build] Android OSG display problem

2011-09-13 Thread Rafa Gaitan
Hi Jayce, About the cow, I think in GLES1 there's not environmental mapping, So cow is not possible to load properly. Try to load a model with texture coordinates and the texture embedded in the ive. About earth.ive, Has the model the textures embedded? if they are, then, are the textures compres