[osg-users] Convert pov into osg structures

2010-07-07 Thread Domingo López Oller
Hi, I don't know if this is possible. I have some files from GRASS with .pov 
extension and I don't know how to take them for osg.

Someone know the structure of a tga file?

For example:
An edifice:
polygon { 6, 
 464022.599606, 907.085815 , 4087154.860413
 464004.190265, 907.085815 , 4087142.339932
 464004.190265, 937.085815 , 4087142.339932
 464022.599606, 937.085815 , 4087154.860413
 464022.599606, 907.085815 , 4087154.860413
 464022.599606, 907.085815 , 4087154.860413
 
}

A river:
sphere_sweep { linear_spline 45,
 465739.968762, 1906.192505 , 4091458.499904, 3
 465791.468761, 1894.422974 , 4091452.250001, 3
 465821.250068, 1881.933472 , 4091422.250052, 3
 465860.593730, 1856.298828 , 4091382.249947, 3
 465892.375120, 1835.943359 , 4091347.19, 3
 465930.218784, 1816.068726 , 4091315.500061, 3
 465978.812602, 1801.638184 , 4091290.250017, 3
 466026.968878, 1793.834595 , 4091275.750128, 3
 466076.624893, 1786.617188 , 4091255.249991, 3
 466120.343720, 1770.884644 , 4091223.750044, 3
 466161.875093, 1742.642090 , 4091171.500047, 3
 466189.468689, 1710.575928 , 4091081.000114, 3
 466219.343810, 1704.088501 , 4091067.499878, 3
 466268.312628, 1696.643555 , 4091062.999886, 3
 466301.593757, 1684.553589 , 4091025.499950, 3
 466350.250118, 1668.899048 , 4091009.249891, 3
 466384.499888, 1657.378906 , 4091005.71, 3
 466438.343697, 1631.369019 , 4091002.750074, 3
 466494.156318, 1608.742310 , 4090996.499913, 3
 466546.906142, 1593.277832 , 4090985.249932, 3
 466588.906329, 1576.062622 , 4090959.749975, 3
 466618.093736, 1551.168579 , 4090918.999872, 3
 466659.343666, 1524.220459 , 4090896.499910, 3
 466689.250059, 1511.777832 , 4090889.58, 3
 466738.187606, 1496.778687 , 4090879.500111, 3
 466778.656265, 1482.590088 , 4090853.500069, 3
 466812.656122, 1460.842041 , 4090812.249881, 3
 466858.718759, 1430.692139 , 4090788.750007, 3
 466883.218803, 1414.062012 , 4090769.499954, 3
 466930.843722, 1400.582275 , 4090747.500077, 3
 466986.437443, 1388.464478 , 4090744.500082, 3
 467017.156377, 1384.399048 , 4090743.85, 3
 467045.781157, 1377.151001 , 4090732.29, 3
 467085.218633, 1362.496216 , 4090705.75, 3
 467134.499907, 1343.728149 , 4090706.500060, 3
 467193.062609, 1319.315430 , 4090726.500113, 3
 467244.687435, 1301.977539 , 4090737.250008, 3
 467287.91, 1298.845825 , 4090758.59, 3
 467319.781122, 1293.567383 , 4090798.250077, 3
 467364.031306, 1282.700684 , 4090843.499914, 3
 467408.187416, 1266.867310 , 4090874.500034, 3
 467457.843689, 1245.734619 , 4090893.88, 3
 467509.187589, 1222.203979 , 4090897.749994, 3
 467561.56, 1193.638428 , 4090893.750087, 3
 467614.875125, 1189.556030 , 4090899.499905, 3
 
}

Thanks!!

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





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


Re: [osg-users] Convert pov into osg structures

2010-07-07 Thread Gordon Tomlinson
http://en.wikipedia.org/wiki/Truevision_TGA



__
Gordon Tomlinson 

gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com 
www.vis-sim.com
www.gordontomlinson.com
www.PhotographyByGordon.com

__

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Domingo
López Oller
Sent: Wednesday, July 07, 2010 10:10 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Convert pov into osg structures

Hi, I don't know if this is possible. I have some files from GRASS with .pov
extension and I don't know how to take them for osg.

Someone know the structure of a tga file?

For example:
An edifice:
polygon { 6, 
 464022.599606, 907.085815 , 4087154.860413
 464004.190265, 907.085815 , 4087142.339932
 464004.190265, 937.085815 , 4087142.339932
 464022.599606, 937.085815 , 4087154.860413
 464022.599606, 907.085815 , 4087154.860413
 464022.599606, 907.085815 , 4087154.860413
 
}

