Jump to content

Front face culling for a tube?


abhip96
 Share

Recommended Posts

I am trying to create a tunnel-like model where i need to apply texture inside a tube and view it in 3-D. However while changing camera angles, the front face should not render enabling the inside textures to be visible. mesh.BACKSIDE doesn't seem to work on tubes.

Link to comment
Share on other sites

Hiya @abhip96, welcome to the forum.  From the description you give, it seems you might be needing a "2-step solution".  I think you needed to BOTH produce the mesh as a BACKSIDE, AND do a material.backFaceCulling = true (to cull the FRONT side). 

How does THIS playground demo... look?  http://www.babylonjs-playground.com/#LG3GS#148

Adjust as wanted, edit, RUN, SAVE, you cannot hurt anything in the BJS playground.  See how I back-sided the mesh constructor AND backface-culled the material?  *nod*

I hope this helps.  Write back, perhaps with a few more details, as wanted.  Ask anything, and have fun.  :)

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