Re: [osg-users] Generating terrain mesh using 3D points

2011-03-10 Thread Chris 'Xenon' Hanson
On 3/10/2011 7:21 PM, Linda Lee wrote: > Has anyone tried generating a terrain mesh using 3D points? Any advice of > how to get started? I have some terrain data consisting of 3D points and > need to develop functions to query the terrain height during runtime. You'll need to use a gridding

[osg-users] Generating terrain mesh using 3D points

2011-03-10 Thread Linda Lee
Hi, Has anyone tried generating a terrain mesh using 3D points? Any advice of how to get started? I have some terrain data consisting of 3D points and need to develop functions to query the terrain height during runtime. Thank you! Cheers, Linda -- Read this topic online her

[osg-users] Window Position of Widget

2011-03-10 Thread Andrew Kos
I have a widget button--which is essentially a label--inside a widget box which is placed somewhere within a viewer, say at 100x150. This button should open up, right below it, a dropdown menu, which is another box. The issue I'm having is that if I use getOrigin() or getPosition() for the but

Re: [osg-users] osgAudio on Mac OS X

2011-03-10 Thread Paul Martz
On 3/9/2011 4:16 AM, Alessandro Terenzi wrote: If this can help...when I try the 'example_osgaudiolow_playOgg' app I have all the problems already described so far, but if I try a very simple example based only on OpenAL+libogg (no OSG, no osgAudio) everything works fine, maybe the issue is reall

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Robert Osfield
Hi Matthew, On Thu, Mar 10, 2011 at 3:56 PM, Matthew Parry wrote: > Ok, I tried attaching it to the root node and the color now works, previously > it was attached to a ShadowedScene node which was itself attached to the > root. So obviously something in that ShadowedScene node is causing the

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Matthew Parry
Ok, I tried attaching it to the root node and the color now works, previously it was attached to a ShadowedScene node which was itself attached to the root. So obviously something in that ShadowedScene node is causing the problem, I still don't know what it is as I don't do set anything in the s

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Robert Osfield
Hi Matthew, On Thu, Mar 10, 2011 at 3:23 PM, Matthew Parry wrote: > I just tried running the example and the color works correctly. I'm now even > more confused! Might you have a StateSet higher up in the scene graph that decorates the Text drawable and override it's state, such as adding multi

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Matthew Parry
Hi Robert, I just tried running the example and the color works correctly. I'm now even more confused! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37509#37509 ___ osg-users mailing list osg-users

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Robert Osfield
Hi Mathew, I now idea what might amiss. What happens when you run the osgtext example? Robert. On Thu, Mar 10, 2011 at 2:46 PM, Matthew Parry wrote: > Hi, > > I've got a simple function which creates a text object and attaches it to a > Geode: > > osg::ref_ptr > drawLabels() > { >        osg:

Re: [osg-users] [osg-submissions] Android Development Plans

2011-03-10 Thread Robert Osfield
Thanks Mourad, fix now merged and submitted to svn/trunk. On Thu, Mar 10, 2011 at 2:30 PM, Mourad Boufarguine wrote: > Hi all, > > I gave osg android port a try on Windows using cygwin, and it worked like a > charm (only a tiny problem with osgViewer, when cross compiling for android > using cygw

[osg-users] osgText setColor problem

2011-03-10 Thread Matthew Parry
Hi, I've got a simple function which creates a text object and attaches it to a Geode: osg::ref_ptr drawLabels() { osg::ref_ptr geode = new osg::Geode; osg::ref_ptr font = osgText::readFontFile("fonts/forte.ttf"); osg::ref_ptr text1 = new osgText::Text; text1->s

Re: [osg-users] Opengl ES 2.0 testing

2011-03-10 Thread Jean-Sébastien Guay
Hi Jorge, Hello i'm looking for a little bit of Code that has been tested to be working and draws on OpenGL ES 2.0 a simple vertex/fragment shader loading and a little bit of geometry or a triangle. I'm testing the Android port working and i'm a little bit paranoid to write one if I write one a

Re: [osg-users] [osg-submissions] Android Development Plans

2011-03-10 Thread Mourad Boufarguine
Hi all, I gave osg android port a try on Windows using cygwin, and it worked like a charm (only a tiny problem with osgViewer, when cross compiling for android using cygwin, the windows path in osgViewer/CMakeLists.txt is used rather than the android one, fix attached). For the moment I only compi

[osg-users] Opengl ES 2.0 testing

2011-03-10 Thread Jorge Izquierdo Ciges
Hello i'm looking for a little bit of Code that has been tested to be working and draws on OpenGL ES 2.0 a simple vertex/fragment shader loading and a little bit of geometry or a triangle. I'm testing the Android port working and i'm a little bit paranoid to write one if I write one and doesn't wo

Re: [osg-users] How can I check for Polygon-Polygon intersection/distance in OSG ?

2011-03-10 Thread Sanat Talmaki
Thanks Robert. Regards, Sanat -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37492#37492 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg

Re: [osg-users] Can I check for Polygon-Polygon intersection/distance in OSG

2011-03-10 Thread Robert Osfield
Hi Sanat, There are no functions in the OSG for computing intersections of polygons models with other polygonal models. Robert. On Thu, Mar 10, 2011 at 12:04 AM, Sanat Talmaki wrote: > Hi, > > I had a quick question if I can check for intersection/overlap between > Polygons of two different 3D

Re: [osg-users] Getting Uniform Value in drawImplementation

2011-03-10 Thread Robert Osfield
Hi Carl, It sounds like you are most of the way there, osg::State maintains the list of current state that has been applied so you just need to get the current uniform set from the osg::State object. The stumbling block is that is presently any accessors for the internal data structers and these

Re: [osg-users] Missing textures with osgexport

2011-03-10 Thread Alberto Luaces
> Thanks for the examples. > > Now the textures are working fine, but I still can't solve the problem > with the double-sided plane (I get the same result with your sample > file as well), and the box with the flipped normals. > > It must be supported by OSG, since one of the exaples (osglight) us

Re: [osg-users] [osgPlugins] Michael Platings

2011-03-10 Thread Alberto Luaces
Mourad Boufarguine writes: > Hi Josue, > > Just a quick note. When using osg::ref_ptr, you should test for > escena.valid() to know whether the file was loaded or not. > if (!escena.valid()){ >cout<<"No estoy leyendo"