Jump to content

backFaceCulling for cube


vahith
 Share

Recommended Posts

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. 

Link to comment
Share on other sites

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..?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...