Re: [osg-users] VPBMaster failing

2010-06-17 Thread Christiansen, Brad
Hi,

Thanks. The error is:
Error: no destination graph built, cannot proceed with build.

I am just starting the run with a break point on createDestination() in 
DataSet.cpp from osgdem to see why it isn't creating the destination now.

Cheers,

Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Torben 
Dannhauer
Sent: Thursday, 17 June 2010 1:38 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] VPBMaster failing

Hi,


 Warning: Task tasks/build_root_L0_X0_Y0.task has failed, blacklisting machine 
 and resubmitting task. 


means, that the osgdem run of this task failed. You can read the logfile 
corresponding to this task to get information why it failed.

Failed tasks let vpbmaster blacklist the host which run this task, in this case 
your localhost. Because it is the only host working on your batch, it stops 
premature and your vpbmaster run is uncompleted.


Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29047#29047





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



DISCLAIMER:---
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
copying, alteration, storage or distribution of, or reliance on, this message is
strictly prohibited. No part may be reproduced, adapted or transmitted without 
the
written permission of the owner. If you have received this transmission in 
error, or
are not an authorised recipient, please immediately notify the sender by return 
email,
delete this message and all copies from your e-mail system, and destroy any 
printed
copies. Receipt by anyone other than the intended recipient should not be 
deemed a
waiver of any privilege or protection. Thales Australia does not warrant or 
represent
that this e-mail or any documents, files and previous e-mail messages attached 
are
error or virus free.
--

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Christiansen, Brad

Ok, I think I am getting close to the source of the issue, so hopefully 
somebody may have some ideas.

The problem is occuring because the TerrainTile being loaded from 
build_master.source has no color layers and no elevation layer. A manual 
inspection of the file shows it does have a color layer so it looks like the 
.source file is not being loaded correctly. Next step is to look into the 
loading of the file.

The files contents are:

#Ascii Scene 
#Version 2 
#Generator OpenSceneGraph 2.9.8 

osgTerrain::TerrainTile { 
  UniqueID 1 
  TerrainTechnique TRUE { 
vpb::DatabaseBuilder { 
  UniqueID 2 
  BuildOptions TRUE { 
vpb::BuildOptions { 
  UniqueID 3 
  Directory ./out\\ 
  DestinationTileBaseName test 
  ConvertFromGeographicToGeocentric TRUE 
  DistributedBuildSplitLevel 2 
} 
  } 
} 
  } 
  ColorLayers 1 { 
osgTerrain::CompositeLayer { 
  UniqueID 4 
  Layers 2 { 
osgTerrain::ProxyLayer { 
  UniqueID 5 
  FileName hills.png 
  Locator TRUE { 
osgTerrain::Locator { 
  UniqueID 6 
  Format WKT 
  CoordinateSystem GEOGCS[\WGS 
84\,DATUM[\WGS_1984\,SPHEROID[\WGS 
84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AUTHORITY[\EPSG\,\4326\]]
 
  EllipsoidModel TRUE { 
osg::EllipsoidModel { 
  UniqueID 7 
  RadiusEquator 6.37814e+006 
  RadiusPolar 6.35675e+006 
} 
  } 
  Transform Matrixd { 
180 0 0 0 
0 180 0 0 
0 0 1 0 
-180 -90 0 1 
  } 
  
} 
  } 
} 
osgTerrain::ProxyLayer { 
  UniqueID 8 
  FileName hills2.png 
  Locator TRUE { 
osgTerrain::Locator { 
  UniqueID 9 
  Format WKT 
  CoordinateSystem GEOGCS[\WGS 
84\,DATUM[\WGS_1984\,SPHEROID[\WGS 
84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AUTHORITY[\EPSG\,\4326\]]
 
  EllipsoidModel TRUE { 
osg::EllipsoidModel { 
  UniqueID 10 
  RadiusEquator 6.37814e+006 
  RadiusPolar 6.35675e+006 
} 
  } 
  Transform Matrixd { 
180 0 0 0 
0 180 0 0 
0 0 1 0 
0 -90 0 1 
  } 
  
} 
  } 
} 
  } 
} 
  } 
}


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christiansen, 
Brad
Sent: Thursday, 17 June 2010 2:08 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] VPBMaster failing

Hi,

Thanks. The error is:
Error: no destination graph built, cannot proceed with build.

I am just starting the run with a break point on createDestination() in 
DataSet.cpp from osgdem to see why it isn't creating the destination now.

Cheers,

Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Torben 
Dannhauer
Sent: Thursday, 17 June 2010 1:38 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] VPBMaster failing

Hi,


 Warning: Task tasks/build_root_L0_X0_Y0.task has failed, blacklisting machine 
 and resubmitting task. 


means, that the osgdem run of this task failed. You can read the logfile 
corresponding to this task to get information why it failed.

Failed tasks let vpbmaster blacklist the host which run this task, in this case 
your localhost. Because it is the only host working on your batch, it stops 
premature and your vpbmaster run is uncompleted.


Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29047#29047





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



DISCLAIMER:---
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
copying, alteration, storage or distribution of, or reliance 

Re: [osg-users] osgswig: how to manipulate vertices in loaded meshes?

2010-06-17 Thread Alberto Luaces
Hi Mathias,

Mathias Franzius writes:

 I understand that after calling
n = osgDB.readNodeFile(fname)
 I get a Node. However, it should also be a Geode, so I try to call
n.asGeode()
 This results in a None type.
 Question 1: what do I do wrong?

I don't know nothing about osgswig, but that statement is not always
true. Usually, the loaders place the geometry read from files under a
Group node. To get the actual Geometry nodes, at least on straight OSG,
one uses a NodeVisitor to ease the hierarchy traversal process.

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgviewer error messages:-

2010-06-17 Thread Alberto Luaces
Sanat Talmaki writes:

 What might be the reason for this ?? I can see the cow model correctly so I 
 don't know what to read from these messages.

If I recall correctly, I got some time ago one similar message when
running the osgviewer through the Windows remote desktop. Could it be
your case?

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] Using BRDF technique instead of tiling.

2010-06-17 Thread Kim Bale
Hi Torben,

Yes this was posted a little while a go, I've had the demo application on my
desktop for a while now and it's very nice indeed. I've had a look at the
source and shader code and it would be pretty easy to integrate as a new
oceantechnique in osgocean. I've long thought about adding a projected grid
technique into osgocean - it's just finding the time to do it. It's
definitely on my list of things to do.

Kim.


On 16 June 2010 18:21, Torben Dannhauer z...@saguaro-fight-club.de wrote:

 Hi,
 has anyone read this paper and thought about integration in osgOcean?


 http://www-ljk.imag.fr/Publications/Basilic/com.lmc.publi.publi_arti...@125fe8a8322_1ac3379/article.pdf

 The demo-application looks great, maybe it could be used for osgOcean to
 avoid ocean tiling but preserve the ability to zoom out up to global views
 from space.



 Cheers,
 Torben

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29032#29032





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Automatically disable osg::Camera if node is culled

2010-06-17 Thread Robert Osfield
Hi Farshid,

In scene graph osg::Camera have a bounding volume like all other nodes
and are culled accordingly, there are some special rules though - if
the Camera has an ReferenceFrame set to ABSOLUTE_RF then it's bounding
volume is ignored and it's not culled.

If you fit this case, or if the bounding volume of the Camera is
larger than you need for your texture then a cull callback attached to
a node above the Camera is probably something to use, this could then
keep a bounding sphere to do the cull against the view frustum and
make the decision about whether to cull the subgraph or not.  Such a
cull callback could be used in more circumstances than with just a
camera.

Robert.

On Thu, Jun 17, 2010 at 2:43 AM, Farshid Lashkari fla...@gmail.com wrote:
 Hello,
 I have an app where I use an osg::Camera object to render a view of the
 scene to a texture, then apply that texture to node in the scene. If the
 node displaying the texture is culled, the osg::Camera object still renders
 the scene to the texture.
 Is there a clean way to prevent the osg::Camera object from rendering if the
 node displaying the texture is culled?
 I'm able to accomplish this manually, but it's not as nice of a solution as
 I hoped. Before each draw I manually check if the bounding sphere of the
 node is inside the current view frustum, and disable the osg::Camera object
 accordingly.
 Just curious if somebody knows of a better way to accomplish this.
 Cheers,
 Farshid
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] reuse of clipping planes?

2010-06-17 Thread Robert Osfield
Hi Jason,

The number of clip planes supported by OpenGL is typically limited to
6, so for a single subgraph this is the hard limit your can't work
around without doing your own shaders.  The advantage your own custom
clip plan class has is that it'd allow you to decorate multiple
subgraphs each with it's own setting for the 6 clip planes, this
overcomes the limitation the OSG adds by restricting you to 6 clip
planes per RenderStage.

Robert.

