Loading video...

Video Failed to Load

Go Home

making my threejs / webgpu star renderer (planetarium?) more of a real thing. renders 44 million stars from the gaia star catalog at 120 fps. there's no LOD/culling. every star in frame is drawn. next is adding a nice API for agents to write "tours" that play automatically

40,775 views • 5 months ago •via X (Twitter)

44 Comments

𝑫𝒂𝒏𝒊𝒆𝒍 𝑺𝒄𝒐𝒕𝒕 𝑴𝒂𝒕𝒕𝒉𝒆𝒘𝒔 🇦🇺's profile picture
𝑫𝒂𝒏𝒊𝒆𝒍 𝑺𝒄𝒐𝒕𝒕 𝑴𝒂𝒕𝒕𝒉𝒆𝒘𝒔 🇦🇺5 months ago

Have you ever played this game?

Codetaur's profile picture
Codetaur5 months ago

hmm it looks pretty familiar but I'm not sure. I've played a lot of these escape-velocity-likes

Aaron Green's profile picture
Aaron Green5 months ago

could a ceiling projector be made?? for sleeping at night

Codetaur's profile picture
Codetaur5 months ago

I do think this would work pretty well for that.

Aaron Green's profile picture
Aaron Green5 months ago

its just so cool... im imagining a phone linked to a projector that points at ceiling. limitless fun basically

Jonathan 🇺🇲's profile picture
Jonathan 🇺🇲5 months ago

I don't understand how 44m stars can be rendered in, even as dots lol. Hmm. Maybe mine is slow because of origin shifting causing performance to dip, idk.

Paulo Samurai's profile picture
Paulo Samurai5 months ago

Crazy stuff Maybe this is what astral projection feels like

Pasheko's profile picture
Pasheko5 months ago

Why does mine run at 30 fps with minimum star quantity

Codetaur's profile picture
Codetaur5 months ago

smol gpu?

Pasheko's profile picture
Pasheko5 months ago

🥲

Chandler Powell's profile picture
Chandler Powell5 months ago

At this point, just make a port of star citizen. Very cool work!

Shadriarty's profile picture
Shadriarty5 months ago

It gets oversaturated when zoomed out. Are you familiar with datashader? It's Python's lib but worth checking out. It also supports interactive rendering of large datasets (hundreds of millions to billions)

Peter McNeeley's profile picture
Peter McNeeley5 months ago

It would be more impressive if there was LOD or culling.

Codetaur's profile picture
Codetaur5 months ago

well that's definitely not true. it would be trivial to add. it's even already there in the form of a slider. but tying it to zoom level would defeat the point of the entire project

Tiger Abrodi's profile picture
Tiger Abrodi5 months ago

wow

McMeddon🌻's profile picture
McMeddon🌻5 months ago

woa OoO

Charmhole's profile picture
Charmhole5 months ago

dyson sphere program.......

Starteller 🍵🎧🔧🐔's profile picture
Starteller 🍵🎧🔧🐔5 months ago

Jesus, nice

180 treehouse's profile picture
180 treehouse5 months ago

javascript users discover gpu instancing

ᚢᛁᚦᛋᛏᛁᚴᚱ's profile picture
ᚢᛁᚦᛋᛏᛁᚴᚱ5 months ago

Very cool! You should add the extinction maps as well.

Codetaur's profile picture
Codetaur5 months ago

this kind of has them built in. the gaia luminosity is based on how they look from earth, so the dust is basically baked into the gaia data

Aaron Green's profile picture
Aaron Green5 months ago

wow

Jero's profile picture
Jero5 months ago

bro amazing

get to the point's profile picture
get to the point5 months ago

that's a whole lotta stars O _ O

Calliagh's profile picture
Calliagh5 months ago

very like, thank you

twituje1's profile picture
twituje15 months ago

are there aliens?

Henry Ventura's profile picture
Henry Ventura5 months ago

holy shit dude WHAT

BoogerCheeseOnRye DeepFried's profile picture
BoogerCheeseOnRye DeepFried5 months ago

The fuck? No culling? O.O Okay....actually...hold on...that sounds like a great concept. I'm gonna go read up on how to just avoid culling now...thanks...I needed something to do.

Frog of Future Past's profile picture
Frog of Future Past5 months ago

This is very cool

Erick Holz's profile picture
Erick Holz5 months ago

Incredible.

A Pale Blue Dot's profile picture
A Pale Blue Dot5 months ago

is the luminosity varied by the zoom out distance?

Codetaur's profile picture
Codetaur5 months ago

there's an attempt to automatically keep brightness "good" based on number of stars and fov but it's hard to do perfectly

A Pale Blue Dot's profile picture
A Pale Blue Dot5 months ago

cool! is it one of the approximations/hacks that lets you run this with very minimal hardware?

Codetaur's profile picture
Codetaur5 months ago

it doesn't really reduce the cost, since it just lowers the brightness for each star. I'm not even sure how this runs on minimal hardware, I've only tested it on a 4090 and mobile 3070. the efficiency mostly comes from splatting

A Pale Blue Dot's profile picture
A Pale Blue Dot5 months ago

just ran it on my old laptop with 1050Ti wouldn't go higher than 7-8 fps

Codetaur's profile picture
Codetaur5 months ago

how does something like this run on the 1050?

A Pale Blue Dot's profile picture
A Pale Blue Dot5 months ago

i see nothing. am i doing something wrong?

Codetaur's profile picture
Codetaur5 months ago

na I think it's just an old gpu that probably lacks support for some data type used in the example. I was just curious how it performed on an official example for comparison

Pasheko's profile picture
Pasheko5 months ago

this doesnt look good

Leo Dutra's profile picture
Leo Dutra5 months ago

Why do some quadrants look like Elite Dangerous' galaxy map?

Pasheko's profile picture
Pasheko5 months ago

were all so worthless

Furheir Purrdolf Mewtler's profile picture
Furheir Purrdolf Mewtler5 months ago

So cool

Basil Jackson's profile picture
Basil Jackson5 months ago

Cool!

Gabriele Berselli's profile picture
Gabriele Berselli5 months ago

"there is no LOD/culling" is not something I will brag about, not even in a bar

Related Videos