[osg-submissions] Gdal plugin tweaks

Frauciel Luc L.Frauciel at brgm.fr
Tue Aug 7 06:13:20 PDT 2007


Hi,

First it's great that the gdal plugin has returned to the main distribution (it was a pain to handle).

Gdal plugins reads lots of information that is not taken into account in ReadHeigthField for example.
Attached a modification that read the HeigthField position and X,Yintervals. 
I also removed the limitation to 1024*1024 to 4096*4096, because when you are preprocessing your data with OSG, it can be useful to read large images/heigthfields. Is there a reason (other than hardware limitations for textures) for this limit ?

Another thing that would be great would be to read NoData value and put it in the osg::HeightField structure.
It could also be useful for the new osgTerrain::Field structure with NoDataValue (ValidDataOperator) or to handle nodata at runtime (through geometry or vertex shaders for example).

I'm impressed by the great job already done on osgTerrain. Would it be possible to have an example of the .terrain extension, because I dont really understand what I should put in my .terrain file.

  Best Regards

   Luc


Luc FRAUCIEL - BRGM
Unité Calcul, 3D et réalité virtuelle
Service Systèmes et Technologies de l'Information
3, av C. Guillemin BP 6009 - 45060 Orléans Cedex 2, France
Tél. 02 38 64 35 65
Fax 02 38 64 39 70
**********************************************************************************************

Pensez à l'environnement avant d'imprimer ce message
 Think Environment before printing
 
Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du (des) destinataire(s) désigné(s) 
comme tel(s). 
En cas de réception par erreur, le signaler à son expéditeur et ne pas en divulguer le contenu. 
L'absence de virus a été vérifiée à l'émission, il convient néanmoins de s'assurer de l'absence de 
contamination à sa réception.
 
The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) 
only. 
If you have received this email in error please notifythe system manager or the sender immediately and do not 
disclose the contents to anyone or make copies. 
eSafe scanned this email for viruses, vandals and malicious content.
 
**********************************************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ReaderWriterGDAL.zip
Type: application/x-zip-compressed
Size: 5199 bytes
Desc: ReaderWriterGDAL.zip
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070807/f8b84a04/attachment.bin 


More information about the osg-submissions mailing list