Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Gruppi
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Gruppi
Skin
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Nessuna skin)
  • Nessuna skin
Collassa

Piero Bosio Web Site

Forum federato con il resto del mondo. Non contano le istanze, contano le persone

  1. Home
  2. Categorie
  3. Senza categoria
  4. i nerd sniped myself tonight and i imagine the NSA operative who is assigned to me is very confused by the increasingly erratic and frustrated google searches for HOW DO I CALCULATE THE MOON WHERE IS THE MOON

i nerd sniped myself tonight and i imagine the NSA operative who is assigned to me is very confused by the increasingly erratic and frustrated google searches for HOW DO I CALCULATE THE MOON WHERE IS THE MOON

Pianificato Fissato Bloccato Spostato Senza categoria
29 Post 5 Autori 1 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Josh Simmonsundefined Josh Simmons

    @aeva @jon_valdes alright I think we just use data from sdss and reproject it for alpha centuri, blindly extrapolating for the correct date using the star velocity. so no complex orbital mechanics. However for the planetary bodies in solar system we use code derived from https://stjarnhimlen.se/comp/ppcomp.html

    Jon Valdésundefined Questo utente è esterno a questo forum
    Jon Valdésundefined Questo utente è esterno a questo forum
    Jon Valdés
    scritto su ultima modifica di
    #11

    @dotstdy @aeva oh, nice!

    Word of caution about calculating these things on the GPU: implementations of trigonometric functions on the GPU are less accurate than you'd hope, and if you calculate a bunch of sin() and cos() for your view direction per pixel, they turn out not to be accurate enough for stable movement across a 60° fov on a 4K screen. Particularly Intel, which seems to barely pass the D3D precision requirements there...

    Josh Simmonsundefined 1 Risposta Ultima Risposta
    • Jon Valdésundefined Jon Valdés

      @dotstdy @aeva oh, nice!

      Word of caution about calculating these things on the GPU: implementations of trigonometric functions on the GPU are less accurate than you'd hope, and if you calculate a bunch of sin() and cos() for your view direction per pixel, they turn out not to be accurate enough for stable movement across a 60° fov on a 4K screen. Particularly Intel, which seems to barely pass the D3D precision requirements there...

      Josh Simmonsundefined Questo utente è esterno a questo forum
      Josh Simmonsundefined Questo utente è esterno a questo forum
      Josh Simmons
      scritto su ultima modifica di
      #12

      @jon_valdes @aeva right, yeah I should also mention all that is done on the cpu, and with double precision. I'm not really sure if you can even squeeze it to work with f32.

      Jon Valdésundefined 1 Risposta Ultima Risposta
      • Josh Simmonsundefined Josh Simmons

        @jon_valdes @aeva right, yeah I should also mention all that is done on the cpu, and with double precision. I'm not really sure if you can even squeeze it to work with f32.

        Jon Valdésundefined Questo utente è esterno a questo forum
        Jon Valdésundefined Questo utente è esterno a questo forum
        Jon Valdés
        scritto su ultima modifica di
        #13

        @dotstdy @aeva at least for star positioning f32 was barely enough for me... as long as I rolled my own trig functions

        aevaundefined 1 Risposta Ultima Risposta
        • Jon Valdésundefined Jon Valdés

          @dotstdy @aeva at least for star positioning f32 was barely enough for me... as long as I rolled my own trig functions

          aevaundefined Questo utente è esterno a questo forum
          aevaundefined Questo utente è esterno a questo forum
          aeva
          scritto su ultima modifica di
          #14

          @jon_valdes @dotstdy blessedly I'm planning on doing this on the cpu, but 😧

          Jon Valdésundefined 1 Risposta Ultima Risposta
          • aevaundefined aeva

            @jon_valdes @dotstdy blessedly I'm planning on doing this on the cpu, but 😧

            Jon Valdésundefined Questo utente è esterno a questo forum
            Jon Valdésundefined Questo utente è esterno a questo forum
            Jon Valdés
            scritto su ultima modifica di
            #15

            @aeva @dotstdy if you want to see this in action, open this shadertoy on a few different GPUs and compare the output on each. Particularly fun if you have a pre-Arc Intel GPU...

            https://www.shadertoy.com/view/dtlyD8

            aevaundefined 1 Risposta Ultima Risposta
            • Jon Valdésundefined Jon Valdés

              @aeva @dotstdy if you want to see this in action, open this shadertoy on a few different GPUs and compare the output on each. Particularly fun if you have a pre-Arc Intel GPU...

              https://www.shadertoy.com/view/dtlyD8

              aevaundefined Questo utente è esterno a questo forum
              aevaundefined Questo utente è esterno a questo forum
              aeva
              scritto su ultima modifica di
              #16

              @jon_valdes @dotstdy my laptop has a recent-ish Xe gpu

              aevaundefined Jon Valdésundefined 2 Risposte Ultima Risposta
              • aevaundefined aeva

                @jon_valdes @dotstdy my laptop has a recent-ish Xe gpu

                aevaundefined Questo utente è esterno a questo forum
                aevaundefined Questo utente è esterno a questo forum
                aeva
                scritto su ultima modifica di
                #17

                @jon_valdes @dotstdy it's bizarre seeing my 10 year old telephone's mali do better at... anything at all

                aevaundefined 1 Risposta Ultima Risposta
                • aevaundefined aeva

                  @jon_valdes @dotstdy it's bizarre seeing my 10 year old telephone's mali do better at... anything at all

                  aevaundefined Questo utente è esterno a questo forum
                  aevaundefined Questo utente è esterno a questo forum
                  aeva
                  scritto su ultima modifica di
                  #18

                  @jon_valdes @dotstdy though I guess the corner the intel case is cutting is where the slope starts to level out so I guess that makes sense. are CPU trig functions just as bad?

                  aevaundefined 1 Risposta Ultima Risposta
                  • aevaundefined aeva

                    @jon_valdes @dotstdy though I guess the corner the intel case is cutting is where the slope starts to level out so I guess that makes sense. are CPU trig functions just as bad?

                    aevaundefined Questo utente è esterno a questo forum
                    aevaundefined Questo utente è esterno a questo forum
                    aeva
                    scritto su ultima modifica di
                    #19

                    @jon_valdes @dotstdy would mollytime get a warmer, fuller sound if i switched to expensive software sine waves :3

                    Josh Simmonsundefined 1 Risposta Ultima Risposta
                    • aevaundefined aeva

                      @jon_valdes @dotstdy would mollytime get a warmer, fuller sound if i switched to expensive software sine waves :3

                      Josh Simmonsundefined Questo utente è esterno a questo forum
                      Josh Simmonsundefined Questo utente è esterno a questo forum
                      Josh Simmons
                      scritto su ultima modifica di
                      #20

                      @aeva @jon_valdes generally cpu trig is not so bad, but does vary between platforms if you're just calling the c stdlib functions (but we're talking differences of 1 ulp or so). so yes, absolutely you can get a warmer fuller soundstage by switching to a different sin.

                      aevaundefined 1 Risposta Ultima Risposta
                      • aevaundefined aeva

                        @jon_valdes @dotstdy my laptop has a recent-ish Xe gpu

                        Jon Valdésundefined Questo utente è esterno a questo forum
                        Jon Valdésundefined Questo utente è esterno a questo forum
                        Jon Valdés
                        scritto su ultima modifica di
                        #21

                        @aeva @dotstdy Yup! I was using trig to calculate screen positions for the stars. And as the skydome rotates, when the sin/cos of some stars happened to cross those bright lines you're seeing, they'd first slow down, and then jump over a very specific line in the sky. Was great 🙄

                        aevaundefined 1 Risposta Ultima Risposta
                        • Jon Valdésundefined Jon Valdés

                          @aeva @dotstdy Yup! I was using trig to calculate screen positions for the stars. And as the skydome rotates, when the sin/cos of some stars happened to cross those bright lines you're seeing, they'd first slow down, and then jump over a very specific line in the sky. Was great 🙄

                          aevaundefined Questo utente è esterno a questo forum
                          aevaundefined Questo utente è esterno a questo forum
                          aeva
                          scritto su ultima modifica di
                          #22

                          @jon_valdes @dotstdy 😧

                          1 Risposta Ultima Risposta
                          • Josh Simmonsundefined Josh Simmons

                            @aeva @jon_valdes generally cpu trig is not so bad, but does vary between platforms if you're just calling the c stdlib functions (but we're talking differences of 1 ulp or so). so yes, absolutely you can get a warmer fuller soundstage by switching to a different sin.

                            aevaundefined Questo utente è esterno a questo forum
                            aevaundefined Questo utente è esterno a questo forum
                            aeva
                            scritto su ultima modifica di
                            #23

                            @dotstdy @jon_valdes maybe I'll call the expensive exact soft sin oscillator "gold plated sin" 🤔

                            demofoxundefined 1 Risposta Ultima Risposta
                            • aevaundefined aeva

                              @dotstdy @jon_valdes maybe I'll call the expensive exact soft sin oscillator "gold plated sin" 🤔

                              demofoxundefined Questo utente è esterno a questo forum
                              demofoxundefined Questo utente è esterno a questo forum
                              demofox
                              scritto su ultima modifica di
                              #24

                              @aeva @dotstdy @jon_valdes start a new genre "deca-dance"

                              aevaundefined 1 Risposta Ultima Risposta
                              • demofoxundefined demofox

                                @aeva @dotstdy @jon_valdes start a new genre "deca-dance"

                                aevaundefined Questo utente è esterno a questo forum
                                aevaundefined Questo utente è esterno a questo forum
                                aeva
                                scritto su ultima modifica di
                                #25

                                @demofox @dotstdy @jon_valdes well so far I can't tell the difference by ear between the soft sin and the double precision sin that clang gives me

                                aevaundefined 1 Risposta Ultima Risposta
                                • aevaundefined aeva

                                  @demofox @dotstdy @jon_valdes well so far I can't tell the difference by ear between the soft sin and the double precision sin that clang gives me

                                  aevaundefined Questo utente è esterno a questo forum
                                  aevaundefined Questo utente è esterno a questo forum
                                  aeva
                                  scritto su ultima modifica di
                                  #26

                                  @demofox @dotstdy @jon_valdes assuming I didn't screw anything up adapting Jon's shader toy, the 30 iteration soft sin also has the surprising property of being able to clip out of the expected -1.0 to 1.0 output range https://github.com/Aeva/mollytime/blob/af58e9237903856b6193a116ae6408038dc47d4a/src/patch.cpp#L319

                                  Tom Forsythundefined 1 Risposta Ultima Risposta
                                  • aevaundefined aeva

                                    @demofox @dotstdy @jon_valdes assuming I didn't screw anything up adapting Jon's shader toy, the 30 iteration soft sin also has the surprising property of being able to clip out of the expected -1.0 to 1.0 output range https://github.com/Aeva/mollytime/blob/af58e9237903856b6193a116ae6408038dc47d4a/src/patch.cpp#L319

                                    Tom Forsythundefined Questo utente è esterno a questo forum
                                    Tom Forsythundefined Questo utente è esterno a questo forum
                                    Tom Forsyth
                                    scritto su ultima modifica di
                                    #27

                                    @aeva @demofox @dotstdy @jon_valdes There's lots of versions of CPU sin/cos as well. The fastest is basically identical to the GPU one - about 12 bits of precision, IIRC. Then they do iteration internally if you want higher precision. There's no magic - everything costs!

                                    As you noticed, sometimes it's better not to call sin-vs-cos, because you're not guaranteed to get magnitude 1.0. In those cases it's better to get sin and derive the other by doing sqrt(1-sin^2).

                                    Tom Forsythundefined 1 Risposta Ultima Risposta
                                    • Tom Forsythundefined Tom Forsyth

                                      @aeva @demofox @dotstdy @jon_valdes There's lots of versions of CPU sin/cos as well. The fastest is basically identical to the GPU one - about 12 bits of precision, IIRC. Then they do iteration internally if you want higher precision. There's no magic - everything costs!

                                      As you noticed, sometimes it's better not to call sin-vs-cos, because you're not guaranteed to get magnitude 1.0. In those cases it's better to get sin and derive the other by doing sqrt(1-sin^2).

                                      Tom Forsythundefined Questo utente è esterno a questo forum
                                      Tom Forsythundefined Questo utente è esterno a questo forum
                                      Tom Forsyth
                                      scritto su ultima modifica di
                                      #28

                                      @aeva @demofox @dotstdy @jon_valdes Also, if you care about precision at all, do range reduction yourself beforehand. Otherwise you have no idea how it's being done internally.

                                      aevaundefined 1 Risposta Ultima Risposta
                                      • Tom Forsythundefined Tom Forsyth

                                        @aeva @demofox @dotstdy @jon_valdes Also, if you care about precision at all, do range reduction yourself beforehand. Otherwise you have no idea how it's being done internally.

                                        aevaundefined Questo utente è esterno a questo forum
                                        aevaundefined Questo utente è esterno a questo forum
                                        aeva
                                        scritto su ultima modifica di
                                        #29

                                        @TomF @demofox @dotstdy @jon_valdes I already do the range reduction. I learned that the hard way once upon a time XD

                                        1 Risposta Ultima Risposta
                                        Rispondi
                                        • Topic risposta
                                        Effettua l'accesso per rispondere
                                        • Da Vecchi a Nuovi
                                        • Da Nuovi a Vecchi
                                        • Più Voti


                                        Gli ultimi otto messaggi ricevuti dalla Federazione
                                        • Ivanoundefined
                                          Ivano

                                          @francina1909 bisogna dar fiducia, sempre...

                                          per saperne di più

                                        • adriananselmoundefined
                                          adriananselmo

                                          Non ho voglia di dormire da sola. Una trasferta breve, capitata anche al momento giusto per capirci e mancarci, ma comunque non ho voglia di stare sola.

                                          per saperne di più

                                        • Poliedricaundefined
                                          Poliedrica

                                          @adriananselmo eh già. Io ho provato e riprovato più volte ad entrarci ma, come si vede anche dall’immagine che hanno utilizzato per il link, è proprio fatto male. L’usabilità, la grafica ti fa pensare che c’è qualcosa che non va.

                                          per saperne di più

                                        • adriananselmoundefined
                                          adriananselmo

                                          @ro @eccosilvia a Gaza è genocidio tutto il resto sono cazzate...

                                          per saperne di più

                                        • The Gib :startrek:undefined
                                          The Gib :startrek:

                                          @antilopefusa @extratrek @Godai71
                                          L'episodio finale è, come molti di questa stagione, un'idea interessante ma sviluppata male; parlo di coerenza, non di romanticismo (in senso lato) che è inequivocabile.

                                          Ammp questa stagione rimane sotto tono rispetto alle altre, e "Capitan Marvel Batel" 😉 ne è la "degna" conclusione.

                                          Un plauso alla colonna sonora, "Wait" degli M83 (quelli di "Oblivion" con Tommaso Crociera).

                                          P.S. i rimandi ad altro ST ed oltre sono talmente tanti che stordiscono.

                                          per saperne di più

                                        • Dr. Morgan Lemmer-Webberundefined
                                          Dr. Morgan Lemmer-Webber

                                          Child (frantically pointing at my tub of candy corn on the belt): "Mom! Look!"

                                          Mom: "Oh, is the Halloween stuff out already?"

                                          Me (turning around from my cart with a bag of Halloween candy on top of some pumpkin cupcakes): "Um ... yes"

                                          Child: "Why can't I have that!"

                                          Mom: "We only made it halfway through Target and you wanted to check out because you're wearing your heels."

                                          Child: growls and stomps her plastic costume heel on the floor in indignation

                                          per saperne di più

                                        • Dr. Morgan Lemmer-Webberundefined
                                          Dr. Morgan Lemmer-Webber

                                          On a related note: There are officially Halloween things in stores now! I may have gone a bit overboard at Target yesterday and made a child extremely jealous at the checkout counter

                                          per saperne di più

                                        • Rosita Cundefined
                                          Rosita C

                                          @eccosilvia è una persona molto intelligente. Appunto, non è una questione di mancanza di rispetto, le identità sono libere di esistere. Le etichette ghettizzano e non uniscono. Il dolore di perdere un figlio è disumano, pare sia difficile pure definire quello che sta accadendo a Gaza, se genocidio o no...

                                          @adriananselmo

                                          per saperne di più
                                        • Accedi

                                        • Accedi o registrati per effettuare la ricerca.
                                        Powered by NodeBB Contributors
                                        • Primo post
                                          Ultimo post