<div dir="ltr"><div>Thank you for the answers.</div><div><br></div>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.<div>I am also using an Ortho2D projection (field of view 30 degrees). The tiles are fixed size, and I know their size in pixels.<br><div>Can I use PIXEL_SIZE_ON_SCREEN for my purpose?<br><div><br></div><div>The first level (scale = 0.125), I should setRange(id, 0, A);</div></div><div>Second level (scale = 0.25), setRange(id, A, B); and so on, </div><div>and on Last Level (scale = 1.0, hence original image size), setRange(id, X, FLT_MAX);</div><div><br></div><div>For one texel being 1 pixel on screen, how do I calculate A, B, and so on? Or am I thinking this the wrong way?</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-14 8:38 GMT+01:00 Valerian Merkling <span dir="ltr"><<a href="mailto:niarkoleptik@gmail.com" target="_blank">niarkoleptik@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bruno,<br>
<br>
I recently had the same thing to do !<br>
<br>
To solve this, I first used a Ortho2D projection matrix for my camera.<br>
<br>
I also change the Z value of the camera when I move it, to make it work almost as a perspective camera<br>
- eyepoint Z = 100 for a 1:1 zoom ratio<br>
- eyepoint Z = 1000 for a 1:10 ratio<br>
<br>
With this you can use the DISTANCE_FROM_EYE point configuration of the pagedLOD.<br>
<br>
I also made my own LOD class, derivated from pagedLOD, and changed the traverse function a bit to only use the Z value of the eye point and not this position.<br>
<br>
<br>
I hope this can help you and give you ideas !<br>
<br>
Valerian<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=68599#68599" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=68599#<wbr>68599</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br></div>