Examples from the playground

There is a really cool technique like this that I have used to render things that are only inside a bounding box, kinda the same idea it looks like.

Thanks for the sample could find a use for this sometime.

A Simple Thin Instance Wrapper. If you work with a lot of meshes thin instances are the way. I wrote a little wrapper to add, setPos and getPos.

PS: the thinInstanceGetWorldMatrices returns an array which grows each time you add a mesh. therefore it is a better idea to create a bunch of meshes (e.g.) 500 and call this function one time and store it as a class attribute.

3 Likes

Strange camera perspective

1 Like


-https://playground.babylonjs.com/#0H9476#0

1 Like
3 Likes

@Necips

Found it, works really well with arbitrary mesh when I project the 3d coordinates as 2d flat array compared to using the 3d flat array directly.
https://www.babylonjs-playground.com/#WYLQEY#8

2 Likes

Cooool, thanks. :+1::grinning:

1 Like

Thin instances used for grass blades

PG:

grass | Babylon.js Playground

Tweet:

13 Likes

Skybox

https://playground.babylonjs.com/#AVQN1I

awesome :smiley:
runs so smoothly on my pc!!, apparently, there’s an issue with lots of thininstances on mobile, it doesn’t show when i tried the demo on my iPhone

1 Like

av136122 what the… I am surrounded by masters of their trade! :smiley: Great Cinema, Cedric!

1 Like

This one isn’t working for me, it shows up as a black screen with console errors.

1 Like

Expanding bunny… :slight_smile:

3 Likes

Should be fixed now.

Meh, just moving on a navmesh with a minimap, nothing fancy
https://www.babylonjs-playground.com/#7RRC76#2

Edit: for some reason you have to press “play”

3 Likes

the minimap is fun, especially how you have the fog of war with it

1 Like

AttachControl has been missing… now I can see the mini map

2 Likes

3 Likes

Move the camera on mouse hoover

1 Like

Did this about a year ago
How to play: rotate camera to move player around, gather enough dungs and empty them in the dung ring, avoid the dung stealer…time is counting

1 Like