On Thu, Jun 17, 2010 at 3:44 AM, Jason Jerald ja...@digitalartforms.com wrote:
 Ok, I created my own subclass from osg::ClipPlane and override apply().  I
 confirmed that the code is actually entering my new apply() method and
 successfully set the clipping planes with the correct transforms.  However,
 it seems I am still limited to 6 clipping planes.  I do not see how
 pushing/popping the modelview matrix and setting a new modelview matrix gets
 around the 6 clip plane limit.  The modelview matrix already includes what I
 need (including the local geometric transform), so how does setting the
 matrix myself help?  I must be missing something or perhaps I misunderstood
 your suggestion.

 The only thing I did was override ClipPlane::apply(State).  I am not clear
 in your suggestion if you are saying this is the only thing that is needed
 or if I also need to set up a RenderBin (or a new RenderStage?) for each set
 of 6 clipping planes. Or perhaps I need to call apply() in a different way
 than how osg is already doing it? Or is there something else I am missing?

 Thanks!

 Jason









 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
 Osfield
 Sent: Tuesday, May 18, 2010 12:58 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] reuse of clipping planes?

 Hi Jason,

 RenderBin's don't have any positional state setup so you can't use
 them directly to enable more clipping planes.  Only RenderStage's set
 up the positional state.

 The FlightGear's workaround isn't a general purpose approach so isn't
 appropriate for the core OSG, so there hasn't been any changes merged
 for this in any OSG version.  You can create you own equivilant by
 subclassing from osg::ClipPlane and overriding the apply() then
 setting the modelview matrix you want and applying the clipplanes and
 then restoring it afterwards before the end of the apply().

 Robert.

 On Tue, May 18, 2010 at 1:26 AM, Jason Jerald ja...@digitalartforms.com
 wrote:
 Thank you Robert, this is some very useful information.

 The most recent related thread I could find on this topic is from Aug/Sept
 2007:
 RFC: Positional state container in the render bin, was: clip planes

 There is discussion in that thread about using renderbins.  What are the
 advantages of using renderbins versus renderstages?  The code attached in
 that thread modifies RenderBin, RenderStage, CullVisitor, and osgClip.
 However, it appears from doing a diff that those changes have not been
 integrated into OSG 2.8.2.  Is this the FlightGear emulate solution you
 mention below, and it is just not integrated into OSG 2.8.2, or are you
 talking about a different solution implemented in a different way?
 Unfortunately simgear.org which contains much of the osg code for
 flightgear
 (at least from my understanding) has not been available for at least the
 last few days.

 Thanks!

 Jason







 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
 Osfield
 Sent: Thursday, May 13, 2010 1:21 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] reuse of clipping planes?

 Hi Jason,

 Clip planes are an example of positional state, other examples are
 lights and eye linear texgen.  All positional state requires a
 specific modelview matrix to be bound to them to position them
 correctly in space, so unlike other OpenGL/OSG state you can't just
 push/pop and state sort their state and expect to get the correct
 results.

 This difference is handled by the OSG by binding the positional state
 together with a modelview matrix found when encountering the
 ClipNode/TexGenNode/LightSource nodes, and these positional state are
 then applied once at the start of each RenderStage.  Applying the
 state just once for whole RenderStage does enable us to position the
 state uniquely but unfortauntely also means that the positional state
 can only be in one place for the whole stage - you can't nest it.

 You can emulate having multiple sets of Clip planes/texgen/lights by
 having multiple stages, or do what is currently done in FlightGear, to
 use a custom StateAttribute that does the binding to the required
 modelview matrix in the CustomAttribute::apply() method taking care to
 push back the current modelview matrix to prevent the rest of the
 scene being affected.

 Robert.

 On Thu, May 13, 2010 at 2:14 AM, Jason Jerald ja...@digitalartforms.com
 wrote:


 

Re: [osg-users] VPBMaster failing

2010-06-17 Thread Robert Osfield
Hi Brad,

On Thu, Jun 17, 2010 at 7:07 AM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:
 Thanks. The error is:
 Error: no destination graph built, cannot proceed with build.

 I am just starting the run with a break point on createDestination() in 
 DataSet.cpp from osgdem to see why it isn't creating the destination now.

Have a look at the build_master.source that it's generated.  Last week
I updated VPB to use the new osgDB serializers as well as support for
setting the image pixel formats per layer, with these changes the
.source format has changed a little, in my testing it all worked, but
perhaps there is something amiss.

You'll need svn/trunk and both OSG and VPB, as I had to make some bug
fixes to the OSG serializers to get things working in VPB.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] QT and Horizontal Split Stereo

2010-06-17 Thread Kim Bale
Hello all,

I have a bit of a tricky problem which I hope some of you can assist with.

I've recently moved our stereo graphics development over to QT and found
this to work very well when we're using our quad buffered active stereo
screens. However, I hit a rather perplexing snag when I was asked to get the
same applications working with a passive stereo setup that uses a horizontal
split stereo over two projectors.

The problem is that in order for it to display correctly with horizontal
split I would need to duplicate the QT interface on both screens and then
obviously have the OSG widget display the left and right eye on their
respective screens. This sounds like a bit of a mess to me and would require
big changes in our QT framework.

My thinking is that dual-projector passive stereo setups that use a
horizontal or vertical split format are fairly common so someone must have
got them working with a windowing interface before. So, if anybody has any
pointers on a smart way to proceed I would be very grateful to hear them
because at the moment I'm rather stuck :)

Cheers,

Kim.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Robert Osfield
Hi Brad,

I had this problem when I developing the new serializer support in
VPB, but this has been addressed with fixes to the OSG that I checked
in last.  The .source file looks OK so hopefully an update to OSG and
VPB and a rebuild will fix this problem.

Robert.

On Thu, Jun 17, 2010 at 8:04 AM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:

 Ok, I think I am getting close to the source of the issue, so hopefully 
 somebody may have some ideas.

 The problem is occuring because the TerrainTile being loaded from 
 build_master.source has no color layers and no elevation layer. A manual 
 inspection of the file shows it does have a color layer so it looks like the 
 .source file is not being loaded correctly. Next step is to look into the 
 loading of the file.

 The files contents are:

 #Ascii Scene
 #Version 2
 #Generator OpenSceneGraph 2.9.8

 osgTerrain::TerrainTile {
  UniqueID 1
  TerrainTechnique TRUE {
    vpb::DatabaseBuilder {
      UniqueID 2
      BuildOptions TRUE {
        vpb::BuildOptions {
          UniqueID 3
          Directory ./out\\
          DestinationTileBaseName test
          ConvertFromGeographicToGeocentric TRUE
          DistributedBuildSplitLevel 2
        }
      }
    }
  }
  ColorLayers 1 {
    osgTerrain::CompositeLayer {
      UniqueID 4
      Layers 2 {
        osgTerrain::ProxyLayer {
          UniqueID 5
          FileName hills.png
          Locator TRUE {
            osgTerrain::Locator {
              UniqueID 6
              Format WKT
              CoordinateSystem GEOGCS[\WGS 
 84\,DATUM[\WGS_1984\,SPHEROID[\WGS 
 84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AUTHORITY[\EPSG\,\4326\]]
              EllipsoidModel TRUE {
                osg::EllipsoidModel {
                  UniqueID 7
                  RadiusEquator 6.37814e+006
                  RadiusPolar 6.35675e+006
                }
              }
              Transform Matrixd {
                180 0 0 0
                0 180 0 0
                0 0 1 0
                -180 -90 0 1
              }

            }
          }
        }
        osgTerrain::ProxyLayer {
          UniqueID 8
          FileName hills2.png
          Locator TRUE {
            osgTerrain::Locator {
              UniqueID 9
              Format WKT
              CoordinateSystem GEOGCS[\WGS 
 84\,DATUM[\WGS_1984\,SPHEROID[\WGS 
 84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AUTHORITY[\EPSG\,\4326\]]
              EllipsoidModel TRUE {
                osg::EllipsoidModel {
                  UniqueID 10
                  RadiusEquator 6.37814e+006
                  RadiusPolar 6.35675e+006
                }
              }
              Transform Matrixd {
                180 0 0 0
                0 180 0 0
                0 0 1 0
                0 -90 0 1
              }

            }
          }
        }
      }
    }
  }
 }


 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of 
 Christiansen, Brad
 Sent: Thursday, 17 June 2010 2:08 PM
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] VPBMaster failing

 Hi,

 Thanks. The error is:
 Error: no destination graph built, cannot proceed with build.

 I am just starting the run with a break point on createDestination() in 
 DataSet.cpp from osgdem to see why it isn't creating the destination now.

 Cheers,

 Brad

 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Torben 
 Dannhauer
 Sent: Thursday, 17 June 2010 1:38 PM
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] VPBMaster failing

 Hi,


 Warning: Task tasks/build_root_L0_X0_Y0.task has failed, blacklisting 
 machine and resubmitting task.


 means, that the osgdem run of this task failed. You can read the logfile 
 corresponding to this task to get information why it failed.

 Failed tasks let vpbmaster blacklist the host which run this task, in this 
 case your localhost. Because it is the only host working on your batch, it 
 stops premature and your vpbmaster run is uncompleted.


 Cheers,
 Torben

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29047#29047





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail messages
 attached 

Re: [osg-users] QT and Horizontal Split Stereo

2010-06-17 Thread Robert Osfield
Hi Kim,

For stereo I'd suggest alway use the osgViewer native libs, using Qt
for any immersive stereo apps is just adding complexity and not going
anything other than extra limitations on threading etc.  Is there a
reason why you are trying to use Qt for stereo?

Robert.

On Thu, Jun 17, 2010 at 9:08 AM, Kim Bale kcb...@googlemail.com wrote:
 Hello all,
 I have a bit of a tricky problem which I hope some of you can assist with.
 I've recently moved our stereo graphics development over to QT and found
 this to work very well when we're using our quad buffered active stereo
 screens. However, I hit a rather perplexing snag when I was asked to get the
 same applications working with a passive stereo setup that uses a horizontal
 split stereo over two projectors.
 The problem is that in order for it to display correctly with horizontal
 split I would need to duplicate the QT interface on both screens and then
 obviously have the OSG widget display the left and right eye on their
 respective screens. This sounds like a bit of a mess to me and would require
 big changes in our QT framework.
 My thinking is that dual-projector passive stereo setups that use a
 horizontal or vertical split format are fairly common so someone must have
 got them working with a windowing interface before. So, if anybody has any
 pointers on a smart way to proceed I would be very grateful to hear them
 because at the moment I'm rather stuck :)
 Cheers,
 Kim.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[vpb] does vpb have Graphics card requirement?

2010-06-17 Thread Shiwei Hu
Hi,
I am building a terrain with vpb. I work with a rendering server. the 
configuration of hardware is as follow: 


   
  2 cups( 4 cores each one); 4G Memory; aspeed graphics familys as video card


the computer uses Windows xp 64bit for operation system.

when running vpbmaster with simple command, some errors occor and vpbmaster 
stop running. following is the error report(part):


 rendering in software:pixelformatIndex 1
 windows error #2000:win32windwingsystem:openglGLGontext() -unable to restore 
 current opengl rendering context. reason:the pixel format is  invalid


 Does anyone have idea with this?
... 


Thank you!

Cheers,
Shiwei[/quote]

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29059#29059





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Set image as static background

2010-06-17 Thread Elmar Alizade
Hi, loopless 

I also want to set background image.
I tested your createNodeWithMyImageOnIt function.
this function generates just 2dPanel with image on it which you can rotate it 
by mouse. but background image should be static. could you post complete code 
with main method?
... 

Thank you!

Cheers,
Elmar

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29026#29026





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] How I can set background?

2010-06-17 Thread Elmar Alizade
Hi,
How I can set the image as background to my scene?
Maybe there is information about my question. If there is then send me link.  
... 

Thank you in advance!

Cheers,
Elmar

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28848#28848





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgswig: how to manipulate vertices in loaded meshes?

2010-06-17 Thread Mathias Franzius
Excellent, that seems to solve my problem. Thank you!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29063#29063





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] What is the different between the DisplayTypes?

