Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari demoscene BBS
 
Re: Doom floor texturing
Posted by: dml Jan,22.2013-10:48 

After a bit more thought I think it's possible to make that ^^^ nice compact non-wrapping tex lookup work with wrapping after all. It's difficult but seems like it can be done so I should look at it.

The textures would need to be doubled up to 2x2 (so 128sqr in my case) which is expensive but still much better than 256sqr which I think would be too much for this project.

The (xs/du)-u and (ys/dv)-v could be used to predict when the next wrap will occur before a sub-span is drawn and the sub span draws that many pixels plus some margin (but no more than the other axis' predicted wrap point so only 1 axis needs wrapped at a time). The u or v is then reset by one texture before the next prediction and drawing resumes.

Expensive setup involved but the 1/du stuff can be approximated with a lookup. Not sure about the rest yet - signed du,dv could be tricky. If it works it could be quite good for very long spans and when du/dv has favourable range.









[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Doom floor texturing dml Jan,21.2013-18:47
  Re: Doom floor texturing dml Jan,21.2013-18:48
    Re: Doom floor texturing dml Jan,21.2013-21:33
      Re: Doom floor texturing Defjam Jan,21.2013-21:44
        Re: Doom floor texturing dml Jan,21.2013-22:38
        Re: Doom floor texturing dml Jan,22.2013-10:48
      Re: Doom floor texturing mikro Jan,22.2013-11:03
        Re: Doom floor texturing dml Jan,22.2013-11:43
          Re: Doom floor texturing mikro Jan,22.2013-13:30
            Re: Doom floor texturing mikro Jan,22.2013-13:36
              Re: Doom floor texturing mikro Jan,22.2013-13:37
                Re: Doom floor texturing dml Jan,22.2013-15:18
                  Re: Doom floor texturing mikro Jan,22.2013-16:22
                    Re: Doom floor texturing dml Jan,23.2013-00:55
                      Re: Doom floor texturing mikro Jan,23.2013-10:12
                        Re: Doom floor texturing dml Jan,23.2013-13:00
                        Re: Doom floor texturing Calimero Jan,24.2013-03:14
                  Re: Doom floor texturing ggn Jan,22.2013-16:41
                  Re: Doom floor texturing ggn Jan,22.2013-16:42
                    Re: Doom floor texturing dml Jan,23.2013-01:07
            Re: Doom floor texturing dml Feb,03.2013-20:23
              Re: Doom floor texturing mikro Feb,03.2013-22:07
          Re: Doom floor texturing dml Jan,23.2013-18:01
            Re: Doom floor texturing mikro Jan,23.2013-23:39


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson