levere Posted April 4, 2016 Share Posted April 4, 2016 There appears to be a problem with createInstance invoked on a LinesMesh object. In my tests, neither are rendered after the createInstance call. Example:http://www.babylonjs-playground.com/#1HMSGN#3 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 5, 2016 Share Posted April 5, 2016 I'm not sure that's supported with linesmesh. as the fusion of lines that was failing when I try it. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted April 5, 2016 Share Posted April 5, 2016 @levere it does appear to bug, If you move the camera angle so the left sphere is at the right edge of the screen and the right sphere is out of the screen, the non-instanced line appears, something wrong with rendering? However, Clone seems to work, perhaps that can fit your needs until someone gets around to this (that is, if it's not intended to not work on linesMesh). http://www.babylonjs-playground.com/#1HMSGN#4 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2016 Share Posted April 5, 2016 Yep I confirm that lineMesh does not support instancing. I'll add a warning Quote Link to comment Share on other sites More sharing options...
adam Posted April 5, 2016 Share Posted April 5, 2016 Maybe you can use LineSystem instead. Quote Link to comment Share on other sites More sharing options...
levere Posted April 5, 2016 Author Share Posted April 5, 2016 That looks like it will do the job nicely. Thank you for pointing that out. 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.