<div dir="ltr"><div><div><div>Hi Andreas,<br><br></div>In my rewrite of osgText my approach was that the internal implementation details aren't meant to be something that users need to meddle with.<br><br></div>The fact that you are needing to meddle with the internal details to workaorund performance issues in your usage case suggest an issue with basic performance/flexibility, The new implementation might change this performance/flexibility side so perhaps your local changes might not be needed.<br><br></div><div>If the new osgText doesn't provide the performance you need for your usage case perhaps it could be optimized to handle them. Creating an example that illustrates the usage case which highlights the issues would be a good first step if you feel this approach has promise.<br><br></div><div>Finally, I'm open to small tweaks to the API allow easier subclassing. However, this isn't my preferred approach as any changes to the internals later would then break end user code that relies upon it - exactly the problem you are facing now...<br></div><div><br>Robert.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 August 2017 at 09:14, Andreas Ekstrand <span dir="ltr"><<a href="mailto:andreas.ekstrand@remograph.com" target="_blank">andreas.ekstrand@remograph.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
With OSG 3.2.1 I have been able to do fast shallow cloning of
osgText::Text in my own subclass, copying the _textureGlyphQuadMap
instead of calling computeGlyphRepresentation, since the latter is a
slow operation for my thousands of texts.<br>
<br>
In OSG 3.5.6 this isn't possible, I guess due to a private
GlyphQuads::operator=. So I'm looping through _textureGlyphQuadMap
in my copy constructor and copy its glyphs and primitives separately
instead. But I can't see my copied text at all! If I save it out to
an .osg or .osgt file it's visible in osgviewer.<br>
<br>
I guess setting GlyphQuads::operator= private was deliberate, so can
someone explain how I can accomplish fast text cloning in OSG 3.5.6
or optimize it somehow?<br>
<br>
Regards,<br>
Andreas<font size="2" color="black"><span style="font-size:0.8em;color:black"><br>
<br>
</span></font>
</div>
<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>
<br></blockquote></div><br></div>