realbasic-games
[Top] [All Lists]

Re: Text3D Class (beta) for RB3D

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Text3D Class (beta) for RB3D
From: Lo Saeteurn <realbasic at miensoftware dot com>
Date: Wed, 29 Mar 2006 13:16:11 -0800
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <D3680394-40D3-406E-92B9-DE40DCBB62E0 at miensoftware dot com> <a0620073bc050576daca9 at [10 dot 0 dot 1 dot 2]> <252A1B36-40F5-4F9B-9985-E048B1A1FC72 at miensoftware dot com> <7EAEEBD0-16B3-4696-8A55-5B28FE3BA499 at pyramiddesign dot us>
Yes, but what is the difference in speed compared to object.clone. I can be doing this hundreds of times a second for the characters that changed.

Build your own clone method. I ran into the same issue building a LCD display. The following did the trick for me. It was included in the LCD class.

CloneTrimesh(original As Trimesh)
  Dim clone As New Trimesh

  clone.VertexCount = original.VertexCount
  clone.TriangleCount = original.TriangleCount
  clone.VertexPositions.Copy(original.VertexPositions)
  clone.Triangles.Copy(original.Triangles)
  clone.HasVertexUVs = True
  clone.VertexUVs.Copy(original.VertexUVs)
  clone.Material = original.Material
  clone.Scale = original.Scale
 Return(clone)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>