<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(1) I want to convert the EPT format, to the pagedlod format and saved as osgb file, is it possible for pagedlod that both parent and it's child are both drawn?<br></blockquote><div><br></div><div>  Normally, no. OSG's underlying Group system allows only one LOD to be drawn at a time, though lower LODs are actually retained in memory as loaded.</div><div><br></div><div>  The way most OSG PagedLOD databases are built (the way VPB for example builds databases) is that LOD 0 will be the low-res version and LOD 1 will contain four sub-pieces at higher res, each of which is the LOD 0 of another PagedLOD.</div><div><br></div><div>  You could either</div><div><br></div><div>1. Write a specialized variant of PagedLOD that displayed the lower LOD automatically (not recommended)</div><div><br></div><div>2. Build your PagedLODs carefully so that PageLOD level 0 contains the lowest detail point data, and LOD 1 contains that same data PLUS the four child PagedLODs. I believe if you link things together properly, the two copies of LOD 0 will only be stored in memory once and drawn once.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(2) The laz file also contains other attributes, such as lables (interger), return number (interger), I also want to implement shaders to render color by different attribute, is it possible to save these attribute in osgb and correctly bind the vertext buffer to the same program location?<br></blockquote><div><br></div><div>  Yes. You can store these values as attributes and access them in a shader to control rendering.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you!<br>Cheers,<br>Han<br></blockquote><div> </div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="text-align:center">Chris 'Xenon' Hanson, omo sanza lettere. Xenon@AlphaPixel.com <a href="http://www.alphapixel.com/" target="_blank">http://www.alphapixel.com/</a></div><div style="text-align:center">Training • Consulting • Contracting</div><div style="text-align:center">3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL</div><div style="text-align:center"><span style="font-size:12.8px">Legal/IP •</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">Forensics •</span><span style="font-size:12.8px"> </span>Imaging <span style="font-size:12.8px">•</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">UAVs </span><span style="font-size:12.8px">• GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android</span></div><div style="text-align:center"><a href="https://twitter.com/alphapixel" target="_blank">@alphapixel</a> <a href="http://facebook.com/alphapixel" target="_blank">facebook.com/alphapixel</a> (775) 623-PIXL [7495]<br></div></div></div></div></div></div></div>