Kesshi Posted March 16, 2017 Share Posted March 16, 2017 Hi, in this simple playground: http://www.babylonjs-playground.com/#58TGI#0 i would like that the highlight of the middle cube is rendered on top of everything. I used addExludedMesh to exclude the other two cubes. For the blue cube it works as expected: But for the red cube the result is strange: If i create cube2 before the other cubes it is working for both cases: http://www.babylonjs-playground.com/#58TGI#1 Is it somehow possible to achive this without managing the mesh order all the time? That would be very complicated in my case. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 16, 2017 Share Posted March 16, 2017 Ping @Sebavan Quote Link to comment Share on other sites More sharing options...
Sebavan Posted March 16, 2017 Share Posted March 16, 2017 You can rely on rendering group to force a special order of rendering without clear information between draw calls : http://www.babylonjs-playground.com/#58TGI#3 And if you only have one highlighted mesh and a lot of others, feel free to only tag those ones instead: http://www.babylonjs-playground.com/#58TGI#4 Quote Link to comment Share on other sites More sharing options...
Kesshi Posted March 17, 2017 Author Share Posted March 17, 2017 Thx that should work. 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.