Jump to content

Recommended Posts

Hello!

http://www.babylonjs-playground.com/#227X5L#0

Faces with strange behavior: If i make empty node, attach child with him, it not present in serialized object.

But if we load file (blender generated) with empty nodes (haven't geometry) with childs - we have normal stricture.

How can influence it? Very usefull grouping objects in empty Nodes.

Link to post
Share on other sites

Hi!

Great question :)

So - A node is a relative abstract type that is not being serialized. Changing the Node to a Mesh (without geometry) be a better option - http://www.babylonjs-playground.com/#227X5L#1

What I did notice, however, is that for some reason the parent is not being set for the light. For a mesh it is working correctly - http://www.babylonjs-playground.com/#227X5L#2

I'll look into it and let you know.

Link to post
Share on other sites

Thank you for quick answer! 

Then, how we can understand situation, which spawned question:

1. Blender exporter make properly .babylon file for import (with empty nodes).
Hierarchy is correct after loading.
2. Next, i make serialize and save scene.
3. Loading this file with destroyed hierarchy.
(empty element are present, but light is 'lost his parents'.  Or... it situation about second part of your answer (about lights parent)?

Link to post
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...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...