Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-03 Thread Michael Weiblen
Hi Bob,
(gotta realize that Gordon and I have worked at Multigen-Paradigm, so
we have a unique perspective on the Flight format ;-)
-- mew


On Wed, Mar 2, 2011 at 2:56 PM, Buckley, Bob CTR MDA/DES
bob.buckley@mda.mil wrote:
 Wow, seemed to be pretty straight forward stuff to me.
 And the specs were always through and complete.
 It's the versioning I had trouble with.

 SDK available for it, too:
 http://www.presagis.com/products_services/standards/openflight/


 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Tomlinson, 
 Gordon
 Sent: Wednesday, March 02, 2011 6:10 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] Getting height data of a terrain(flt file)

 You can get the latest spec for OpenFlight here 
 http://www.presagis.com/products_services/standards/openflight/


 Chris I always found a good aged bottle of single Malt stopped me crying when 
 working with OpenFlight or a goo firkin of real ale :)


 Gordon Tomlinson
 3D Technology
 System Engineering Consultant
 Overwatch®
 An Operating Unit of Textron Systems
 __
 WARNING: Documents that can be viewed, printed or retrieved from this E-Mail 
 may contain technical data whose export is restricted by the Arms Export 
 Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export 
 Administration Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. 
 and which may not be exported, released or disclosed to non-U.S. persons 
 (i.e. persons who are not U.S. citizens or lawful permanent residents [green 
 card holders]) inside or outside the United States, without first obtaining 
 an export license.  Violations of these export laws are subject to severe 
 civil, criminal and administrative penalties.

 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 
 'Xenon' Hanson
 Sent: Tuesday, March 01, 2011 10:53 PM
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] Getting height data of a terrain(flt file)

 On 3/1/2011 7:54 PM, Mukund Keshav wrote:
 Hi Robert,
 Thanks for the reply. Could you please tell where i can find the exact file 
 format for flt files?

  FLT isn't really an OSG format, it's a MultiGen format. Documentation on it 
 is very poor
 and sparse. I wouldn't pursue this unless you REALLY need to look into the 
 format. Grown
 men have been known to be reduced to tears trying to understand FLT.

 Thanks,
 Mukund

 --
 Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
 http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
 Contracting.
    There is no Truth. There is only Perception. To Perceive is to Exist. - 
 Xen
 ___
 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 mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
Mike Weiblen -- Black Hawk, Colorado USA -- http://mew.cx/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-03 Thread Buckley, Bob CTR MDA/DES
Ahhh.
Marcus was da man for all us end users.

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Michael Weiblen
Sent: Thursday, March 03, 2011 8:16 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Getting height data of a terrain(flt file)

Hi Bob,
(gotta realize that Gordon and I have worked at Multigen-Paradigm, so
we have a unique perspective on the Flight format ;-)
-- mew


On Wed, Mar 2, 2011 at 2:56 PM, Buckley, Bob CTR MDA/DES
bob.buckley@mda.mil wrote:
 Wow, seemed to be pretty straight forward stuff to me.
 And the specs were always through and complete.
 It's the versioning I had trouble with.

 SDK available for it, too:
 http://www.presagis.com/products_services/standards/openflight/


 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Tomlinson, 
 Gordon
 Sent: Wednesday, March 02, 2011 6:10 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] Getting height data of a terrain(flt file)

 You can get the latest spec for OpenFlight here 
 http://www.presagis.com/products_services/standards/openflight/


 Chris I always found a good aged bottle of single Malt stopped me crying when 
 working with OpenFlight or a goo firkin of real ale :)


 Gordon Tomlinson
 3D Technology
 System Engineering Consultant
 Overwatch®
 An Operating Unit of Textron Systems
 __
 WARNING: Documents that can be viewed, printed or retrieved from this E-Mail 
 may contain technical data whose export is restricted by the Arms Export 
 Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export 
 Administration Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. 
 and which may not be exported, released or disclosed to non-U.S. persons 
 (i.e. persons who are not U.S. citizens or lawful permanent residents [green 
 card holders]) inside or outside the United States, without first obtaining 
 an export license.  Violations of these export laws are subject to severe 
 civil, criminal and administrative penalties.

 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 
 'Xenon' Hanson
 Sent: Tuesday, March 01, 2011 10:53 PM
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] Getting height data of a terrain(flt file)

 On 3/1/2011 7:54 PM, Mukund Keshav wrote:
 Hi Robert,
 Thanks for the reply. Could you please tell where i can find the exact file 
 format for flt files?

  FLT isn't really an OSG format, it's a MultiGen format. Documentation on it 
 is very poor
 and sparse. I wouldn't pursue this unless you REALLY need to look into the 
 format. Grown
 men have been known to be reduced to tears trying to understand FLT.

 Thanks,
 Mukund

 --
 Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
 http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
 Contracting.
    There is no Truth. There is only Perception. To Perceive is to Exist. - 
 Xen
 ___
 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 mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
Mike Weiblen -- Black Hawk, Colorado USA -- http://mew.cx/
___
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] Getting height data of a terrain(flt file)

