|
Atari coding BBS
Re: Texture U/V misunderstanding |
Posted by: mikro
|
Jan,26.2015-10:05
|
hi orion,
> move.l #$0001FFFF,d0 ; U = 1 V = -1
this doesn't make sense. what would you expect to load from texture coordinate -1 if your texture is 0..1 ? What you actually demonstrated is an underflow situation -- for exactly such cases democoders use tricks like putting the same textures next to each other so when an overflow/underflow occurs, code stills reads from a sane texture location and not some garbage.
btw, the innerloop you're playing with is overkill. the classic routine to map 256x256 textures is this one:
.loop:
move.w d0,d6
move.b d1,d6
move.b (a0,d6.l),(a1)+
addx.l d2,d0
addx.l d3,d1
dbra d7,.loop
|
[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.
|