Blax Posted February 2, 2016 Share Posted February 2, 2016 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. Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 2, 2016 Share Posted February 2, 2016 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. Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 2, 2016 Share Posted February 2, 2016 Ok... for some reason the light's parent was not added to the serialization. Fix is already merged (https://github.com/BabylonJS/Babylon.js/pull/940), will soon be integrated in the playground as well. Dal 1 Quote Link to comment Share on other sites More sharing options...
Blax Posted February 2, 2016 Author Share Posted February 2, 2016 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)? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.