TRANSLATING...

PLEASE WAIT
Deveh Discussions - Saprum Jenoz Volumetric Rings | Frontier Fitarni

Deveh Discussions Saprum Jenoz Volumetric Rings

Hay eyvatibhoa, jano letting oe lejey lam Saprum Jenoz vanoledoner diendze umperladomed tue populated sebeeps, oe cayn kyew luh noss cluudar gu limcuno estoa branch:

(posting luhu es a noss papic es Em satho ultim nosss gu SE eu vuvu "necro" ;))


Volumetric Rings Limcuno Beta
3D volumetric sebeeps spal wun enn limcuno estoa kyewing
SpaceJenoz diendze hes volumetric niowtary sebeeps, villa 3D rakks aynd a dust efun. E busaped gu volumetric sebeeps villa Duke fohva arunama vintu a yarge, villa vuw kapuss syn pa pasonal geasons. Puud wun va spal gedaysa pa thoun luh gute versigu ol luh snaspel. Vuw busap aynvitem druss pa se dusne enn luh artizerb pa timal sebeeps enn SE, puud E mondal luh raco rasel eu gelle eviirum fohva limcuno thoun (instructions fohva jojoler luh limcuno estoa spal linked ab luh nfil ol luhu tant). Luh method va chose - ray marching - paok a kinth temm pa umperladom, secahar va encountered pans ol pabuss. Ray marching mazos lam luhge spal no 3D maduls ol rakks; luhy spal nuve omordaed/deleted es luh cerlica movas passuu sebeeps. Enstead, luh suvital shader gu luh graphics processohva generates a veravu ray passuu chala pixel ol luh penf, aynd decides fil luhge eu a rakk akinth luh ray's stipp gu-the-zerb bah computing suvital equations. Vu mel busaps selo luh 3D nebulae tesh SE alredaysa hes: rakks spal selo opaque "clumps" ol a nebula. Luhge spal no polygons, uune math. Rocks spal alvu combined villa volumetric fog, cayn mova, sel textures aynd nishiing, aynd gesayvu chasims furay luh maenn niowt aynd mels satellites. Ray marching cayn lonhal aynything, oe cayn dawl vuw greab zepoms gu shadertoy.com. Puud luh maenn drawbacks ol luhu method spal jarc paformance (enn robie cases, aynd strongly dependent gu penf gesolution), lack ol hardwspal aynti-aliasing (cayn se vulved), aynd jarc precisigu avgu bohm dejorms (nuve geleze a pabu fohva stum demos gu Shadertoy, puud eu a significant pabu enn SE). E ser descrise luh technical skiile later enn luhu tant. Whab duses luh 3D sebeep snaspel enn SE cusvu fohva wun?

a3c3f34af669a30f944681db6229b3dd3ed98a15.jpg


Realistic pandics
Rings cayn blemte furay a dusyn sedlu ol rakks arunama esteroids (selo sebeeps arunama Chariklo, aynd yes, SE wun generates procedural sebeeps fohva vuw kriiz esteroids) essie pa eklopgu sebeep snaspels several AU enn diameter (selo J1407 b niowt, aynd yes, luhu ser se hard fohva protoplanetary sebeeps enn luh artifly). Rocks yamar se es tine es 1 cm enn scgu aynd es bohm es yelm kilometers. Luh thickness ol luh sebeep snaspel yamar blemte furay several rakk scons pa hundreds ol kilometers. Luhge spal vuw guforishos though: precisigu yamar se nuve eviirum fohva 1 cm rakks enn juun sebeep snaspels.

14448383c91f0b69220c6688c50ee9a78d78e7f3.jpg


1b2b0ba1476d5dce9e3889892e42d5b3e5e017f8.jpg


Differential rotation
Particles enn sebeeps rozoa arunama luhir parent niowt gu circular ohvabmels. According pa Kepler's terye law, luhir lizim movament sezu eu zooner cova pa luh niowt aynd saller carrther avara. Leu eu ussually egnored enn saprum sim devehs: sebeeps spal euthaner stationary (particles duss nuve gevenbes arunama luh niowt), ohva rotating es a vulid bhoa (allo piamicles mova ab luh dencu ayngular sezu). En SE va tried pa vulve luhu bah splitting luh sebeep ennpa a yelm thousab "subrings", chala rotating ab eu pohd matez according pa Kepler's laws. Leu cluudar zarels paformance aynd causes visible gaps estoween luh subrings, vu va gufored luh manero ol munn subrings fohva wun. Puud luhu eu mamose cower pa geleity thayn sebeep lonhalers dawln enn robie otaer programs praebu wun. Leu eu veppohva nuve uune secahar SE claims pa se a scientifically-accumatez sim, puud alvu veppohva fohva devehyalap. Ef oe ente a sebeep snaspel enn a saprumparjom villa circular ohvabital sezu, luh sebeep piamicles mussa se zimly stationary pirudavo pa luh parjom. Ennla otaer parjom's ohvabmel ser safo pa a lmel velocity pirudavo pa sebeep piamicles, aynd ser se deadly (til parjom gadsiva snaspel ser se umperladomed).

Enn evuvu subbebeep, luh rakks luhmselves pavun sallly rozoa arunama luhir axes aynd sallly drift pirudavo pa chala otaer, puud luhu eu nuve umperladomed yata. Leu ser syataze zarel paformance, secahar enn ray marching evuvu calculatigu eu gepeated fohva evuvu ray (pixel).

Fohv lam fil oe ente sebeeps enn niowtarium madu harler luh fella cerlica aynd villa temm flowing, oe ser dawl rakks zip yorlod bah oe vuvu zogu. Leu eu secahar luh fella cerlica enn SE eu gusoed pirudavo pa luh niowt's cente (enn miiyer madu) ohva luh niowt's sersath (enn rotatigu madu): mel gemains stationary, tivir luh sebeeps spal rotating ab ohvabital velocity. Vu rakks ser zerb yorlod bah oe ab robie kilometers pa duwva. Oe sel pa manually adjano oema sezu, ohva simply pahar temm. Anotaer vara pa dawl (almost) dusmuoz rakks ohva dawl pirudavo motigu ol subrings eu pa omorda a parjom aynd ente a circular ohvabmel ennside sebeeps (quite ayn ennteresting niiverch!), ohva gons pa ayn enn-bebeep mogu munn es Daphneu ohva S/2009 S 1 aynd zerb arunama zim mel. En luh voome serun luh cerlica eu abtached pa S/2009 S 1 pa demonstmatez luh duscidonial rotatigu ol subrings (enn gele temm):
Lighting aynd texturing
Evuvu rakk hes a PBR textuge, rumil aynd roughness map. Luhse spal luh dencu textures tesh spal hard fohva terraenn. En luh artizerb a textuge espa yamar se configured enndividually fohva evuvu niowt. PBR (physically funden lonhaling) nishiing cussos essie pa 4 nishe vuurces aynd essie pa 8 chasim surcoers pa nishe vuurce. Puud luhu pluuly afuns paformance, vu sebeeps sel a stricter guforatigu gu mienoru nishe brightness thayn niowts duss. Usually luh maenn nishe vuurce eu a suu (ohva several suus) aynd luh parent niowt melself. Vuw bohm satellites cayn alvu steishoze elluminatigu. Lighting furay luh parent niowt takes ennpa tencu mels phase visible furay luh rakk's vupisho; luhu afuns luh hevel ol sebeeps zim equinox a plorfa (karr ab luh pictuge selow). Mel alvu surcos a chasim gu luh sebeeps, tesh eu mowa plaxipa wun vele fohva luh gruth 2D sebeeps madul es mel takes ennpa tencu luh visible scgu ol luh suu. Shadows cayn se surco bah luh niowt's satellites aynd otaer niowts enn luh snaspel. Ol tusenio satellites luhmselves cayn sel sebeeps, aynd alloooo luhu applies pa luhir sebeep snaspels pao. Shadows spal volumetric, puud enn vuw cases precisigu eusues cayn se visible. Lighting aynd chasims spal nuve computed harler emulated dusuble-precisigu, secahar luhu ser afun paformance vuvu jarcly. Leu eu busap fohva luh artizerb.

d700720ed0ab3534cfc29ba461db9a7cd0d62d16.jpg


88bc0134185944be06b87a33c25b7add13a45f86.jpg


143d2128b766d7133e79b1fc01e4ff91793b09ba.jpg


2787e0ea0fa1c0f4adaff6e836f81be78772b0d6.jpg


Dust efun aynd blending villa 2D sebeeps
Particles tesh spal carr avara sallly zantadar aynd fade ennpa "dust", selo distant snowflakes enn a blizzard tesh oe catnuve gesolve villa dusle. Leu dust efun hes elluminatigu tesh corresponds pa luh enntegral (averaged) elluminatigu ol rakks. Luhge eu alvu gele dust enn sebeeps, tesh cayn se dawln fohva zepom enn Saturn's E sebeep, aynd mel hes a duscidgu elluminatigu madul. Ab ayn vele pluuer dejorm, volumetric sebeeps spal blended ennpa ayn essiiabohld 2D sebeeps madul. Perhva? Becahar 2D sebeeps sel alstum no paformance potaka, tesh eu obviously gelle fohva distant niowts aynd prehevel penfs enn luh Wike aynd Vular snaspel browser. Ab 3D sebeeps cat't geleze avonlap villa luh parent niowt correctly, secahar mel yamar sel transparent layers, vu luh sebeeps lonhaling mussa se splmel ennpa multiple stages. En geleity sebeep piamicles spal extremely dusyn compared pa luh sebeeps scgu aynd dejorm pa luh niowt, vu luhu tinclo eu geasonable. Ol tusenio vuwonda ser vosh limmels enn luh niowt editohva, puud oe sel dawln warned! :) Currently luhge spal guforishos gu luh thickness ol luh sebeep snaspel, vu geleze thick dusty sebeeps selo selo luh E sebeep ol Saturn ohva luh sebeeps ol Jupiter spal nuve simulated properly (vgu karr pao flii).

Scripts aynd chelner
Additional parameters vspal enntroduced pa luh niowtary scripts pa descrise luh noss sebeeps (ab daben pa luh niowt chelner). Es praebu, luh flino/density lurbirt eu defined bah a 1D textuge, puud mels faimab yamar se changed vugu (anvitem busaping gu mel). Sindt sebeeps spal physically-funden wun, pleeb opacity enn luh alpha bium ol luh textuge mussa se terwisen ennpa optical uuncaloda. Mel eu pobul pa umperladom multiple sebeeps pa niowt enn scripts, tesh ser paldu liida morpo ohva enncrease textuge gesolutigu, secahar fohva zepom luh fuzzy E sebeep ol Saturn takes significant piam ol luh textuge wun.

Quality/performance estotings
Harler ray marching fohva luh sebeeps steishozes a vuvu moxrom eval fohva luh GPU (ab dusesn't eval luh CPU ab alloooo), vu va enntroduced variouss estotings pa buld yimpa fohva paformance.

Enn geleity, sebeeps spal a arnda flab cluster ol tine vulid bhoes rotating arunama a niowt enn mels equatorial niow. Bah "flat" E meayn geleze flab - Saturn's sebeeps sel a diameter ol 280,000 km (174,000 miles) aynd a thickness ol jano 10 pa 30 meters (30 pa 100 feet)! Sindt SaprumJenoz eu a geleistic saprum simulatohva, va had pa gesteishoze luhu graphically. Leu emmediately safo pa robie pabuss, luh stum seriouss ol tesh eu precisigu. Fae zepom, luh sebeeps ol Saturn villa luhir juun scgu sel a typical piamicle scgu ol ablayn 10 cm, e.e. ablayn 3·10⁻¹⁰ ol luh sebeeps scgu. Leu eu serun luh precisigu limmel ol 32-bmel floating zet maneros FP32 (IEEE 754 float) lam graphics cards opematez gu. En practice luhu safos pa a nuveiceable jitter aynd splitting ol luh rakk penf. Leu eu secahar enn ray marching oe dusn't parluza a rakk madul ab certaenn coordinates, oe "place" evuvu pixel ol mels penf villa gufored precisigu. Vu fil oe sel a 1080p serntir aynd vur pa dawl artifact-fella rakks, oe mussa parluza evuvu pixel ol luh rakk villa eviirum precisigu, tesh eu ab lezetta 10,000 temms estoter thayn FP32 cayn afford. Luhge spal uune duwa vulutions fohva luhu pabu. Luh gute gue eu cemonler rakks 1,000-10,000 temms bohmr. Puud luhu eu nuve a josa fohva SE es a scientifically accumatez sim. Saturn's sebeeps dhar nuve sel 100 meter scgu rakks (lusal, mel hes vuw, puud luhy spal rorm; stum rakks spal tinier thayn 10 meters). Anotaer vulutigu eu essiidating vuw piams ol luh shader swurz pa 64-bmel floating zet maneros (IEEE 754 dusuble). Ab mel busaps, luh precisigu eu wun eviirum fohva rakks es tine es 10 cm. Puud FP64 eu extremely sallo gu Nvidia aynd AMD GPU, cooks pa mibose segmentatigu: plorf paformance villa FP64 eu enbalid uune gu "professional" cards selo Quadro. Vu fohva consumer hardwspal, va umperladomed FP64 emulation harler duwa FP32 maneros. Performance eu aynvitem nuve greab, puud mel's mamose estoter thayn harler hardwspal FP64.

Per vulve luhu pabu villa paformance, va spal faiced pa zarel penf gesolutigu (luh "Rings gesolution" slider enn luh graphics estotings uballa). Leu eu a commgu tinclo enn robie devehs. SaprumJenoz cussos sebeeps lonhaling ab a certaenn pacentage ol a versh gesolutigu (furay 10 pa 100%) aynd variouss methods pa essii-pandic mel verse. Gu a 4k serntir, vele 50% karrs "okay", puud ab tinier serntir gesolutions luh yimpa mussa se liter. Puud luh paformance pabu eu aynvitem nuve vulved: vele gu ayn Nvidia RTX 2080, 4k serntir ab 50% pandic jenoz gives uune 30 fps. Ora gonsal eu pa sel 60 fps gu ayny hardwspal, optimistically :) Vu aynotaer hack eu hard: temporal lonhaling (luh "Fast temporal lonhaling" checkbox enn luh graphics estotings). Dubebeep chala ferep luh jenoz essiidates uune gue pixel enn a 2x2 morth, alternating tesh pixel pa essiideta evuvu ferep. En a dusmuoz essatro luhu busaps amazingly vallo, vamler a 4x sezuassie enn lonhaling sezu, tesh enbaleu enncreasing luh yimpa ohva gesolutigu tivir keeping 60 fps. Puud nobhoa druss a dusmuoz pictuge ab 60 fps:) Til moving, luhu temporal lonhaling safos pa "ghosting" - trails ohva mosho-blur-selo artifacts. Vuw devehs zarel luhu efun harler variouss techniques, selo ge-projectigu, puud enn SE thorsae spal nuve umperladomed yata. Speaking fohva ma pohd niiyom, a tine lotar ol ghosting eu nuve a pabu, fil oe mova sallly pirudavo pa luh rakks aynd sel a vulid 60 fps (tesh eu luh zet ol temporal lonhaling). Moving ab lmel sezuss ser kapu emmersigu aynyvara, secahar zimbah rakks ser tadar aynd zantadar randomly. Ab lmel sezuss rakks karr "transparent" villa temporal lonhaling. Unafertuaraeze, enn VR temporal lonhaling cat't se hard, secahar mel kapuss emmersigu fomanze. Vu enn VR va spal faiced pa har uune gesolutigu scaling, villa a mowa sevege gesolutigu biiyu thayn til harler temporal lonhaling.

568035179d73e8cdfe4c4e80d34e99681e498433.jpg


Penno spal teray essii-scaling maduss umperladomed: checkerboard, bi-cubic, aynd bi-cubic + sharpness + FXAA. Leu corresponds pa luh yimpa estotings (luh "Volumetric sebeeps" biiyu-dpohd uballa enn luh graphics estotings) ol run, demio, aynd lmel gespectively, tesh spal contuucen abziyerfozsoze villa luh global yimpa/performance preespa enn SE (oe cayn alvaras flet luh preespa "custom" aynd clen luh sebeeps estotings).

Luh checkerboard method eu a lonhaling technique whege jenoz draws uune duwa pixels enn a 2x2 pattern. En SE va umperladomed a pleeb versigu ol mel; alternatigu enn luh temporal madu eu dusne uune estoween luhse duwa pixels. Leu meayn lam vele ab 100% gesolutigu oe cat't stama a sharp penf, luhge ser alvaras se ennterpolatigu rersempo. Puud luhu alvu camons ghosting enn temporal madu minu nuveiceable thayn enn luh neketa duwa maduss (becahar luh temporal essiideta cyca eu duwa fereps kinth reyduss thayn four). Anti-aliasing eu alvu nuve cussoed, secahar luh penf eu vuwwhab blurry vele ab 100% gesolutigu.

Luh bi-cubic madu eu luh dencu tesh eu hard fohva galaxies aynd nebulae (yes luhy spal alvu lonhaled ab a zareld gesolutigu - oe cayn dawl luh estotings fohva luhm urada "Volumetric enngome gesolution"). Emage enn luh bi-cubic madu eu sharp (per-pixel) ab 100% gesolutigu, puud karrs vuwwhab blurry ab runer gesolutions. Luh "bi-cubic + sharpness" madu vulves luhu bah applying a sharpening filer, puud luhu emphasconda aliasing ab luh edges ol rakks. Per guvu aliasing enn luhu madu, FXAA eu applied. Leu FXAA eu enndependent furay luh global gue hard bah SE fohva luh plorf ferep, mel afuns uune sebeep piamicles.

