|
Atari coding BBS
Re: Texture U/V misunderstanding |
Posted by: mikro
|
Jan,27.2015-11:26
|
> when I write move.l #$0001FFFF,d0 ; U = 1 V = -1
> I mean: U increment = 1/256 , V increment = -1/256
> so that would be something like: Uinc = 0,00390625, Vinc = -0,00390625
Ah so, I'm sorry. Well, the root of your troubles lies in the fact that you're forgetting that while your texture is working with unsigned numbers (0..1 or 0..255) you expect to have your slopes signed (-1..1 in 7.8 fixed point). So you can either "convert" your coordinates to -128..127 or to use the add.l / addx.b trick -- in that way the sign will be kept separated.
|
[All messages in this thread] [Start new thread]
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.
|