2010-06-17 Thread Martin Großer

Hi Farshid,

thank you very much for the explanation.
Have you an idea why the Head_Mounted_Display need asymmetric frustums?

Cheers

Martin

Am 16.06.2010 18:14, schrieb Farshid Lashkari:

Hi Martin,

2010/6/16 Martin Großer grosser.mar...@gmx.de 
mailto:grosser.mar...@gmx.de


can everybody explane what the different between the display types?

For example, what is different between MONITOR and POWERWALL?
When I try to use the Powerwall and I set the type MONITOR it
works very good.


I'm not sure about the other types, but I know that the 
HEAD_MOUNTED_DISPLAY option is used during stereo rendering to create 
symmetric  frustums. All the other options will produce asymmetric 
frustums for the left/right eye.


Cheers,
Farshid


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
   


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Virtual walk on my scene

2010-06-17 Thread Elmar Alizade
Hi,
I want to create visualization of my scene with terrain, my objects, sky, light 
and etc. I want to virtual walk on my scene. Where I can find sample about 
this? Generally is it possible with OSG?

... 

Thank you!

Cheers,
Elmar

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29065#29065





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Christiansen, Brad
Hi Robert,

I just did a clean (release) build of both OSG and VPB and re-ran my test, with 
the same result. The revision of the osg source I used is: 11618 (12:49:45 AM, 
Thursday, 17 June 2010) and for VPB it is: 1010 (11:23:36 PM, Thursday, 10 June 
2010).

I added in some debug code to print out the number of color layers before 
saving the .source file, and after loading it. Before save the terrain tile has 
one color layer but after it is reloaded it has none.

I have had a quick shot at debugging it but I am having trouble getting my head 
around how the new serializes work.

The simple test to reproduce the error is to run a command like:

vpbmaster --bluemarble-west -t aRandomPNG.png -o ./out/test.ive

Any tips on where to look or how to debug the issue would be great.

Cheers,

Brad


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Thursday, 17 June 2010 4:09 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
correctly.

Hi Brad,

I had this problem when I developing the new serializer support in
VPB, but this has been addressed with fixes to the OSG that I checked
in last.  The .source file looks OK so hopefully an update to OSG and
VPB and a rebuild will fix this problem.

Robert.