2011-03-02 Thread Tomlinson, Gordon
You can get the latest spec for OpenFlight here 
http://www.presagis.com/products_services/standards/openflight/


Chris I always found a good aged bottle of single Malt stopped me crying when 
working with OpenFlight or a goo firkin of real ale :)


Gordon Tomlinson
3D Technology
System Engineering Consultant
Overwatch®
An Operating Unit of Textron Systems
__
WARNING: Documents that can be viewed, printed or retrieved from this E-Mail 
may contain technical data whose export is restricted by the Arms Export 
Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export Administration 
Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. and which may not 
be exported, released or disclosed to non-U.S. persons (i.e. persons who are 
not U.S. citizens or lawful permanent residents [green card holders]) inside 
or outside the United States, without first obtaining an export license.  
Violations of these export laws are subject to severe civil, criminal and 
administrative penalties.

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 'Xenon' 
Hanson
Sent: Tuesday, March 01, 2011 10:53 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Getting height data of a terrain(flt file)

On 3/1/2011 7:54 PM, Mukund Keshav wrote:
 Hi Robert,
 Thanks for the reply. Could you please tell where i can find the exact file 
 format for flt files? 

  FLT isn't really an OSG format, it's a MultiGen format. Documentation on it 
is very poor
and sparse. I wouldn't pursue this unless you REALLY need to look into the 
format. Grown
men have been known to be reduced to tears trying to understand FLT.

 Thanks,
 Mukund

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
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] Getting height data of a terrain(flt file)

2011-03-02 Thread Mukund Keshav
Thanks Chris, Andreas, Gordon.

@Andreas.


 However, if you want to extract a regular terrain height raster from an 
 OpenFlight database, I would say the best solution is to write an OSG 
 application that simply intersects vertically with the terrain at equal 
 distances and puts the result in a raster that you write to disk


The method you suggested sounded interesting. Could you please elaborate a 
little more? i understood till the part where i can make the terrain intersect 
with say equidistant lines. But after that, i did not get you.

Could you please explain?

 

Thanks for the support,
Mukund

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





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


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-02 Thread Andreas Ekstrand
Hi Mukund,

I just meant that you could implement a spatial traverse over the
terrain bounding box with equal steps in X and Y, intersect vertically
with the terrain and put the resulting terrain heights in an image which
you can write to disk with one of the OSG image plugins implementing
writeImage. If an elevation raster on disk is what you want, that is.

Regards,
Andreas


On 2 mar 2011 14:37 Mukund Keshav osgfo...@tevs.eu
osgfo...@tevs.eu wrote:

 Thanks Chris, Andreas, Gordon.
 
 @Andreas.
 
 
  However, if you want to extract a regular terrain height raster from
  an OpenFlight database, I would say the best solution is to write an
  OSG application that simply intersects vertically with the terrain
  at equal distances and puts the result in a raster that you write to
  disk
 
 
 The method you suggested sounded interesting. Could you please
 elaborate a little more? i understood till the part where i can make
 the terrain intersect with say equidistant lines. But after that, i
 did not get you.
 
 Could you please explain?
 
 
 
 Thanks for the support,
 Mukund
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=37250#37250
 
 
 
 
 
 ___
 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] Getting height data of a terrain(flt file)

2011-03-02 Thread Mukund Keshav
Thanks again Andreas,

im pretty new to OSG. im missing something here.


 intersect vertically with the terrain and put the resulting terrain heights 
 in an image
 


Now, how does the intersection yield me a heightmap? or a elevation data?

 
 If an elevation raster on disk is what you want, that is. 



Yes, that is precisely what im looking forward to obtain. But how will 
intersecting the terrain give the pixels which i can use for an elevation 
raster? Could you please exlpain?

Thanks,
Cheers,
Mukund

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





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


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-02 Thread Robert Osfield
Hi Mukend,

On Wed, Mar 2, 2011 at 6:00 PM, Mukund Keshav osgfo...@tevs.eu wrote:
 Now, how does the intersection yield me a heightmap? or a elevation data?

You build yourself a heightmap for a series of height queries.  The
osgintersection and osgpick example provides and examples of how to do
ray intersections with the scene.

 If an elevation raster on disk is what you want, that is.

 Yes, that is precisely what im looking forward to obtain. But how will 
 intersecting the terrain give the pixels which i can use for an elevation 
 raster? Could you please exlpain?

I think you are rather laking in understanding of OpenFlight and
height fields as well the OSG.  Rather than trying to teach you your
job perhaps you might want to try and explain why you think your need
an elevation raster, what are you trying to do here?  It may well be
that you are heading in totally the wrong direction, but I have no way
of knowing other than what you have written in rather confused manner
so far.

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


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-02 Thread Robert Osfield
Hi Mukund,

On Wed, Mar 2, 2011 at 7:16 PM, Mukund Keshav osgfo...@tevs.eu wrote:
 Well, in my application/project, i would want to know the gradients at 
 places, ie how the terrain slope is varying. To do this, won't we need a 
 heightmap? from which we can calculate the varying gradient?

You won't need a height map at all :-)

The ray intersections that
osgUtil::InteresectionVisitor/osgUtil::LineSegmentIntersector provide
intersection information on the position and local normal of the
surface as well as the node path to the geometry leaf being
intersected.

