Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Recenti
  • Popolare
  • Tag
  • Utenti
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 Social Web Site Personale Logo Federation

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Senza categoria
  4. Can't sleep so I'm thinking about block game's direct lightingIt's kinda cool and I'm sure I can hammer out the remaining bugs but I'm not sure if it should stay.

Can't sleep so I'm thinking about block game's direct lightingIt's kinda cool and I'm sure I can hammer out the remaining bugs but I'm not sure if it should stay.

Pianificato Fissato Bloccato Spostato Senza categoria
9 Post 2 Autori 0 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.
  • Eniko Foxundefined Questo utente è esterno a questo forum
    Eniko Foxundefined Questo utente è esterno a questo forum
    Eniko Fox
    scritto ultima modifica di
    #1

    Can't sleep so I'm thinking about block game's direct lighting

    It's kinda cool and I'm sure I can hammer out the remaining bugs but I'm not sure if it should stay. Unlike minecraft's flood fill style lighting (which it's also still doing) there's no clever tricks to deal with recalculating this lighting. I just gotta nuke it all and recalculate it for every single light

    Which in a game where players can spam lights could become a problem?

    Eniko Foxundefined 1 Risposta Ultima Risposta
    • Eniko Foxundefined Eniko Fox

      Can't sleep so I'm thinking about block game's direct lighting

      It's kinda cool and I'm sure I can hammer out the remaining bugs but I'm not sure if it should stay. Unlike minecraft's flood fill style lighting (which it's also still doing) there's no clever tricks to deal with recalculating this lighting. I just gotta nuke it all and recalculate it for every single light

      Which in a game where players can spam lights could become a problem?

      Eniko Foxundefined Questo utente è esterno a questo forum
      Eniko Foxundefined Questo utente è esterno a questo forum
      Eniko Fox
      scritto ultima modifica di
      #2

      I could (and probably should) shove the lighting to a background thread and that would help but I'm thinking about what if there's something like pistons moving blocks around multiple times per second. Then the lighting thread would just get backed up and get further and further behind so its not like that's a proper solution either

      On the other hand if I just commit to it I could probably optimize it at least a bit over time. And it could be an option, so you can disable it on slower systems

      Eniko Foxundefined 1 Risposta Ultima Risposta
      • Eniko Foxundefined Eniko Fox

        I could (and probably should) shove the lighting to a background thread and that would help but I'm thinking about what if there's something like pistons moving blocks around multiple times per second. Then the lighting thread would just get backed up and get further and further behind so its not like that's a proper solution either

        On the other hand if I just commit to it I could probably optimize it at least a bit over time. And it could be an option, so you can disable it on slower systems

        Eniko Foxundefined Questo utente è esterno a questo forum
        Eniko Foxundefined Questo utente è esterno a questo forum
        Eniko Fox
        scritto ultima modifica di
        #3

        But if I commit to it, and I *can't* make it better enough, what if I paint myself into a corner long term?

        😕 don't know what to do

        Eniko Foxundefined 1 Risposta Ultima Risposta
        • Eniko Foxundefined Eniko Fox

          But if I commit to it, and I *can't* make it better enough, what if I paint myself into a corner long term?

          😕 don't know what to do

          Eniko Foxundefined Questo utente è esterno a questo forum
          Eniko Foxundefined Questo utente è esterno a questo forum
          Eniko Fox
          scritto ultima modifica di
          #4

          Basically it looks kinda neat but idk if it's worth all the development time both current and future and I'm worried I'll paint myself into a corner if I keep it

          aevaundefined Eniko Foxundefined 2 Risposte Ultima Risposta
          • Eniko Foxundefined Eniko Fox

            Basically it looks kinda neat but idk if it's worth all the development time both current and future and I'm worried I'll paint myself into a corner if I keep it

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

            @eniko you can always come back and add it later if it really turns out to be necessary

            Eniko Foxundefined 1 Risposta Ultima Risposta
            • aevaundefined aeva

              @eniko you can always come back and add it later if it really turns out to be necessary

              Eniko Foxundefined Questo utente è esterno a questo forum
              Eniko Foxundefined Questo utente è esterno a questo forum
              Eniko Fox
              scritto ultima modifica di
              #6

              @aeva it's purely aesthetic so, that's unlikely to happen?

              1 Risposta Ultima Risposta
              • Eniko Foxundefined Eniko Fox

                Basically it looks kinda neat but idk if it's worth all the development time both current and future and I'm worried I'll paint myself into a corner if I keep it

                Eniko Foxundefined Questo utente è esterno a questo forum
                Eniko Foxundefined Questo utente è esterno a questo forum
                Eniko Fox
                scritto ultima modifica di
                #7

                ok having slept on this i'm an idiot. the nice thing about the direct lighting is that each vertex just casts a ray at each light source

                this means unlike the other floodfill based lighting it's

                1. highly parallelizable
                2. much easier to stagger the calculations over multiple frames

                aevaundefined 1 Risposta Ultima Risposta
                • Eniko Foxundefined Eniko Fox

                  ok having slept on this i'm an idiot. the nice thing about the direct lighting is that each vertex just casts a ray at each light source

                  this means unlike the other floodfill based lighting it's

                  1. highly parallelizable
                  2. much easier to stagger the calculations over multiple frames

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

                  @eniko also you don't have to trace them for every light just the closest / brightest lights

                  Eniko Foxundefined 1 Risposta Ultima Risposta
                  • aevaundefined aeva

                    @eniko also you don't have to trace them for every light just the closest / brightest lights

                    Eniko Foxundefined Questo utente è esterno a questo forum
                    Eniko Foxundefined Questo utente è esterno a questo forum
                    Eniko Fox
                    scritto ultima modifica di
                    #9

                    @aeva that's true. any accumulation over 1.0 doesn't even do anything in my system so once a point hits that it could just stop

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


                    Feed RSS
                    Can't sleep so I'm thinking about block game's direct lightingIt's kinda cool and I'm sure I can hammer out the remaining bugs but I'm not sure if it should stay.

                    Gli ultimi otto messaggi ricevuti dalla Federazione
                    • Generale Specificoundefined
                      Generale Specifico

                      @filippodb @giochi @diggita @giochi@diggita.com

                      CI sono capitato algoritmicamente inseguendo il video di un recensore li'citato che apre ad una visione molto critica riguardo a certe "coroporazioni"anche in rete.

                      per saperne di più

                    • Elena ``of Valhalla''undefined
                      Elena ``of Valhalla''
                      @gregeganSF I mean, the Victorians already knew that ice cream parlours are a den of criminality
                      per saperne di più

                    • Global Sumud Flotillaundefined
                      Global Sumud Flotilla

                      boat Legal Support: #Shireen

                      #BreakTheSiege
                      #FreePalestine
                      #SailToGaza
                      #GlobalMovementToGaza
                      #GlobalSumudFlotilla

                      per saperne di più

                    • [AF]2050undefined
                      [AF]2050

                      2025. l'anno in cui i big tech hanno rotto il cazzo, a livello più globale di prima.

                      Ora che sia Microsoft e Apple sono nella merda, il vero vincitore è Linux...
                      Mi scoccia comunque questa cosa, ve lo devo assicurare...

                      per saperne di più

                    • 𝓑𝓻𝓸𝓷𝓼𝓸𝓷  🐐undefined
                      𝓑𝓻𝓸𝓷𝓼𝓸𝓷 🐐

                      @valhalla @OpenGiornale Che faccia diventare neurodivergenti mi sembra al limite del paranormale.

                      per saperne di più

                    • Christine Lemmer-Webberundefined
                      Christine Lemmer-Webber

                      put your best guess of what happened here and why I wrote these messages like this

                      per saperne di più

                    • :fedora: filippodb ⁂ :cc:undefined
                      :fedora: filippodb ⁂ :cc:

                      @generalespecifico ciao, in effetti i recensori entusiasti mi hanno sempre convinto poco, bene che se ne parli! i Questi messaggi sui videogame puoi rilanciarli nel gruppo @giochi di @diggita aggiuungendo questo tag:

                      @giochi@diggita.com

                      così diamo maggiore visibilità a qesta denuncia, grazie! :)

                      per saperne di più

                    • Maronno Winchester :antifa:undefined
                      Maronno Winchester :antifa:

                      Nebbia sullo Stretto: Salvini mostra i rendering ma nasconde gli atti | Left

                      https://left.it/2025/09/23/nebbia-sullo-stretto-salvini-mostra-i-rendering-ma-nasconde-gli-atti/

                      > Un viadotto di menzogne appoggiato sul nulla

                      per saperne di più
                    Powered by NodeBB Contributors
                    Post suggeriti
                    • Global Sumud Flotillaundefined

                      boat Legal Support: #Shireen#BreakTheSiege#FreePalestine#SailToGaza#GlobalMovementToGaza#GlobalSumudFlotilla

                      Seguito Ignorato Pianificato Fissato Bloccato Spostato Senza categoria shireen breakthesiege freepalestine sailtogaza globalmovementtogaza globalsumudflotilla
                      1
                      1
                      0 Votazioni
                      1 Post
                      0 Visualizzazioni
                      Nessuno ha risposto
                    • [AF]2050undefined

                      2025. l'anno in cui i big tech hanno rotto il cazzo, a livello più globale di prima

                      Seguito Ignorato Pianificato Fissato Bloccato Spostato Senza categoria
                      1
                      0 Votazioni
                      1 Post
                      0 Visualizzazioni
                      Nessuno ha risposto
                    • Maronno Winchester :antifa:undefined

                      Nebbia sullo Stretto: Salvini mostra i rendering ma nasconde gli atti | Lefthttps://left.it/2025/09/23/nebbia-sullo-stretto-salvini-mostra-i-rendering-ma-nasconde-gli-atti/> Un viadotto di menzogne appoggiato sul nulla

                      Seguito Ignorato Pianificato Fissato Bloccato Spostato Senza categoria
                      1
                      1
                      0 Votazioni
                      1 Post
                      0 Visualizzazioni
                      Nessuno ha risposto
                    • Global Sumud Flotillaundefined

                      Sail with us !

                      Seguito Ignorato Pianificato Fissato Bloccato Spostato Senza categoria breakthesiege freepalestine sailtogaza globalmovementtogaza globalsumudflotilla
                      1
                      1
                      0 Votazioni
                      1 Post
                      0 Visualizzazioni
                      Nessuno ha risposto
                    • Accedi

                    • Accedi o registrati per effettuare la ricerca.
                    • Primo post
                      Ultimo post