A river:
sphere_sweep { linear_spline 45,
 465739.968762, 1906.192505 , 4091458.499904, 3
 465791.468761, 1894.422974 , 4091452.250001, 3
 465821.250068, 1881.933472 , 4091422.250052, 3
 465860.593730, 1856.298828 , 4091382.249947, 3
 465892.375120, 1835.943359 , 4091347.19, 3
 465930.218784, 1816.068726 , 4091315.500061, 3
 465978.812602, 1801.638184 , 4091290.250017, 3
 466026.968878, 1793.834595 , 4091275.750128, 3
 466076.624893, 1786.617188 , 4091255.249991, 3
 466120.343720, 1770.884644 , 4091223.750044, 3
 466161.875093, 1742.642090 , 4091171.500047, 3
 466189.468689, 1710.575928 , 4091081.000114, 3
 466219.343810, 1704.088501 , 4091067.499878, 3
 466268.312628, 1696.643555 , 4091062.999886, 3
 466301.593757, 1684.553589 , 4091025.499950, 3
 466350.250118, 1668.899048 , 4091009.249891, 3
 466384.499888, 1657.378906 , 4091005.71, 3
 466438.343697, 1631.369019 , 4091002.750074, 3
 466494.156318, 1608.742310 , 4090996.499913, 3
 466546.906142, 1593.277832 , 4090985.249932, 3
 466588.906329, 1576.062622 , 4090959.749975, 3
 466618.093736, 1551.168579 , 4090918.999872, 3
 466659.343666, 1524.220459 , 4090896.499910, 3
 466689.250059, 1511.777832 , 4090889.58, 3
 466738.187606, 1496.778687 , 4090879.500111, 3
 466778.656265, 1482.590088 , 4090853.500069, 3
 466812.656122, 1460.842041 , 4090812.249881, 3
 466858.718759, 1430.692139 , 4090788.750007, 3
 466883.218803, 1414.062012 , 4090769.499954, 3
 466930.843722, 1400.582275 , 4090747.500077, 3
 466986.437443, 1388.464478 , 4090744.500082, 3
 467017.156377, 1384.399048 , 4090743.85, 3
 467045.781157, 1377.151001 , 4090732.29, 3
 467085.218633, 1362.496216 , 4090705.75, 3
 467134.499907, 1343.728149 , 4090706.500060, 3
 467193.062609, 1319.315430 , 4090726.500113, 3
 467244.687435, 1301.977539 , 4090737.250008, 3
 467287.91, 1298.845825 , 4090758.59, 3
 467319.781122, 1293.567383 , 4090798.250077, 3
 467364.031306, 1282.700684 , 4090843.499914, 3
 467408.187416, 1266.867310 , 4090874.500034, 3
 467457.843689, 1245.734619 , 4090893.88, 3
 467509.187589, 1222.203979 , 4090897.749994, 3
 467561.56, 1193.638428 , 4090893.750087, 3
 467614.875125, 1189.556030 , 4090899.499905, 3
 
}

Thanks!!

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





___
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] Convert pov into osg structures

2010-07-07 Thread Ulrich Hertlein
On 8/07/10 7:09 , Domingo López Oller wrote:
 Hi, I don't know if this is possible. I have some files from GRASS with .pov 
 extension
 and I don't know how to take them for osg.

The 'polygon' looks straight forward enough, but converting higher-level object 
like a
sphere swept along a spline into triangles isn't easily done.

Cheers,
/ulrich

PS: tga files are supported by OSG, but they're image files and so not directly 
related to
pov.

 For example:
 An edifice:
 polygon { 6, 
  464022.599606, 907.085815 , 4087154.860413
  464004.190265, 907.085815 , 4087142.339932
  464004.190265, 937.085815 , 4087142.339932
  464022.599606, 937.085815 , 4087154.860413
  464022.599606, 907.085815 , 4087154.860413
  464022.599606, 907.085815 , 4087154.860413
 }
 
 A river:
 sphere_sweep { linear_spline 45,
  465739.968762, 1906.192505 , 4091458.499904, 3
  465791.468761, 1894.422974 , 4091452.250001, 3
  465821.250068, 1881.933472 , 4091422.250052, 3
  465860.593730, 1856.298828 , 4091382.249947, 3
  465892.375120, 1835.943359 , 4091347.19, 3
...
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org