valepu Posted September 23, 2015 Share Posted September 23, 2015 Hello,just want to know if this behavior is expected: when you set a Billboard mode to a mesh with a parent then the child mesh won't inherit scaling: http://www.babylonjs-playground.com/#1JSXHWIs there any way to avoid that? (other than changing the scaling to the child too) Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 23, 2015 Share Posted September 23, 2015 Hi valepu! I don't think there is another way, at the moment. This is likely to change. https://github.com/BabylonJS/Babylon.js/blob/master/src/Mesh/babylon.abstractMesh.js#L440 (billboarding area) if (this.parent && this.parent.position) { localPosition.addInPlace(this.parent.position); BABYLON.Matrix.TranslationToRef(localPosition.x, localPosition.y, localPosition.z, this._localTranslation);}I'm no framework-grade coder, but I would suspect that similar scaling and rotation operations need to be added just below this. *shrug* Interesting find, V! Here's my version... http://www.babylonjs-playground.com/#1JSXHW#1 ...the same as yours except slightly slimmer. Yuh yuh yuh, something is definitely odd, there. valepu 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 23, 2015 Share Posted September 23, 2015 Unfortunately billboard can only inherits parent's location so far Quote Link to comment Share on other sites More sharing options...
valepu Posted September 24, 2015 Author Share Posted September 24, 2015 Oh well, i can live with that for now. Thanks for your answers! Wingnut 1 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.