vahith Posted April 8, 2015 Share Posted April 8, 2015 hi allis it possible to apply backFaceCulling true..? if possible... how we can apply Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 8, 2015 Share Posted April 8, 2015 So you have a camera inside the cube? BackFaceCulling is part of the material and IS true by default. If you really are asking how to set it to false:var mat = new BABYLON.StandardMaterial("name", scene);mat.backFaceCulling = false;If you will only ever be on the inside, and you know blender, I suggest getting a cube then flipping the normals, so the inside is the front side. painting 12 nu-neccesary faces is not a big deal though. Quote Link to comment Share on other sites More sharing options...
vahith Posted April 8, 2015 Author Share Posted April 8, 2015 hi jc;thanks for response.. :-)i applied material backfaceculling false also but it visible.. what i want to achieve is when we apply backFaceCulling = false to plane, it will not visible its back face right.. like that, i need in box also is it possible..? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 8, 2015 Share Posted April 8, 2015 first thing we need to get straight here is what is culling. It means do NOT draw. Setting to false means it IS drawn. If you do not want the backside of something drawn, leave it at the default of true. 2nd thing is how are you seeing a material on the inside of a cube? An outside face is always going to be drawn. Quote Link to comment Share on other sites More sharing options...
jerome Posted April 8, 2015 Share Posted April 8, 2015 http://doc.babylonjs.com/page.php?p=22011 please read the Side Orientation partyou can have your cam inside the cube ! vahith 1 Quote Link to comment Share on other sites More sharing options...
vahith Posted April 11, 2015 Author Share Posted April 11, 2015 thank jc and jerome.. 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.