Jump to content

Mesh Extrude Cap not working?


que
 Share

Recommended Posts

Hi @que, welcome to the forum.

http://www.babylonjs-playground.com/#1JEOKR#1

Caps working, when I disable line 55.  Know why?  I knew ya did.  :)

http://www.babylonjs-playground.com/#1JEOKR#2

There's a crack in your DetailShape.  A little gap at the beginning of your last quarter circle.  I will let you fix the crack, but holler if you need assistance.

Fun Fact:  When a FOR-loop is off-by-one, which is probably the reason for the crack... it is sometimes called a "fencepost error".  Read here, as wanted.

I also added a bounce-off-the-sky hemispheric light, with belly-lighting (groundColor)... so your material would be fully lit and seen.

Why that top section is black, I'm not sure.  Perhaps it will turn gray once the crack is welded/taped.  :)

Cool playground, I like it.  You are really good at making those nice smooth curves.  Well done!

Link to comment
Share on other sites

14 hours ago, Wingnut said:

Hi @que, welcome to the forum.

http://www.babylonjs-playground.com/#1JEOKR#1

Caps working, when I disable line 55.  Know why?  I knew ya did.  :)

http://www.babylonjs-playground.com/#1JEOKR#2

There's a crack in your DetailShape.  A little gap at the beginning of your last quarter circle.  I will let you fix the crack, but holler if you need assistance.

Fun Fact:  When a FOR-loop is off-by-one, which is probably the reason for the crack... it is sometimes called a "fencepost error".  Read here, as wanted.

I also added a bounce-off-the-sky hemispheric light, with belly-lighting (groundColor)... so your material would be fully lit and seen.

Why that top section is black, I'm not sure.  Perhaps it will turn gray once the crack is welded/taped.  :)

Cool playground, I like it.  You are really good at making those nice smooth curves.  Well done!

Thanks alot Wingnut!

Yeah it seems like whenever radius and y is the same, it calculates 10^2 - 10^2 which is 0 and Math.sqrt(0) is not going to work for obvious reasons :)

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