Yime Benites Posted June 16, 2016 Share Posted June 16, 2016 Hi, I need help with a human body transparent. * I want to display just the frontside of the body and intern organs. * I want hide the backside of the body. link to model: http://52.74.240.184/questions/body/index.html link to code: http://52.74.240.184/questions/body/js/file.js I'm new developing with Babylon and I need similar examples or ideas about how to fix my problem. thanks Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted June 16, 2016 Share Posted June 16, 2016 It looks like a difficult objective to reach, i don't know if a 3d engine can check alpha order on the same mesh. Maybe you can try a big fake : don't use alpha on the body material and assign a diffuse color similar to the background, keep the fresnel effect, then play with the zOffset of organs material. I don't guarantee any result Quote Link to comment Share on other sites More sharing options...
adam Posted June 16, 2016 Share Posted June 16, 2016 Yeah, I think you should probably stay away from transparency and use a renderingGroupId = 1 for your organs. https://doc.babylonjs.com/classes/2.3/AbstractMesh#renderinggroupid-number Edit: renderingGroupId won't be a good solution if there are other meshes in the scene that need to appear in front of the organs. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 16, 2016 Share Posted June 16, 2016 I guess you can do what you want by forcing backface culling on your material. Did you turn it off? NasimiAsl and ramsestom 2 Quote Link to comment Share on other sites More sharing options...
gryff Posted June 16, 2016 Share Posted June 16, 2016 Hi @Yime Benites, welcome to the forum What you are seeing with the ears is the front side of the mesh (see image below). The faces coloured red are the outside as the mesh is folding back on itself. You may have to eliminate that folding back to solve your problem. cheers, gryff adam 1 Quote Link to comment Share on other sites More sharing options...
Yime Benites Posted June 21, 2016 Author Share Posted June 21, 2016 On 6/16/2016 at 8:05 PM, V!nc3r said: It looks like a difficult objective to reach, i don't know if a 3d engine can check alpha order on the same mesh. Maybe you can try a big fake : don't use alpha on the body material and assign a diffuse color similar to the background, keep the fresnel effect, then play with the zOffset of organs material. I don't guarantee any result Hi V!ncer, I tried your Idea but it didn't work. thanks. 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.