[Gvsig_english] View3D

Jordi Torres jtorresfabra at gmail.com
Mon Apr 18 10:44:13 CEST 2011


Hi Tobias,

The size of the texture you are trying to see exceeds the capabilities of
graphic cards 2D textures (4096x4096). If you read carefully the
documentation you will realize that osgVP don't tile your images, you have
to implement your own data driver to accomplish this task. We utilize de
gvSIG data access in order to request the tiles for a image, so it is done
at the application level. At the end, osgVP is waiting tiles (usually
256x256 or 512x512 ), not big images, as the data access is not implemented
in osgVP.

Try to use a smaller texture, like in the osgVP examples framework, to test
it works, and then you should think about implementing your own driver or
use data access from third-party applications.

Hope it helps.

Greetings.



 In the osgVP framework there are some examples of loading raster layers
using 512x512 tiles.

2011/4/18 Neumann, Tobias <tobias.neumann at berner-mattner.com>

> Dear Jordi,
>
> I have got a problem with displaying some geodata into the TerrainViewer.
>
> I have successfully build the example with the cow at the north pole (I
> have send a screenshot of it), but when I want to load a satellite footprint
> as texture (chapter "Adding layers") it will not be displayed.
>
> When the update-method is called (public UpdateDataEvent
> loadData(RequestDataEvent rde)) the log output is like "Scaling image
> 'C:\...\World1_24M.jpg' from (7200,3600) to (8192,4096)", but I can only see
> the grey plane surface of the default terrain.
>
> I have created the RasterLayer and added it to a new LayerManager. This
> LayerManager then is getting assigned as the LayerManager of my
> earth-terrain (just new Terrain()).
>
> Do you have an easy explanation for this problem?
>
> Thank you
> Tobias
>
> ________________________________
>
> From: gvsig_internacional-bounces at listserv.gva.es on behalf of Jordi
> Torres
> Sent: Wed 13.04.2011 15:29
> To: Users and Developers mailing list
> Subject: Re: [Gvsig_english] View3D
>
>
> Hi Tobias,
>
> The code you are looking for must utilize osgVirtualPlanets (osgVP). The
> documentation is available here[1], take a look to the Terrain Section. You
> will find simple snippets of code to achieve this kind of things. Hope it
> helps.
>
> Cheers.
>
> [1]http://forge.osor.eu/docman/view.php/177/447/UserGuide_en.pdf
>
>
>
> 2011/4/13 Neumann, Tobias <tobias.neumann at berner-mattner.com>
>
>
>        Hi,
>
>        I am trying to set up a 3D view with gvSIG. Does someone have got a
> short code example how to generate and display a default spherical view?
>
>        Thank you!
>
>        Tobias
>
>
>
>
>
>        _______________________________________________
>        Gvsig_internacional mailing list
>        Gvsig_internacional at listserv.gva.es
>        http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>
>
>
>
>
>
> --
> Jordi Torres Fabra
>
> gvSIG 3D blog
> http://gvsig3d.blogspot.com <http://gvsig3d.blogspot.com/>
> Instituto de Automática e Informática Industrial
> http://www.ai2.upv.es <http://www.ai2.upv.es/>
>
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>
>


-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20110418/7d636a26/attachment.htm 


More information about the Gvsig_internacional mailing list