Weekly Video: Fun with Instance Buffers

No need for an issue :slight_smile: I will fix it as soon as I can see it

But so far I just see a plane and I also see no call to enableDepthRenderer

Sorry, wrong link: https://www.babylonjs-playground.com/#JFT1LI#1

1 Like

Thanks! Will be fixed by next nightly

https://www.babylonjs-playground.com/#JFT1LI#3

Damn, that’s fun to watch. And FAST, omg. SIMD demo, move-over. :slight_smile: Does anyone see this demo ā€œdie with blank canvasā€ after some time passes, possibly with window minimized?

MIDI sysex event -> browser event… would be SO SO handy, here… stepping those animations to perfect-sync’d midi music. (sigh) Maybe someday.

C’mon, windows media player… send your midi sysex events to webGL… PLEASE!!! Also need a <midi> element for html, as <audio> isn’t correct for that data format. <audio> is for sampled audio. Midi is different, of course… and MUCH easier to perfectly sync mesh-with… IF any midi players would send the sysex to the damned browser event pipe… so I could see them in BJS land.

But noooooooooo. (Wingy throws a tantrum to try to get 3D world musically caught-up with where it is SUPPOSED to be going/by-now.) :slight_smile:

Yeah, I know, off topic. Instance Buffers! Yeah, I need one. I got an idea. (uh oh)

Instance buffers seem like a dream-come-true… for voxel-folk. (like I’d know).

3 Likes

Hi again. I tried my first instance buffer thing (mostly a copy of a previous one)

https://www.babylonjs-playground.com/#JFT1LI#5 It works! Yay!

It uses colors… just like the other. BUT, I also tried to set the specularColor on each instance… which is sure to fail, and it did. :slight_smile: I don’t think specularColor is a legal instance characteristic. Easy to set .specular on the light… no problems. But, I still wanted to try it… using the instances.

Speaking of physics… I wonder what the chances of making the sphere… bounce back and forth across that ā€œbowlā€ā€¦ perfectly… rotating the angle of traversing one pad per crossing. It will take a PERFECT launch power and angle, with perfect restitution on all members. ERF! Fun to think about, though.

Let’s not play with the physics in THIS thread, though. Instead, let’s laugh at Wingnut trying to use instance buffers to set .specularColor on the pads… when none of them have a .material. Now THAT’S funny, huh? What an idiot… that Wingnut. It’s a perfect name for him, eh? :slight_smile:

I bet the pad rotations and positions could be stored in instance buffer arrays-of-characteristics, though (similar to colors). Might be fun to test.

Yeah, 36 instances is small… but heck… it works. I got random colors… on instances! (cuz I stole the code to do it). Ain’t I just somethin’? (snore)

What’s that you say? Another dancing robot scene? Ok, fine, here. (robot model not mine, of course. I love it, though.)

1 Like

Neat examples @Wingnut! I haven’t had time to try to unsync their animations yet like explained on a previous post, if you’re looking for another demo you could try that. I tried a quick scene.beginAnimation(instance, i, 100, true); that didn’t do anything.

There’s also a ton of ā€œInstances should only be created for meshes with geometry.ā€ on the console, so I guess the loop is missing some condition to skip instancing meshes without them.

1 Like

Thx @brunobg. Hey, I started a new D&P thread about our robot friend. Playing with the BrainStem Robot and its Animation

See ya there… for robot animation talking. Everyone invited - bring your armature armament… we might go ā€œboningā€. (What did he say?) (It’s a skeletal thing). :slight_smile: