<div dir="ltr">Hi Bruno, <br><div class="gmail_extra"><br></div><div class="gmail_extra"><br class="">We also work with pointclouds in PointCloudViz (<a href="http://www.pointcloudviz.com"> www.pointcloudviz.com</a> ) :) </div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-17 11:08 GMT+02:00 Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am rendering point clouds.<br><br>What I want to do is to guarantee a certain point density is displayed. I know the number of points in each LOD and I know the bounding boxes of those LOD's. Can't I calculate a certain resolution value to pass to the LOD?<br></div><div class=""><div class="h5"><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div>In the document I sent it states for PIXEL_SIZE_ON_SCREEN : <br></div><div>"The current screen-space extent that OSG uses in this mode is determined by constructing a sphere that
contains all of the model in question, then 3D projecting the diameter of the sphere into screen space
and measuring the diameter in pixels." </div><div><br></div><div>With respect to that it could be argued that a sphere projected in ScreenSpace ( perspective ) is an ellipse so it has 2 diameters. Anyway that measures are kind of orientative if you think in the major diameter it will work. So you need to assign ranges to your LOD's based on this assumption. You can try values ( i.e. from 500 to 1000 ) and tweak them iteratively.  </div><div><br></div><div>Anyway if you need a better understanding take a look to the traverse method of PagedLOD node ( <a href="https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osg/PagedLOD.cpp#L125">https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osg/PagedLOD.cpp#L125</a> )</div><div><br></div><div>Hope it helps. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><div class="gmail_extra"><div class="gmail_quote">2016-05-16 11:54 GMT+01:00 Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thank you very much ! I understand very well the concept now, But I can't still figure out a good range value, and based on what<br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-16 11:13 GMT+01:00 Jordi Torres <span dir="ltr"><<a href="mailto:jtorresfabra@gmail.com" target="_blank">jtorresfabra@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Bruno, <div><br></div><div>Take a look to this document from Chris ( Alphapixel ) <a href="http://alphapixel.com/wp-content/uploads/2015/04/LOD-Level-of-detail-in-OpenSceneGraph-OSG.pdf" target="_blank">http://alphapixel.com/wp-content/uploads/2015/04/LOD-Level-of-detail-in-OpenSceneGraph-OSG.pdf</a> .</div><div>It could shed some light on LODding.</div><div><br></div><div>Cheers.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2016-05-16 12:03 GMT+02:00 Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div><div>Hello,<br><br></div>I am using a LOD but I don't understand how PIXEL_SIZE_ON_SCREEN range mode works.<br><br><br>I am doing<br><br>lod->setRangeMode(osg::LOD::RangeMode::PIXEL_SIZE_ON_SCREEN);<br><br></div>but what parameters can I use to configure this mode? <br></div>
<br></div></div>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Jordi Torres<br><br><br></div></div>
</font></span></div>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Jordi Torres<br><br><br></div></div>
</div></div>