Have a look at the osgintersection and osgpick examples.

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


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-02 Thread Mukund Keshav

 You won't need a height map at all :-) 


Wow! Cool! Was breaking my head over this! il look into them. Thanks a lot!
i just looked into osgIntersection. 

Mukund

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





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


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-02 Thread Buckley, Bob CTR MDA/DES
Wow, seemed to be pretty straight forward stuff to me.
And the specs were always through and complete.
It's the versioning I had trouble with.

SDK available for it, too:
http://www.presagis.com/products_services/standards/openflight/


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Tomlinson, 
Gordon
Sent: Wednesday, March 02, 2011 6:10 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Getting height data of a terrain(flt file)

You can get the latest spec for OpenFlight here 
http://www.presagis.com/products_services/standards/openflight/


Chris I always found a good aged bottle of single Malt stopped me crying when 
working with OpenFlight or a goo firkin of real ale :)


Gordon Tomlinson
3D Technology
System Engineering Consultant
Overwatch®
An Operating Unit of Textron Systems
__
WARNING: Documents that can be viewed, printed or retrieved from this E-Mail 
may contain technical data whose export is restricted by the Arms Export 
Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export Administration 
Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. and which may not 
be exported, released or disclosed to non-U.S. persons (i.e. persons who are 
not U.S. citizens or lawful permanent residents [green card holders]) inside 
or outside the United States, without first obtaining an export license.  
Violations of these export laws are subject to severe civil, criminal and 
administrative penalties.

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 'Xenon' 
Hanson
Sent: Tuesday, March 01, 2011 10:53 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Getting height data of a terrain(flt file)

On 3/1/2011 7:54 PM, Mukund Keshav wrote:
 Hi Robert,
 Thanks for the reply. Could you please tell where i can find the exact file 
 format for flt files? 

  FLT isn't really an OSG format, it's a MultiGen format. Documentation on it 
is very poor
and sparse. I wouldn't pursue this unless you REALLY need to look into the 
format. Grown
men have been known to be reduced to tears trying to understand FLT.

 Thanks,
 Mukund

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
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 mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Getting height data of a terrain(flt file)

2011-03-01 Thread Mukund Keshav
Hello Everyone,

im using .flt files to load terrain. i loaded a sample terrain from the OSG 
data.(Joedirt.flt).

i was wondering if there is a way to obtain the heightfield/heightmap for the 
terrain?

i googled for .flt file format. i could not get any information on it. Could ot 
be a closed format? 

Could anyone please suggest how i could obtain the height data?

Thanks,
Mukund

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





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


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-01 Thread Robert Osfield
Hi Mukend,

OpenFlight just stores terrain and meshes, not height fields.

Robert.

On Tue, Mar 1, 2011 at 7:08 PM, Mukund Keshav osgfo...@tevs.eu wrote:
 Hello Everyone,

 im using .flt files to load terrain. i loaded a sample terrain from the OSG 
 data.(Joedirt.flt).

 i was wondering if there is a way to obtain the heightfield/heightmap for the 
 terrain?

 i googled for .flt file format. i could not get any information on it. Could 
 ot be a closed format?

 Could anyone please suggest how i could obtain the height data?

 Thanks,
 Mukund

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





 ___
 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] Getting height data of a terrain(flt file)

2011-03-01 Thread Mukund Keshav
Hi Robert,

Thanks for the reply. Could you please tell where i can find the exact file 
format for flt files? 

Thanks,
Mukund

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





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


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-01 Thread Chris 'Xenon' Hanson
On 3/1/2011 7:54 PM, Mukund Keshav wrote:
 Hi Robert,
 Thanks for the reply. Could you please tell where i can find the exact file 
 format for flt files? 

  FLT isn't really an OSG format, it's a MultiGen format. Documentation on it 
is very poor
and sparse. I wouldn't pursue this unless you REALLY need to look into the 
format. Grown
men have been known to be reduced to tears trying to understand FLT.

 Thanks,
 Mukund

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Getting height data of a terrain(flt file)

2011-03-01 Thread Andreas Ekstrand
Hi Mukund,

OpenFlight is quite complicated yes, but actually more well documented
nowadays. However, if you want to extract a regular terrain height
raster from an OpenFlight database, I would say the best solution is to
write an OSG application that simply intersects vertically with the
terrain at equal distances and puts the result in a raster that you
write to disk. Also, this would of course be a general file
format-agnostic solution.

Regards,
Andreas


On 2 mar 2011 04:53 Chris 'Xenon' Hanson xe...@alphapixel.com
xe...@alphapixel.com wrote:

 On 3/1/2011 7:54 PM, Mukund Keshav wrote:
  Hi Robert,
  Thanks for the reply. Could you please tell where i can find the
  exact file format for flt files?
 
 FLT isn't really an OSG format, it's a MultiGen format. Documentation
 on it is very poor
 and sparse. I wouldn't pursue this unless you REALLY need to look into
 the format. Grown
 men have been known to be reduced to tears trying to understand FLT.
 
  Thanks,
  Mukund___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org