Babylon.js Big Bang

1 million points universe https://www.babylonjs-playground.com/#WZNWVG#17

8 Likes

I can control time :slight_smile: https://www.babylonjs-playground.com/#WZNWVG#18

2 Likes

cool. can you take a photo and explode every pixel in this manner? :slight_smile:

1 Like

Nice Math!

How can you access single pixels of an image?

I didn’t find a hint in the documentation:
https://doc.babylonjs.com/api/classes/babylon.gui.image#widthinpixels

Do I have to use WebGL commands like readPixels?

1 Like

Just a little space color tweaking :smiley: https://www.babylonjs-playground.com/#WZNWVG#19

Why don’t use GPUParticles?

1 Like

Just wanted to have a play with a point cloud.

This PG https://www.babylonjs-playground.com/#H6Q4X3#0 reads an individual pixel by

loading image into a dynamicTexture lines 20 to 31

picking a point on the mesh lines 80 to 83

and the important one getting the color at that point lines 42 to 51

Using code from Pixel manipulation with canvas - Web APIs | MDN

Hope this is what you are after.

1 Like

with a little acceleration https://www.babylonjs-playground.com/#WZNWVG#20

1 Like

Using code from this page:

https://karthikkaranth.me/blog/generating-random-points-in-a-sphere/

https://www.babylonjs-playground.com/#WZNWVG#21
https://www.babylonjs-playground.com/#WZNWVG#23

5 Likes

Project Genesis …

create universe
create sun
create earth
create moon

https://www.babylonjs-playground.com/#SDU431

2 Likes

flat universe theory … looks pretty cool :slight_smile:

https://www.babylonjs-playground.com/#SDU431#1

4 Likes

Project Genesis

Of course the Earth should be the center of the universe! :crazy_face:

2 Likes

project genesis is good for your cool hidden playground list

rabbit big bang with reversible time https://www.babylonjs-playground.com/#W92WT0#5

5 Likes

LOL!! this is excellent