Bevel / Rounded Corners for Cubes at Render time

Nah, I haven’t yet found it… and not looking real hard.

https://www.babylonjs-playground.com/#14VFYX#37

See line 22? Just add many of those lines, and push various “dangerous” values into those parameters. Dangerous shapes. :wink:

Add some textures and scalings, some meshImpostors and sphereImpostors, some sparkly particles emitting from mesh normals, and boom… we’ve “3d-addicted” the NEXT generation of BJS mad scientists. :smiley:

Here is a search for playground series… with ‘superello’ somewhere in their codes. Babylon.js Documentation. Party on.

Update: https://www.babylonjs-playground.com/#14VFYX#0 That’s the one I was searching-for. I wonder who coded it. An interesting system, just like the other cool ideas/solutions in this thread. It seems to be all 6 or 8 -sided mesh, so far. No mention of ‘Catmull’ either. :wink: I think Mr. Catmull was involved-in converting existing sharp-edged mesh… into round-edged. These Super-Ello’s are actually “grown” with rounded edges, so no Catmull-ish filing or grinding required. :smiley:

Those rounded edges really improve child playpen swallow-ability. hah.

3 Likes