On Thu, Jun 17, 2010 at 8:04 AM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:

 Ok, I think I am getting close to the source of the issue, so hopefully 
 somebody may have some ideas.

 The problem is occuring because the TerrainTile being loaded from 
 build_master.source has no color layers and no elevation layer. A manual 
 inspection of the file shows it does have a color layer so it looks like the 
 .source file is not being loaded correctly. Next step is to look into the 
 loading of the file.

 The files contents are:

 #Ascii Scene
 #Version 2
 #Generator OpenSceneGraph 2.9.8

 osgTerrain::TerrainTile {
  UniqueID 1
  TerrainTechnique TRUE {
    vpb::DatabaseBuilder {
      UniqueID 2
      BuildOptions TRUE {
        vpb::BuildOptions {
          UniqueID 3
          Directory ./out\\
          DestinationTileBaseName test
          ConvertFromGeographicToGeocentric TRUE
          DistributedBuildSplitLevel 2
        }
      }
    }
  }
  ColorLayers 1 {
    osgTerrain::CompositeLayer {
      UniqueID 4
      Layers 2 {
        osgTerrain::ProxyLayer {
          UniqueID 5
          FileName hills.png
          Locator TRUE {
            osgTerrain::Locator {
              UniqueID 6
              Format WKT
              CoordinateSystem GEOGCS[\WGS 
 84\,DATUM[\WGS_1984\,SPHEROID[\WGS 
 84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AUTHORITY[\EPSG\,\4326\]]
              EllipsoidModel TRUE {
                osg::EllipsoidModel {
                  UniqueID 7
                  RadiusEquator 6.37814e+006
                  RadiusPolar 6.35675e+006
                }
              }
              Transform Matrixd {
                180 0 0 0
                0 180 0 0
                0 0 1 0
                -180 -90 0 1
              }

            }
          }
        }
        osgTerrain::ProxyLayer {
          UniqueID 8
          FileName hills2.png
          Locator TRUE {
            osgTerrain::Locator {
              UniqueID 9
              Format WKT
              CoordinateSystem GEOGCS[\WGS 
 84\,DATUM[\WGS_1984\,SPHEROID[\WGS 
 84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AUTHORITY[\EPSG\,\4326\]]
              EllipsoidModel TRUE {
                osg::EllipsoidModel {
                  UniqueID 10
                  RadiusEquator 6.37814e+006
                  RadiusPolar 6.35675e+006
                }
              }
              Transform Matrixd {
                180 0 0 0
                0 180 0 0
                0 0 1 0
                0 -90 0 1
              }

            }
          }
        }
      }
    }
  }
 }


 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of 
 Christiansen, Brad
 Sent: Thursday, 17 June 2010 2:08 PM
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] VPBMaster failing

 Hi,

 Thanks. The error is:
 Error: no destination graph built, cannot proceed with build.

 I am just starting the run with a break point on createDestination() in 
 DataSet.cpp from osgdem to see why it isn't creating the destination now.

 Cheers,

 Brad

 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] 

Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Robert Osfield
Hi Brad,

I just run the test along the lines of yours:

vpbmaster --bluemarble-west -t
../BlueMarble/land_shallow_topo_west.tif -o out/test.ive

And it run to completion without any problems.  The generated
build_master.source is included below, and looks pretty similar to
yours.

Could you try doing:

osgdem -s build_master.source --so test.source

This will load and then re-save the terrain description, the above
test results in test.source that is identical to build_master.source.
My guess is that on your system it won't be.

What OS/compilers are you using?  I'm using Kubuntu 9.04 and gcc 4.3.3.

Robert.

--

#Ascii Scene
#Version 2
#Generator OpenSceneGraph 2.9.8

osgTerrain::TerrainTile {
  UniqueID 1
  TerrainTechnique TRUE {
vpb::DatabaseBuilder {
  UniqueID 2
  BuildOptions TRUE {
vpb::BuildOptions {
  UniqueID 3
  Directory out/
  DestinationTileBaseName test
  DistributedBuildSplitLevel 4
}
  }
}
  }
  ColorLayers 1 {
osgTerrain::CompositeLayer {
  UniqueID 4
  Layers 1 {
osgTerrain::ProxyLayer {
  UniqueID 5
  FileName ../BlueMarble/land_shallow_topo_west.tif
  Locator TRUE {
osgTerrain::Locator {
  UniqueID 6
  Format WKT
  CoordinateSystem GEOGCS[\WGS
84\,DATUM[\WGS_1984\,SPHEROID[\WGS
84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORIT
Y[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AXIS[\Lat\,NORTH],AXIS[\Long\
,EAST],AUTHORITY[\EPSG\,\4326\]]
  EllipsoidModel TRUE {
osg::EllipsoidModel {
  UniqueID 7
  RadiusEquator 6.37814e+06
  RadiusPolar 6.35675e+06
}
  }
  Transform Matrixd {
180 0 0 0
0 180 0 0
0 0 1 0
-180 -90 0 1
  }

}
  }
}
  }
}
  }
}
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] multiple cameras:: example using viewer

2010-06-17 Thread nikhil raprolu simha
Hi,

Can some one point me to a multiple cameras example(or anything that uses 
multiple cameras) using  viewer(not producer).

PS:I am a newbie.

Thank you.
Nikhil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29070#29070





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] About osg on Mobile

2010-06-17 Thread Robert Osfield
HI Donlin,

2010/6/17 xyc508 xyc...@163.com:
 The Mobile here mean Windows Mobile or Win CE on Pocket PCPocket PC
 Phone device,can osg run on it ? what package it need?

There is big difference between just say Mobile and Win CE, the more
specific you are the better replies you'll get, we aren't mind
readers.

I believe one OSG users has attempt to compile the OSG on WinCE.  I
haven't received any patches yet, so I presume it either mostly works
or that they haven't got round to posting them yet.

There are no packages you just use for WinCE development - like the
other OSG user who's looked at WinCE you'll need to compile the OSG
from source using the new OpenGLES target (in OSG svn/trunk) and
tackle what ever issues you come across in the port.

I have no expertise on Windows let alone WinCE so I'll have to defer
to members of the community for support for both, beyond saying it
should be possible using the new OpenGLES target I can't give further
guidance.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] multiple cameras:: example using viewer

2010-06-17 Thread Robert Osfield
Hi Nikhil,

Might the osgcamera example be sufficient?

Besides osgcamera there others like the collection of render to
texture examples.  Just do a search for Camera in the examples and
you'll get lots of hits.

Robert.

On Thu, Jun 17, 2010 at 11:17 AM, nikhil raprolu simha
r.nikhilsi...@gmail.com wrote:
 Hi,

 Can some one point me to a multiple cameras example(or anything that uses 
 multiple cameras) using  viewer(not producer).

 PS:I am a newbie.

 Thank you.
 Nikhil

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29070#29070





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Noob question: how to change osg::Group to osg::Switch

2010-06-17 Thread Roman Grigoriev
Hi,
Sorry for noob question but maybe there is example how to change
this scenegraph 
group -|
  |-geode
  |-geode
to 
switch-|
  |-geode
  |-geode

... 

Thank you!

Cheers,
Roman

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29074#29074





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Virtual walk on my scene

2010-06-17 Thread Trajce (Nick) Nikolov
Hi Elmar,

what do you mean by virtual walk? interactively to mo move thru your scene?
Animate the camera ? when you run osgviewer with your model, press 'h', help
will show on your screen., There are couple of Camera Manipulators available
- obviousely the keys 1-5, these allow you to move with the mouse,
keyboard.

-Nick


On Thu, Jun 17, 2010 at 11:29 AM, Elmar Alizade
elmar_aliz...@hotmail.comwrote:

 Hi,
 I want to create visualization of my scene with terrain, my objects, sky,
 light and etc. I want to virtual walk on my scene. Where I can find sample
 about this? Generally is it possible with OSG?

 ...

 Thank you!

 Cheers,
 Elmar

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29065#29065





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] does vpb have Graphics card requi rement?

2010-06-17 Thread Pierre BOURDIN
Hi Shiwei,


2010/6/17 Shiwei Hu henry...@163.com

 Hi,
 I am building a terrain with vpb. I work with a rendering server. the
 configuration of hardware is as follow:


 
   2 cups( 4 cores each one); 4G Memory; aspeed graphics familys as video
 card


 the computer uses Windows xp 64bit for operation system.

 when running vpbmaster with simple command, some errors occor and vpbmaster
 stop running. following is the error report(part):


  rendering in software:pixelformatIndex 1
  windows error #2000:win32windwingsystem:openglGLGontext() -unable to
 restore current opengl rendering context. reason:the pixel format is
  invalid


  Does anyone have idea with this?


VPB tools are not a classic console tools. They use and need a graphic board
with good OpenGL support.

I have no idea of the capability of your video card, but make sure you have
drivers with OpenGL support.
That's what says the error you get: vpbmaster can not create a correct
rendering context because openglcontext is bad.


...


 Thank you!

 Cheers,
 Shiwei[/quote]

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29059#29059


Regards,
Pierre.






 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Noob question: how to change osg::Group to osg::Switch

2010-06-17 Thread Vincent Bourdier

Hi,

You just have to create a new Switch, attach the geodes to it, and get 
the parent of the group to attach the switch and remove the group.
Next just check that the geode only have one parent, but I think this 
would be enought


Regards,
Vincent.

Le 17/06/2010 12:58, Roman Grigoriev a écrit :

Hi,
Sorry for noob question but maybe there is example how to change
this scenegraph
group -|
   |-geode
   |-geode
to
switch-|
   |-geode
   |-geode

...

Thank you!

Cheers,
Roman

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29074#29074





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
   

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [jobs] 3D Research Programmer - Glasgow School of Art

2010-06-17 Thread Kim Bale
Hi folks,

We're currently looking for a 3D Research Programmer to join us in the
Digital Design Studio at the Glasgow School of Art. I know a lot of
you are working in research institutions so hopefully this job advert
will be of interest to some of you.

What's not mentioned in the advert is that we have recently moved all
of our graphics development over to OpenSceneGraph so any experience
with OSG is a big plus for prospective candidates.

I'll post this on the jobs section on the osg wiki once I've got my
'edit' privileges sent to me.

Regards,

Kim.

--

Details:

Working in The Digital Design Studio (DDS), the largest research
centre at the Glasgow School of Art, you will be expected to win
research funding but also be actively engaged in commercial and
research activities associated with Realtime simulation within a range
of sectors.

Educated to at least higher degree level (or equivalent), you will be
research active and will have extensive experience in computer
programming with particular relevance in advanced visualization,
virtual reality applications or virtual environments. An emphasis on
interaction and experience of handling large datasets capable of
real-time viewing is desirable.

Closing date for submission of completed applications is: 2nd July 2010

More info here:
http://www.jobs.ac.uk/job/ABF195/realtime-3d-research-programmer/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Virtual walk on my scene

2010-06-17 Thread Elmar Alizade
Hi, Trajce
I want to move through in my scene. First of all I want to create player 
combined camera and create collision between this player and my objects.

... 

Thank you!

Cheers,
Elmar

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29083#29083





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgviewer error messages:-

2010-06-17 Thread Jean-Sébastien Guay

Hi Sanat,


I was trying some example in osgviewer and found the following error messages 
in the command line:

C:\Tools\OpenSceneGraph-2.8.0_VS_2005\binosgviewer.exe C:\Tools\OpenSceneGraph-
2.8.0_VS_2005\bin\OpenSceneGraph-Data-2.8.0\cow.osg
Windows Error #127: [Screen #0] ChooseMatchingPixelFormat() - wglChoosePixelForm
atARB extension not found, trying GDI. Reason: The specified procedure could not
  be found.

Rendering in software: pixelFormatIndex 3

What might be the reason for this ?? I can see the cow model correctly so I 
don't know what to read from these messages.


AFAIK, this should only happen if the machine you're on cannot create a 
normal hardware-accelerated OpenGL context. Perhaps you don't have 
good OpenGL drivers on this machine, or it's a really bad video 
card/chipset?


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Virtual walk on my scene

2010-06-17 Thread Trajce (Nick) Nikolov
Hi Elmar,

then I would suggest to have a look at osgGA::FirstPersonManipulator and get
familiar with the examples as they are good to walk you thru different
aspect of osg. Also do a search in the archive. Collision detection was
discussed a lot

-Nick


On Thu, Jun 17, 2010 at 2:45 PM, Elmar Alizade elmar_aliz...@hotmail.comwrote:

 Hi, Trajce
 I want to move through in my scene. First of all I want to create player
 combined camera and create collision between this player and my objects.

 ...

 Thank you!

 Cheers,
 Elmar

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29083#29083





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Christiansen, Brad
Hi Robert,

Just checked out a fresh copy of both osg and vpb, re-created the projects and 
did a full build of both. Unfortunately I still have the same problem. Looks 
like I will need to fix the problem that occurring with my OS/compiler. Can you 
suggest any areas that I should look at first? I am guessing the issue will be 
in osgTerrain serializer plug-in.

Cheers,

Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christiansen, 
Brad
Sent: Thursday, 17 June 2010 6:23 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
correctly.

Hi,

Just ran the command. You are correct, the files are not the same, all the 
layers have been stripped out. I am using WindowsXP, Visual Studio 2008.
I will do a fresh checkout and build when I get home tonight (if the kids allow 
it : )  as I cant access an external SVN server from the work network. It seems 
odd that the different platforms would result in this behavior so its worth a 
tripple check.

Original:

#Ascii Scene 
#Version 2 
#Generator OpenSceneGraph 2.9.8 

osgTerrain::TerrainTile { 
  UniqueID 1 
  TerrainTechnique TRUE { 
vpb::DatabaseBuilder { 
  UniqueID 2 
  BuildOptions TRUE { 
vpb::BuildOptions { 
  UniqueID 3 
  Directory ./out\\ 
  DestinationTileBaseName test 
  DistributedBuildSplitLevel 2 
} 
  } 
} 
  } 
  ColorLayers 1 { 
osgTerrain::CompositeLayer { 
  UniqueID 4 
  Layers 1 { 
osgTerrain::ProxyLayer { 
  UniqueID 5 
  FileName hills.png 
  Locator TRUE { 
osgTerrain::Locator { 
  UniqueID 6 
  Format WKT 
  CoordinateSystem GEOGCS[\WGS 
84\,DATUM[\WGS_1984\,SPHEROID[\WGS 
84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AUTHORITY[\EPSG\,\4326\]]
 
  EllipsoidModel TRUE { 
osg::EllipsoidModel { 
  UniqueID 7 
  RadiusEquator 6.37814e+006 
  RadiusPolar 6.35675e+006 
} 
  } 
  Transform Matrixd { 
180 0 0 0 
0 180 0 0 
0 0 1 0 
-180 -90 0 1 
  } 
  
} 
  } 
} 
  } 
} 
  } 
}

test.source

#Ascii Scene 
#Version 2 
#Generator OpenSceneGraph 2.9.8 

osgTerrain::TerrainTile { 
  UniqueID 1 
  TerrainTechnique TRUE { 
vpb::DatabaseBuilder { 
  UniqueID 2 
  BuildOptions TRUE { 
vpb::BuildOptions { 
  UniqueID 3 
} 
  } 
} 
  } 
}



Cheers,

Brad



-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Thursday, 17 June 2010 6:10 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
correctly.

Hi Brad,

I just run the test along the lines of yours:

vpbmaster --bluemarble-west -t
../BlueMarble/land_shallow_topo_west.tif -o out/test.ive

And it run to completion without any problems.  The generated
build_master.source is included below, and looks pretty similar to
yours.

Could you try doing:

osgdem -s build_master.source --so test.source

This will load and then re-save the terrain description, the above
test results in test.source that is identical to build_master.source.
My guess is that on your system it won't be.

What OS/compilers are you using?  I'm using Kubuntu 9.04 and gcc 4.3.3.

Robert.

--

#Ascii Scene
#Version 2
#Generator OpenSceneGraph 2.9.8

osgTerrain::TerrainTile {
  UniqueID 1
  TerrainTechnique TRUE {
vpb::DatabaseBuilder {
  UniqueID 2
  BuildOptions TRUE {
vpb::BuildOptions {
  UniqueID 3
  Directory out/
  DestinationTileBaseName test
  DistributedBuildSplitLevel 4
}
  }
}
  }
  ColorLayers 1 {
osgTerrain::CompositeLayer {
  UniqueID 4
  Layers 1 {
osgTerrain::ProxyLayer {
  UniqueID 5
  FileName ../BlueMarble/land_shallow_topo_west.tif
  Locator TRUE {
osgTerrain::Locator {
  UniqueID 6
  Format WKT
  CoordinateSystem GEOGCS[\WGS
84\,DATUM[\WGS_1984\,SPHEROID[\WGS
84\,6378137,298.257223563,AUTHORITY[\EPSG\,\7030\]],TOWGS84[0,0,0,0,0,0,0],AUTHORIT
Y[\EPSG\,\6326\]],PRIMEM[\Greenwich\,0,AUTHORITY[\EPSG\,\8901\]],UNIT[\degree\,0.0174532925199433,AUTHORITY[\EPSG\,\9108\]],AXIS[\Lat\,NORTH],AXIS[\Long\
,EAST],AUTHORITY[\EPSG\,\4326\]]
  EllipsoidModel TRUE {
osg::EllipsoidModel {
  UniqueID 7
  RadiusEquator 

Re: [osg-users] How I can set background?

2010-06-17 Thread Trajce (Nick) Nikolov
Hi

your question is answered in the archive ... do a search for Background
image...
-Nick


On Sat, Jun 12, 2010 at 8:03 AM, Elmar Alizade elmar_aliz...@hotmail.comwrote:

 Hi,
 How I can set the image as background to my scene?
 Maybe there is information about my question. If there is then send me
 link.
 ...

 Thank you in advance!

 Cheers,
 Elmar

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=28848#28848





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] multiple cameras:: example using viewer

2010-06-17 Thread nikhil raprolu simha
Hi Robert,



Thank you.

I want to know what are the changes that i would need to make in the following 
code so that it runs in 2.8.0.




Cheers,
nikhil



Code:
Producer::CameraConfig* setupCameras()
{
// Declare a camera configuration instance..
   Producer::CameraConfig* myCameraConfig = 
  new Producer::CameraConfig();

// .. and two camera instances. A camera to follow the tank...
Producer::Camera* tankFollowerCamera = new Producer::Camera();
// .. and a traditional view of the scene
   Producer::Camera* mainCamera = new Producer::Camera();

// Set the parameters for the main camera.
// Projection rectangle describes the area of the render surface
//�this view will occupy. Arguments are (left, right, bottom, top)
   mainCamera-setProjectionRectangle(0.25f, 0.75f, 0.0f, 0.5f);

// We don't want this camera to share a lens with other cameras.
   mainCamera-setShareLens(false);

// Let producer determine the fov based on the projection rectangle
   mainCamera-getLens()-setAutoAspect(true);

// Similar calls for the tank follower camera
   tankFollowerCamera-setProjectionRectangle(0.1f, 0.9f, 0.55f, 0.95f);
   tankFollowerCamera-setShareLens(false);
   tankFollowerCamera-getLens()-setAutoAspect(true);

// Add the cameras to our camera configuration, we'll use the name
// to retrieve an handle to the camera later.
   myCameraConfig-addCamera(tankFollowerCamera,tankFollowerCamera);
   myCameraConfig-addCamera(mainCamera,mainCamera);

// We want both cameras to use the same render surface. Retrieve a
// handle to the default render surface...
   Producer::RenderSurface* rsOne = mainCamera-getRenderSurface();

// .. and assign that to the second camera.
   tankFollowerCamera-setRenderSurface( rsOne );

   return myCameraConfig;
}


and


Code:
int main( int argc, char **argv )
{
// pointers to the root node and the tank model node 
   Producer::ref_ptrosg::Group rootNode; 
   Producer::ref_ptrosg::Group ownTank;

// build scene with terrain and two tanks
   if (!setupScene(rootNode,ownTank))
   {
  std::cout problem setting up scene  std::endl;
  return -1;
   }

// Declare a camera configuration instance, initialize it using
// the function we defined earlier. 
   Producer::CameraConfig* myCameraConfig = setupCameras();

// Use this camera configuration instance to set up the viewer 
   osgProducer::Viewer viewer(myCameraConfig);
   viewer.setUpViewer(osgProducer::Viewer::STANDARD_SETTINGS);
   viewer.setSceneData( rootNode.get() );

// Declare a transform for a position above and behind the tank
// aimed down slightly. Add this transform to the tank node. 
   osg::PositionAttitudeTransform * followerOffset =
  new osg::PositionAttitudeTransform();
   followerOffset-setPosition( osg::Vec3(0.0,-25.0,10) );
   followerOffset-setAttitude(
  osg::Quat( osg::DegreesToRadians(-15.0), osg::Vec3(1,0,0) ) );
   ownTank.get()-addChild(followerOffset);

// Declare a transform accumulator to be used to position a 
// camera. Attach transform accumulator to the follower transform.�
   transformAccumulator* tankFollowerWorldCoords = 
  new transformAccumulator();
   tankFollowerWorldCoords-attachToGroup(followerOffset);

// create the windows and run the threads.
   viewer.realize();

Now that the simulation is set up we are ready for the simulation loop. This 
loop will be slightly different than previous. After we've updated the scene 
graph nodes and before we start the cull traversal we'll manually position the 
camera that follows the tank. The other camera will present the default viewer 
and interface. The matrix that is returned from our transform accumulator is 
expressed in Y up terms. The camera that is used to position the camera is 
expecting a matrix in Z up terms so we'll need to rotate the matrix. The code 
to achieve this follows:

   while( !viewer.done() )
   {
  // wait for all cull and draw threads to complete.
  viewer.sync();

  // update the scene by traversing it with the the update visitor which 
will
  // call all node update callbacks and animations.
  viewer.update();

  // Get a handle to the follower camera. Use camera class method to set
  // the matrix to the world coordinate position of our tank follower.
  // Rotate the matrix from Y up to Z up. 
  viewer.getCameraConfig()-
 findCamera(tankFollowerCamera)-setViewByMatrix( 
 Producer::Matrix(tankFollowerWorldCoords-getMatrix().ptr() ) *
 Producer::Matrix::rotate( -M_PI/2.0, 1, 0, 0 ) );

  // fire off the cull and draw traversals of the scene.
  viewer.frame();
   }

   // wait for all cull and draw threads to complete before exit.
   viewer.sync();

   return 0;
}



--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29088#29088





___
osg-users mailing list
osg-users@lists.openscenegraph.org

Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Robert Osfield
Hi Brad,

On Thu, Jun 17, 2010 at 2:50 PM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:
 Just checked out a fresh copy of both osg and vpb, re-created the projects 
 and did a full build of both. Unfortunately I still have the same problem. 
 Looks like I will need to fix the problem that occurring with my OS/compiler. 
 Can you suggest any areas that I should look at first? I am guessing the 
 issue will be in osgTerrain serializer plug-in.

Does the osgdem -s .. --so .. test produce a source file with the
vpb::DatabaseBuilder entry in it?  Could you post the result, it might
give a small hint to what might be going wrong.

Is there any chance you are linking to slighty older version of the
OSG/plugins are runtime?

Could you set OSG_NOTIFY_LEVEL to DEBUG and then re-run the test:

osgdem -s build_master.source --so test.source

And post the results, there is chance it might give a clue to what is
going amiss.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] multiple cameras:: example using viewer

2010-06-17 Thread nikhil raprolu simha
Thanks Skylark,


Can some one tell me what is the analogue for Producer::CameraConfig.

Thanks in Advance.




nikhil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29092#29092





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] multiple cameras:: example using viewer

2010-06-17 Thread Robert Osfield
Hi Nikhil,

On Thu, Jun 17, 2010 at 3:11 PM, nikhil raprolu simha
r.nikhilsi...@gmail.com wrote:
 Can some one tell me what is the analogue for Producer::CameraConfig.

There isn't an equivalent, you just set up the slave Camera's directly
on the View. Loosely you can view a Producer::CameraGroup as a
osgViewer::View, and osgProducer::Viewer is equivalent to
osgViewer::Viewer.

FYI, you can load Producer .cfg files directly in osgviewer by using
the -c cameraconfig.cfg, you can also load the configuration directly
on the View.

As JS suggests it would be worth learning what the Producer based code
does and then separate learning how osgViewer::Viewer relates to
cameras by looking at the examples.  osgViewer::Viewer is pretty
similar to osgProducer::Viewer, just a little more flexible and less
of everything and the kitchen sink design - it's more pared down.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Christiansen, Brad
Hi,

 Does the osgdem -s .. --so .. test produce a source file with the
 vpb::DatabaseBuilder entry in it?

Yes. The DatabaseBuilder is there but there are no color layers.

For the results that follow, all the binaries I have just built from a fresh 
checkout are in D:\osg\vpb-bin\bin. Before the run, in the shell, I set the 
PATH to only include that directory. It appears that that is where the DLLs are 
getting loaded from. However, it isn't finding osgterrainrd.dll or orgrd.dll. 
All my OSG DLLs have been created using the naming convention: osg66-osgrd.dll, 
osg66-osgTerrainrd.dll etc (I built release with debug binaries). Not sure if 
this has anything to do with it.

I ran this with notify set to debug:
osgdem -s build_master.source --so test.source  out.txt

The results are attached, out.txt is the console output.

Thanks for your help.

Cheers,

Brad




-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Thursday, 17 June 2010 10:04 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
correctly.

Hi Brad,

On Thu, Jun 17, 2010 at 2:50 PM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:
 Just checked out a fresh copy of both osg and vpb, re-created the projects 
 and did a full build of both. Unfortunately I still have the same problem. 
 Looks like I will need to fix the problem that occurring with my OS/compiler. 
 Can you suggest any areas that I should look at first? I am guessing the 
 issue will be in osgTerrain serializer plug-in.

Does the osgdem -s .. --so .. test produce a source file with the
vpb::DatabaseBuilder entry in it?  Could you post the result, it might
give a small hint to what might be going wrong.

Is there any chance you are linking to slighty older version of the
OSG/plugins are runtime?

Could you set OSG_NOTIFY_LEVEL to DEBUG and then re-run the test:

osgdem -s build_master.source --so test.source

And post the results, there is chance it might give a clue to what is
going amiss.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



DISCLAIMER:---
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
copying, alteration, storage or distribution of, or reliance on, this message is
strictly prohibited. No part may be reproduced, adapted or transmitted without 
the
written permission of the owner. If you have received this transmission in 
error, or
are not an authorised recipient, please immediately notify the sender by return 
email,
delete this message and all copies from your e-mail system, and destroy any 
printed
copies. Receipt by anyone other than the intended recipient should not be 
deemed a
waiver of any privilege or protection. Thales Australia does not warrant or 
represent
that this e-mail or any documents, files and previous e-mail messages attached 
are
error or virus free.
--

GraphicsContext::setWindowingSystemInterface() 02C229A8 015C4978
itr='D:\osg\vpb-bin\bin'
FindFileInPath() : trying D:\osg\vpb-bin\bin\osgPlugins-2.9.8\osgdb_osgrd.dll 
...
FindFileInPath() : USING D:\osg\vpb-bin\bin\osgPlugins-2.9.8\osgdb_osgrd.dll
Opened DynamicLibrary osgPlugins-2.9.8/osgdb_osgrd.dll
FindFileInPath(build_master.source): returning build_master.source
VPBReaderWriter::readNode()
FindFileInPath(build_master.source): returning build_master.source
readNode_new()
   found ReaderWriter, readNode_new()
itr='D:\osg\vpb-bin\bin'
FindFileInPath() : trying D:\osg\vpb-bin\bin\osgTerrainrd.dll ...
itr='D:\osg\vpb-bin\bin'
FindFileInPath() : trying D:\osg\vpb-bin\bin\osgTerrainrd.dll ...
itr='C:\WINDOWS\system32'
FindFileInPath() : trying C:\WINDOWS\system32\osgTerrainrd.dll ...
itr='C:\WINDOWS\System'
FindFileInPath() : trying C:\WINDOWS\system\osgTerrainrd.dll ...
itr='C:\WINDOWS'
FindFileInPath() : trying C:\WINDOWS\osgTerrainrd.dll ...
itr='.'
FindFileInPath() : trying D:\osg\test\osgTerrainrd.dll ...
itr='D:\osg\vpb-bin\bin'
FindFileInPath() : trying D:\osg\vpb-bin\bin\osgTerrainrd.dll ...
itr='D:/osg/vpb-bin/lib/osgPlugins-2.9.8'
FindFileInPath() : trying D:\osg\vpb-bin\lib\osgPlugins-2.9.8\osgTerrainrd.dll 
...
DynamicLibrary::failed loading osgTerrainrd.dll
itr='D:\osg\vpb-bin\bin'
FindFileInPath() : trying 
D:\osg\vpb-bin\bin\osgPlugins-2.9.8\osgdb_serializers_osgterrainrd.dll ...
FindFileInPath() : USING 

Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Christiansen, Brad
Hi,

As a quick test I renamed of copy of osg66-osgrd.dll and osg66-orgTerrainrd.dll 
to osgrd.dll and osgterrain.dll. Thr output is cleaner but the result is the 
same (test.source still has no laters). I have attached the output.

Cheers,

Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christiansen, 
Brad
Sent: Thursday, 17 June 2010 10:25 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
correctly.

Hi,

 Does the osgdem -s .. --so .. test produce a source file with the 
 vpb::DatabaseBuilder entry in it?

Yes. The DatabaseBuilder is there but there are no color layers.

For the results that follow, all the binaries I have just built from a fresh 
checkout are in D:\osg\vpb-bin\bin. Before the run, in the shell, I set the 
PATH to only include that directory. It appears that that is where the DLLs are 
getting loaded from. However, it isn't finding osgterrainrd.dll or orgrd.dll. 
All my OSG DLLs have been created using the naming convention: osg66-osgrd.dll, 
osg66-osgTerrainrd.dll etc (I built release with debug binaries). Not sure if 
this has anything to do with it.

I ran this with notify set to debug:
osgdem -s build_master.source --so test.source  out.txt

The results are attached, out.txt is the console output.

Thanks for your help.

Cheers,

Brad




-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Thursday, 17 June 2010 10:04 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
correctly.

Hi Brad,

On Thu, Jun 17, 2010 at 2:50 PM, Christiansen, Brad 
brad.christian...@thalesgroup.com.au wrote:
 Just checked out a fresh copy of both osg and vpb, re-created the projects 
 and did a full build of both. Unfortunately I still have the same problem. 
 Looks like I will need to fix the problem that occurring with my OS/compiler. 
 Can you suggest any areas that I should look at first? I am guessing the 
 issue will be in osgTerrain serializer plug-in.

Does the osgdem -s .. --so .. test produce a source file with the 
vpb::DatabaseBuilder entry in it?  Could you post the result, it might give a 
small hint to what might be going wrong.

Is there any chance you are linking to slighty older version of the OSG/plugins 
are runtime?

Could you set OSG_NOTIFY_LEVEL to DEBUG and then re-run the test:

osgdem -s build_master.source --so test.source

And post the results, there is chance it might give a clue to what is going 
amiss.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



DISCLAIMER:---
This e-mail transmission and any documents, files and previous e-mail messages 
attached to it are private and confidential. They may contain proprietary or 
copyright material or information that is subject to legal professional 
privilege. They are for the use of the intended recipient only.  Any 
unauthorised viewing, use, disclosure, copying, alteration, storage or 
distribution of, or reliance on, this message is strictly prohibited. No part 
may be reproduced, adapted or transmitted without the written permission of the 
owner. If you have received this transmission in error, or are not an 
authorised recipient, please immediately notify the sender by return email, 
delete this message and all copies from your e-mail system, and destroy any 
printed copies. Receipt by anyone other than the intended recipient should not 
be deemed a waiver of any privilege or protection. Thales Australia does not 
warrant or represent that this e-mail or any documents, files and previous 
e-mail messages attached are error or virus free.
--




DISCLAIMER:---
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
copying, alteration, storage or distribution of, or reliance on, this message is
strictly prohibited. No part may be reproduced, adapted or transmitted without 
the
written permission of the owner. If you have received this transmission in 
error, or
are not an authorised recipient, please immediately notify the sender by return 
email,
delete this message and all copies from your e-mail system, and destroy any 
printed
copies. Receipt by anyone other than the 

Re: [osg-users] Read texels from texture in GPU memory

2010-06-17 Thread Martin Aasen
Hi again,

I appologize in advance for asking stupid questions;)

By changing the line 
cam-setRenderOrder(osg::Camera::PRE_RENDER);
to
cam-setRenderOrder(osg::Camera::POST_RENDER);
everything works as expected (src in my previous post).

I have the following questions:

1: Is this correct behaviour? Does a camera have to be POST_RENDER for buffer 
read operations to take place in the final draw callback without errors. I was 
getting the correct results before, eventhough an error was thrown...

2: Is there any way I can get the value (a texel from a GPU resident texture) 
in the update traversal and in the same frame as I request it? The way I do it 
now I am always one frame behind, since the value is requested in the update 
traversal and fetched in the draw traversal.

Thanks!

Martin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29096#29096





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Robert Osfield
Hi Brad,

The output all looks fine, the serializers for osgTerrain do seem to
be loading, but for some reason are failing.

Could you try a release build to see if that produces any different
results.  I'm clutching at straws though, I believe the code in
question is identical for both platforms and should work fine.

Do you have any unix systems you could try a test build and run on?

Robert.

On Thu, Jun 17, 2010 at 3:58 PM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:
 Hi,

 As a quick test I renamed of copy of osg66-osgrd.dll and 
 osg66-orgTerrainrd.dll to osgrd.dll and osgterrain.dll. Thr output is cleaner 
 but the result is the same (test.source still has no laters). I have attached 
 the output.

 Cheers,

 Brad

 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of 
 Christiansen, Brad
 Sent: Thursday, 17 June 2010 10:25 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
 correctly.

 Hi,

 Does the osgdem -s .. --so .. test produce a source file with the
 vpb::DatabaseBuilder entry in it?

 Yes. The DatabaseBuilder is there but there are no color layers.

 For the results that follow, all the binaries I have just built from a fresh 
 checkout are in D:\osg\vpb-bin\bin. Before the run, in the shell, I set the 
 PATH to only include that directory. It appears that that is where the DLLs 
 are getting loaded from. However, it isn't finding osgterrainrd.dll or 
 orgrd.dll. All my OSG DLLs have been created using the naming convention: 
 osg66-osgrd.dll, osg66-osgTerrainrd.dll etc (I built release with debug 
 binaries). Not sure if this has anything to do with it.

 I ran this with notify set to debug:
 osgdem -s build_master.source --so test.source  out.txt

 The results are attached, out.txt is the console output.

 Thanks for your help.

 Cheers,

 Brad




 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert 
 Osfield
 Sent: Thursday, 17 June 2010 10:04 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
 correctly.

 Hi Brad,

 On Thu, Jun 17, 2010 at 2:50 PM, Christiansen, Brad 
 brad.christian...@thalesgroup.com.au wrote:
 Just checked out a fresh copy of both osg and vpb, re-created the projects 
 and did a full build of both. Unfortunately I still have the same problem. 
 Looks like I will need to fix the problem that occurring with my 
 OS/compiler. Can you suggest any areas that I should look at first? I am 
 guessing the issue will be in osgTerrain serializer plug-in.

 Does the osgdem -s .. --so .. test produce a source file with the 
 vpb::DatabaseBuilder entry in it?  Could you post the result, it might give a 
 small hint to what might be going wrong.

 Is there any chance you are linking to slighty older version of the 
 OSG/plugins are runtime?

 Could you set OSG_NOTIFY_LEVEL to DEBUG and then re-run the test:

 osgdem -s build_master.source --so test.source

 And post the results, there is chance it might give a clue to what is going 
 amiss.

 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail 
 messages attached to it are private and confidential. They may contain 
 proprietary or copyright material or information that is subject to legal 
 professional privilege. They are for the use of the intended recipient only.  
 Any unauthorised viewing, use, disclosure, copying, alteration, storage or 
 distribution of, or reliance on, this message is strictly prohibited. No part 
 may be reproduced, adapted or transmitted without the written permission of 
 the owner. If you have received this transmission in error, or are not an 
 authorised recipient, please immediately notify the sender by return email, 
 delete this message and all copies from your e-mail system, and destroy any 
 printed copies. Receipt by anyone other than the intended recipient should 
 not be deemed a waiver of any privilege or protection. Thales Australia does 
 not warrant or represent that this e-mail or any documents, files and 
 previous e-mail messages attached are error or virus free.
 --




 DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail messages
 attached to it are private and confidential. They may contain proprietary or 
 copyright
 material or information that is subject to legal professional 

Re: [osg-users] osgviewer error messages:-

2010-06-17 Thread Sanat Talmaki
@Alberto
You were spot on. It was the remote desktop that was doing that. Tried it on 
the host machine and nothing of that popped up.

I wonder why it does that on Remote Desktop, did you manage to find out ?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29099#29099





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Developer release of OSG and VPB imminent, please test.

2010-06-17 Thread Robert Osfield
Hi All,

I would like tag developer releases of the OSG and VPB tomorrow so
testing across compile and runtime platforms would be very useful.  It
looks like there is problem with VPB under Windows due to adoption of
the new osgDB serializers, ideally I'd like to get this solved for the
dev release, I can't reproduce the problem myself so will have rely
upon Windows experts to dive in here.

Thanks you your assistance.
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [vpb] Required File Formats for VPBMaster

2010-06-17 Thread Sanat Talmaki
Hi,

I recently downloaded VPB and after looking at a batchfile to build a terrain  
in OSGGIS:
@echo off
vpbmaster ^
   --terrain ^
   -t ..\source\boston-10m-utm19n-meters.tif ^
   -d ..\source\boston-dem-downtown-5m-utm19n-meters.tif ^
   -o out.ive -v 3


I obseved that I needed the following files:
1) tif file for dem
2) tif file for orthoimage

So I tried to get the data from the National Map Seamless Server. 
http://seamless.usgs.gov/website/seamless/viewer.htm?startbottom=5.0starttop=85.0startleft=-170startright=-60.0limitbottom=-85.0limittop=85.0limitleft=-179.5limitright=179.5

While the satellite image folder that I downloaded came with a tif, aux, prj, 
tfw file;
The elevation folder that I downloaded came with the following:
aux, prj, shp, shx and a bunch of adf files. (No TIF file)

So without a tif file, how can I use vpbmaster ?

I know the procedure to build a 3d terrain using ArcGIS but I wanted to use a 
batch command like above to create a terrain and drape it with the image using 
vpb and vpbmaster in particular.

Can anyone guide me as to what I need to do ?

Thanks

Sanat

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29100#29100





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] normals in geometry shader

2010-06-17 Thread Trajce (Nick) Nikolov
Please ignore this question. After researching and understanding how things
works it is rather non-sense ;-)

-Nick


On Wed, Jun 16, 2010 at 11:25 PM, Trajce (Nick) Nikolov 
nikolov.tra...@gmail.com wrote:

 Hello community,

 till now, I have had some experience with geometry shaders, but not too
 serious. I am after generating normals for the vertices generated in the
 geometry shader. I did some research on this but not very happy with what I
 have found so far. Any hints from you?

 Thanks a lot

 -Nick

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Visual Studio 2010 and VPB

2010-06-17 Thread D.J. Caldwell
Hi Brad.

We have only been using VPB 0.9.10 with OSG 2.8.3 for a little while,
but we found using GDAL 1.6 worked, but 1.7 did not.  I'm not sure
what the exact problem was, but I think we had a runtime error (I
know, you're experiencing linker problems) having to do with mapping
the texture to the geometry.

Another caveat, we're still using VS2005, but we're hoping to upgrade soon!  :)

Anyway, I thought you might be interested in the runtime problem, and
how we worked around it, in case you run into similar problems.

Good luck...

D.J.

On Wed, Jun 16, 2010 at 10:35 PM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:
 Hi,



 Thanks for the suggestions. I have checked that both are built with the same
 options, including the 3rd part dependencies, and as far as I can tell, they
 all are. I did end up using the /FORCE:MULTIPLE option but I really don’t
 like just ignoring the issue.

 For now I have moved back to VS 2008 as I have run out of time to get things
 working. Hopefully I will get a chance to look at it again soon as this was
 the final hurdle to having everything building correctly.



 Cheers,



 Brad



 From: osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Cory
 Riddell
 Sent: Wednesday, 16 June 2010 11:37 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] Visual Studio 2010 and VPB



 On 6/16/2010 3:10 AM, Christiansen, Brad wrote:

 Hi,



 I have managed to build OSG (and 3rd party dependencies) using Visual Studio
 2010 but I have hit a snag with VPB. The error has been reported before by
 Matrin Naylor, but there didn’t seem to be any resolution. The error is:



 1osgDB.lib(osgDB.dll) : error LNK2005: public: void __thiscall
 std::basic_ofstreamchar,struct std::char_traitschar ::`vbase
 destructor'(void)
 (??_d?$basic_ofstr...@du?$char_traits@d...@std@@@std@@QAEXXZ) already defined
 in SpatialProperties.obj

 1 Creating library
 D:/adi_vsfz/projects/OSG/osg-trunk-2010/vpb-build/lib/Release/vpb.lib and
 object D:/adi_vsfz/projects/OSG/osg-trunk-2010/vpb-build/lib/Release/vpb.exp

 1D:\adi_vsfz\projects\OSG\osg-trunk-2010\vpb-build\lib\Release\vpb.dll :
 fatal error LNK1169: one or more multiply defined symbols found

 You can always tell the linker to ignore the problem with /FORCE:MULTIPLE.
 I'd only do that as a last resort though because there might actually be a
 problem here.

 Are both projects compiled with VS2010 with the same settings?

 Cory

 DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail
 messages attached to it are private and confidential. They may contain
 proprietary or copyright material or information that is subject to legal
 professional privilege. They are for the use of the intended recipient only.
 Any unauthorised viewing, use, disclosure, copying, alteration, storage or
 distribution of, or reliance on, this message is strictly prohibited. No
 part may be reproduced, adapted or transmitted without the written
 permission of the owner. If you have received this transmission in error, or
 are not an authorised recipient, please immediately notify the sender by
 return email, delete this message and all copies from your e-mail system,
 and destroy any printed copies. Receipt by anyone other than the intended
 recipient should not be deemed a waiver of any privilege or protection.
 Thales Australia does not warrant or represent that this e-mail or any
 documents, files and previous e-mail messages attached are error or virus
 free.
 --
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Best way to get transformation animations from 3dsmax into osgAnimation?

2010-06-17 Thread Raymond de Vries

Hi list,

I've got models which are modeled in 3dsmax and are exported with OSGExp 
to .ive or .osg. I have (transformation) animations in 3dsmax (8 or 9) 
which are then exported to AnimationPathCallbacks. When I load these in 
osg they are animating nicely. However, I would like to have detailed 
control over the animation playback and I have been struggling with the 
AnimationPathCallback, and could not make it work properly. Also, I 
would like to use the more advanced osgAnimation (I like it a lot so far).


Now I would like to use osgAnimation instead of the 
AnimationPathCallback. I have been trying the fbx format but I get very 
different results with the same scene (OSGExp compared to fbx exporter 
in 3dsmax 8/9) so currently I would like to take one step at the time, 
and prefer to use OSGExp and still convert to osgAnimation animations.


Does anyone have a working strategy how to accomplish this? E.g. is 
there a straight forward way to convert AnimationPathCallbacks into 
osgAnimation?


Cheers
Raymond

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Webcam image as texture using OpenCV ‏

2010-06-17 Thread Mourad Boufarguine
Hi Charlie,

Hi,

 I am looking a way to use the image grabbed from a webcam using OpenCV and
 then use that image as a texture in a osg app.

 Taking the osgmovie example, I already tried to create a subclass of the
 ImageStream class but Im a little lost trying to do it this way so far I
 already know how to convert an IplImage to an osg::Image and I'm able to
 take ONE image from the webcam this way, but now I have no idea in how to do
 update the image every 1/30 second to create the live stream.


You need to call the method dirty() whenever a new frame is grabbed to
tell osg to update the texture associated with the osg::image object.

Mourad
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPBMaster failing - build_master.source not loaded correctly.

2010-06-17 Thread Christiansen, Brad
Hi Robert,

I will try a release build just to confirm the results are the same. I don't 
have a functioning Unix system at home at the moment (my Linux server just 
died) but I will try and get one up and running. Failing that, I have one at 
work I can use. I am off for a short break this morning but I will get back 
onto it Tuesday next week when I am back.

Thanks again,

Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Thursday, 17 June 2010 11:06 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
correctly.

Hi Brad,

The output all looks fine, the serializers for osgTerrain do seem to
be loading, but for some reason are failing.

Could you try a release build to see if that produces any different
results.  I'm clutching at straws though, I believe the code in
question is identical for both platforms and should work fine.

Do you have any unix systems you could try a test build and run on?

Robert.

On Thu, Jun 17, 2010 at 3:58 PM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:
 Hi,

 As a quick test I renamed of copy of osg66-osgrd.dll and 
 osg66-orgTerrainrd.dll to osgrd.dll and osgterrain.dll. Thr output is cleaner 
 but the result is the same (test.source still has no laters). I have attached 
 the output.

 Cheers,

 Brad

 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of 
 Christiansen, Brad
 Sent: Thursday, 17 June 2010 10:25 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
 correctly.

 Hi,

 Does the osgdem -s .. --so .. test produce a source file with the
 vpb::DatabaseBuilder entry in it?

 Yes. The DatabaseBuilder is there but there are no color layers.

 For the results that follow, all the binaries I have just built from a fresh 
 checkout are in D:\osg\vpb-bin\bin. Before the run, in the shell, I set the 
 PATH to only include that directory. It appears that that is where the DLLs 
 are getting loaded from. However, it isn't finding osgterrainrd.dll or 
 orgrd.dll. All my OSG DLLs have been created using the naming convention: 
 osg66-osgrd.dll, osg66-osgTerrainrd.dll etc (I built release with debug 
 binaries). Not sure if this has anything to do with it.

 I ran this with notify set to debug:
 osgdem -s build_master.source --so test.source  out.txt

 The results are attached, out.txt is the console output.

 Thanks for your help.

 Cheers,

 Brad




 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert 
 Osfield
 Sent: Thursday, 17 June 2010 10:04 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] VPBMaster failing - build_master.source not loaded 
 correctly.

 Hi Brad,

 On Thu, Jun 17, 2010 at 2:50 PM, Christiansen, Brad 
 brad.christian...@thalesgroup.com.au wrote:
 Just checked out a fresh copy of both osg and vpb, re-created the projects 
 and did a full build of both. Unfortunately I still have the same problem. 
 Looks like I will need to fix the problem that occurring with my 
 OS/compiler. Can you suggest any areas that I should look at first? I am 
 guessing the issue will be in osgTerrain serializer plug-in.

 Does the osgdem -s .. --so .. test produce a source file with the 
 vpb::DatabaseBuilder entry in it?  Could you post the result, it might give a 
 small hint to what might be going wrong.

 Is there any chance you are linking to slighty older version of the 
 OSG/plugins are runtime?

 Could you set OSG_NOTIFY_LEVEL to DEBUG and then re-run the test:

 osgdem -s build_master.source --so test.source

 And post the results, there is chance it might give a clue to what is going 
 amiss.

 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail 
 messages attached to it are private and confidential. They may contain 
 proprietary or copyright material or information that is subject to legal 
 professional privilege. They are for the use of the intended recipient only.  
 Any unauthorised viewing, use, disclosure, copying, alteration, storage or 
 distribution of, or reliance on, this message is strictly prohibited. No part 
 may be reproduced, adapted or transmitted without the written permission of 
 the owner. If you have received this transmission in error, or are not an 
 authorised recipient, please immediately notify the sender by return email, 
 delete this message and all copies from your e-mail system, and destroy any 
 printed 

Re: [osg-users] Visual Studio 2010 and VPB

2010-06-17 Thread Christiansen, Brad
Hi,

I am interested as I would like to move to the latest gdal version. I have 
reverted back to 1.6 for now for different reasons but would like to upgrade. 
Please do share hw you worked around the runtime problems.

Cheers,

Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of D.J. Caldwell
Sent: Friday, 18 June 2010 1:26 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Visual Studio 2010 and VPB

Hi Brad.

We have only been using VPB 0.9.10 with OSG 2.8.3 for a little while,
but we found using GDAL 1.6 worked, but 1.7 did not.  I'm not sure
what the exact problem was, but I think we had a runtime error (I
know, you're experiencing linker problems) having to do with mapping
the texture to the geometry.

Another caveat, we're still using VS2005, but we're hoping to upgrade soon!  :)

Anyway, I thought you might be interested in the runtime problem, and
how we worked around it, in case you run into similar problems.

Good luck...

D.J.

On Wed, Jun 16, 2010 at 10:35 PM, Christiansen, Brad
brad.christian...@thalesgroup.com.au wrote:
 Hi,



 Thanks for the suggestions. I have checked that both are built with the same
 options, including the 3rd part dependencies, and as far as I can tell, they
 all are. I did end up using the /FORCE:MULTIPLE option but I really don't
 like just ignoring the issue.

 For now I have moved back to VS 2008 as I have run out of time to get things
 working. Hopefully I will get a chance to look at it again soon as this was
 the final hurdle to having everything building correctly.



 Cheers,



 Brad



 From: osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Cory
 Riddell
 Sent: Wednesday, 16 June 2010 11:37 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] Visual Studio 2010 and VPB



 On 6/16/2010 3:10 AM, Christiansen, Brad wrote:

 Hi,



 I have managed to build OSG (and 3rd party dependencies) using Visual Studio
 2010 but I have hit a snag with VPB. The error has been reported before by
 Matrin Naylor, but there didn't seem to be any resolution. The error is:



 1osgDB.lib(osgDB.dll) : error LNK2005: public: void __thiscall
 std::basic_ofstreamchar,struct std::char_traitschar ::`vbase
 destructor'(void)
 (??_d?$basic_ofstr...@du?$char_traits@d...@std@@@std@@QAEXXZ) already defined
 in SpatialProperties.obj

 1 Creating library
 D:/adi_vsfz/projects/OSG/osg-trunk-2010/vpb-build/lib/Release/vpb.lib and
 object D:/adi_vsfz/projects/OSG/osg-trunk-2010/vpb-build/lib/Release/vpb.exp

 1D:\adi_vsfz\projects\OSG\osg-trunk-2010\vpb-build\lib\Release\vpb.dll :
 fatal error LNK1169: one or more multiply defined symbols found

 You can always tell the linker to ignore the problem with /FORCE:MULTIPLE.
 I'd only do that as a last resort though because there might actually be a
 problem here.

 Are both projects compiled with VS2010 with the same settings?

 Cory

 DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail
 messages attached to it are private and confidential. They may contain
 proprietary or copyright material or information that is subject to legal
 professional privilege. They are for the use of the intended recipient only.
 Any unauthorised viewing, use, disclosure, copying, alteration, storage or
 distribution of, or reliance on, this message is strictly prohibited. No
 part may be reproduced, adapted or transmitted without the written
 permission of the owner. If you have received this transmission in error, or
 are not an authorised recipient, please immediately notify the sender by
 return email, delete this message and all copies from your e-mail system,
 and destroy any printed copies. Receipt by anyone other than the intended
 recipient should not be deemed a waiver of any privilege or protection.
 Thales Australia does not warrant or represent that this e-mail or any
 documents, files and previous e-mail messages attached are error or virus
 free.
 --
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



DISCLAIMER:---
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised