Jump to content

Babylon Scene vs some Model


chicagobob123
 Share

Recommended Posts

Is there any way to treat a scene like a model. Load, position, scale, rotate? And what is the difference between the two anyway. 

When I Execute BABYLON.SceneLoader.Append I have nothing to reference to  Load, or position, or scale, or rotate.

If there is link that talks about this I did not see it. 

 

 

Link to comment
Share on other sites

  • 3 weeks later...

Sorry to "bump" an old topic, but is there a better way to get the results--the appended bits--from BABYLON.SceneLoader.Append() ?

I believe I understand the concept above--mark everything that's already loaded before calling BABYLON.SceneLoader.Append(), at which point everything that's not marked can be assumed to come from the file load. The trouble is, if multiple files are being loaded, there's no guarantee that all of the new meshes, lights and cameras came from the same file when this append's onSuccess fires. (This is assuming file loading happens async.)

I suppose it would be possible to use BABYLON.SceneLoader.Load() to instead put the results into a new (hidden) scene, loot that scene for parts, then delete it. That feels like a lot of overhead though. Any ideas?

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...