[osg-users] PagedLOD range for 2D image tiles

Bruno Oliveira bruno.manata.oliveira at gmail.com
Wed Sep 14 03:08:08 PDT 2016


Sorry, my mistake. No FOV in Ortho2D projection, obviously!

I tried that setRange(id, 0.5, 2) and it did not work, no tile is ever
rendered..

Notice that my tiles are added to the scene graph as geodes, with size =
tileSize / scale,
hence, a tile is always 256 pixels, but the geode size is set to world
coordinates as the size that tile occupies in the whole image frame
coordinates.

2016-09-14 10:41 GMT+01:00 Valerian Merkling <niarkoleptik at gmail.com>:

>
> > I am also using an Ortho2D projection (field of view 30 degrees)
>
>
> There is no such things as field of view for Ortho projection.
>
>
>
> >
> > So, Let me draw a specific scenario: an image pyramid, starting at scale
> 0.125, going all the way up to 0.25, 0.5, 1.0.I am also using an Ortho2D
> projection (field of view 30 degrees). The tiles are fixed size, and I know
> their size in pixels.
> > Can I use PIXEL_SIZE_ON_SCREEN for my purpose?
>
>
> I think you can try somethings like setRange(id, 0.5, 2); for every tiles.
>
> I mean you already have tile for each resolution level so you just need to
> show the one which is the closest to 1:1.
>
> You need ranges of [0..A], [A..B], [B..C] when using the DISTANCE_FROM_EYE.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68601#68601
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160914/c9d8bf95/attachment-0003.htm>


More information about the osg-users mailing list