Jump to content

MegeMeshes VS Instance and how do you?


chicagobob123
 Share

Recommended Posts

I created some 3D letters and am using them because the quality holds up when you zoom in and out. These letters are grouped and positions in small groups to make words like STOP and SLOW and markings.  So I loaded up the letters and numbers individually as babylon scene files. So I can make any word at any time and place them into the scene. 

To make a word I load an external file giving offset and center location of the word. I created instance of the characters on demand and position them accordingly until.. 

That was the background here is the issue. 

I hit a snag. I wanted to rotate some words.  When the letters are independent that math for characters is a little rough like guess work so I was going to MergeMesh them

but they are Instances so that was a bad idea. Then I thought maybe I would use the TransformNode but was not sure that would work on an instanced mesh 

So is there something to group some meshes together and rotate them as a group? 

I guess I could clone the meshes but that would ad performance hit, right?

Link to comment
Share on other sites

In your case I suggest keeping instances as they are by far more performant and only create a parent transform node per word.

Instances can be parented to a transform node and thus you can manipulate all of them through the parent node

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...