Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 5 Monaten •via X (Twitter)

44 Kommentare

Profilbild von 𝑫𝒂𝒏𝒊𝒆𝒍 𝑺𝒄𝒐𝒕𝒕 𝑴𝒂𝒕𝒕𝒉𝒆𝒘𝒔 🇦🇺
𝑫𝒂𝒏𝒊𝒆𝒍 𝑺𝒄𝒐𝒕𝒕 𝑴𝒂𝒕𝒕𝒉𝒆𝒘𝒔 🇦🇺vor 5 Monaten

Have you ever played this game?

Profilbild von Codetaur
Codetaurvor 5 Monaten

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

Profilbild von Aaron Green
Aaron Greenvor 5 Monaten

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

Profilbild von Codetaur
Codetaurvor 5 Monaten

I do think this would work pretty well for that.

Profilbild von Aaron Green
Aaron Greenvor 5 Monaten

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

Profilbild von Jonathan 🇺🇲
Jonathan 🇺🇲vor 5 Monaten

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.

Profilbild von Paulo Samurai
Paulo Samuraivor 5 Monaten

Crazy stuff Maybe this is what astral projection feels like

Profilbild von Pasheko
Pashekovor 5 Monaten

Why does mine run at 30 fps with minimum star quantity

Profilbild von Codetaur
Codetaurvor 5 Monaten

smol gpu?

Profilbild von Pasheko
Pashekovor 5 Monaten

🥲

Profilbild von Chandler Powell
Chandler Powellvor 5 Monaten

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

Profilbild von Shadriarty
Shadriartyvor 5 Monaten

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)

Profilbild von Peter McNeeley
Peter McNeeleyvor 5 Monaten

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

Profilbild von Codetaur
Codetaurvor 5 Monaten

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

Profilbild von Tiger Abrodi
Tiger Abrodivor 5 Monaten

wow

Profilbild von McMeddon🌻
McMeddon🌻vor 5 Monaten

woa OoO

Profilbild von Charmhole
Charmholevor 5 Monaten

dyson sphere program.......

Profilbild von Starteller 🍵🎧🔧🐔
Starteller 🍵🎧🔧🐔vor 5 Monaten

Jesus, nice

Profilbild von 180 treehouse
180 treehousevor 5 Monaten

javascript users discover gpu instancing

Profilbild von ᚢᛁᚦᛋᛏᛁᚴᚱ
ᚢᛁᚦᛋᛏᛁᚴᚱvor 5 Monaten

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

Profilbild von Codetaur
Codetaurvor 5 Monaten

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

Profilbild von Aaron Green
Aaron Greenvor 5 Monaten

wow

Profilbild von Jero
Jerovor 5 Monaten

bro amazing

Profilbild von get to the point
get to the pointvor 5 Monaten

that's a whole lotta stars O _ O

Profilbild von Calliagh
Calliaghvor 5 Monaten

very like, thank you

Profilbild von twituje1
twituje1vor 5 Monaten

are there aliens?

Profilbild von Henry Ventura
Henry Venturavor 5 Monaten

holy shit dude WHAT

Profilbild von BoogerCheeseOnRye DeepFried
BoogerCheeseOnRye DeepFriedvor 5 Monaten

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.

Profilbild von Frog of Future Past
Frog of Future Pastvor 5 Monaten

This is very cool

Profilbild von Erick Holz
Erick Holzvor 5 Monaten

Incredible.

Profilbild von A Pale Blue Dot
A Pale Blue Dotvor 5 Monaten

is the luminosity varied by the zoom out distance?

Profilbild von Codetaur
Codetaurvor 5 Monaten

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

Profilbild von A Pale Blue Dot
A Pale Blue Dotvor 5 Monaten

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

Profilbild von Codetaur
Codetaurvor 5 Monaten

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

Profilbild von A Pale Blue Dot
A Pale Blue Dotvor 5 Monaten

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

Profilbild von Codetaur
Codetaurvor 5 Monaten

how does something like this run on the 1050?

Profilbild von A Pale Blue Dot
A Pale Blue Dotvor 5 Monaten

i see nothing. am i doing something wrong?

Profilbild von Codetaur
Codetaurvor 5 Monaten

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

Profilbild von Pasheko
Pashekovor 5 Monaten

this doesnt look good

Profilbild von Leo Dutra
Leo Dutravor 5 Monaten

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

Profilbild von Pasheko
Pashekovor 5 Monaten

were all so worthless

Profilbild von Furheir Purrdolf Mewtler
Furheir Purrdolf Mewtlervor 5 Monaten

So cool

Profilbild von Basil Jackson
Basil Jacksonvor 5 Monaten

Cool!

Profilbild von Gabriele Berselli
Gabriele Bersellivor 5 Monaten

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

Ähnliche Videos