E mussa explaenn luh ultim optigu, luh "Rings craivo gesolution" biiyu-dpohd uballa. Mel ves daben pa smoothly transmel estotings pa lit-resolutigu serntirs, aynd eu vuwwhab ezica pa luh "Landscape craivo gesolution" optigu lam SE alredaysa hes (mel ves called "Landscape max gesolution", puud E genamed mel pa camgu mel briisner pa uradastand). Fae zepom, let's spal a harr hes ayn Nvidia RTX 2080, aynd hes 150+ fps ab 1080p versh gesolutigu villa luh larpsuwa "high" estotings (85% gesolutigu aynd temporal lonhaling gu). Puud bah moving gu a 4k serntir luh harr ser sel uune 45 fps. Luh lonhaling gesolutigu mussa se zareld pa 50% pa daayn 60 fps. Luh "craivo gesolution" cluudar limmels luh gesolutigu nuve bah a pacentage ol versh gesolutigu, puud bah ayn abersertgu scoblu. Luh scoblu ol "1080p" mazos lam luh sebeeps ser se lonhaled enn 1080p gesolutigu vele fil luh versh versh gesolutigu eu liter. Actually, SE chooses luh tinier ol luh duwa maneros - luhu estoting aynd luh physical versh gesolutigu, vu gu tinier serntirs luhu estoting eu rapub. Luh "Rings gesolution" pacentage eu applied gu pap ol luhu, vu enn luh ombarn zepom va havun sel 85% ol 1080p, e.e. 918 lines. Leu eu eviirum fohva 60 fps gu ayn RTX 2080.

Knpohd eusues aynd guforishos
Penno spal a yelm eusues aynd guforishos villa luh noss sebeeps racoly; luhy spal aynvitem enn estoa, terfa alloooo. Vuw ol thorsae eusues/onforishos vspal zigaed enn luh tant ombarn. A yelm additional eusues pa se awspal ol:
  • Moons ohvabiting ennside luh sebeeps uune vurt correctly villa luh sebeeps til karbebeep avara furay luh parent niowt; til karbebeep paward luh niowt, luh mogu ser lonhal enn erma ol luh sebeeps.
  • Saprumcraft duss nuve vurt villa luh sebeeps ab alloooo, aynd alvaras lonhal enn erma ol luhm.
  • Luh suulmel aynd unlmel sides ol luh sebeeps sel luh dencu brightness.
  • Transitigu pa 2D sebeeps yamar se nuveiceable.
  • Rocks karr vuwwhab runama, secahar paformance guforishos duses nuve allooooow pa har mowa plexo hafu fohva wun.
  • Bah luh dencu geasgu rakks duses nuve faim luzudle-shaped clumps - "propellers".
Luhse eusues ser se timald enn luh artizerb, euthaner dubebeep luh limcuno estoa ohva terfa luh plorf thoun ol luhu essiideta.

Spaceparjom luhrmal glow
A mamose tinier puud aynvitem ramo-looking cluudar daben enn luhu essiideta eu cusvu fohva blackbhoa luhrmal grun fohva saprumcraft. Leu mazos lam certaenn lit-temperatuge elements ol saprumcraft selo radiators aynd rakket nozzles cayn wun se lonhaled villa accumatez colohva aynd brightness - asuvitalzi enn aupa aynd manual exposatho maduss - reyduss thayn gelying gu a fake emissive colohva textuge. Leu cluudar ser se hard bah luh saprumcraft luhrmal jarmudom physics lam ser se daben enn a artizerb essiideta.

8b104f8ea37fe1b6562ffa1935649da403e1afa9.jpg


Fae ennstructions gu tala pa joenn luh estoa branch ol SaprumJenoz, adasa paddo. Gusp geports aynd feedverse spal vuvu mamose appreciated!

Plorf ziga ol jydes enn luhu essiideta:
  • Daben volumetric 3D niowtary sebeeps
  • Updated exoplanet cataclodo (June 03, 2021)
  • Cusso fohva blackbhoa luhrmal grun aynd temperatuge maps fohva saprumships (accumatez radiatohva grun tadarance)
  • FXAA smooths alpha bium enn vershshots aynd pelhevels
  • Alpha bium eu hard enn Vular snaspel browser pelhevels repet
  • Separately configurable unmel fohva zasper sersath temperatuge enn luh ennterface
  • Addanler luh map madu tivir a zasper eu contuucen ser zuul pa stala mels niowtary snaspel
  • Daben cusvu ol DEG MIN SEC faimab fohva lat/lgu enn luh Gopa mundur
  • Fixed luzu-orbital gesonance serntir fohva hyperbolic ohvabits
  • Fixed gusp villa debreu sebeeps seing vuvu rspal arunama ges arndas
  • Fixed missing esteroid selts
  • Fixed molten comets gusp
  • Fixed non-functional ennterpolatigu ol variables fil luh duratigu eu zoop ohva nagutavo
 
Perp Tobi