#27205 - DiscoStew - Wed Oct 06, 2004 9:18 am
I'm using Cearn's method of implementing Mode7 with BG 2, so if you need references to how Mode7 is implemented his way, go here.
This is one of the weirdest things I've ever seen. I've got my background loaded correctly with the necessary map and tile cel data, and everything displays correctly. When the WrapAround bit is set, I can change the 'phi' value to whatever value I want, and the background will rotate to that specific value when ANDing it with 511 (the sin and cos tables are based off 512 = 2pi, not 360 = 2pi). However, when the WrapAround bit is not set, it will still work, except that once the 'phi' value is not between and including 0 to 128, the BG disappears.
The only thing I'm changing is the WrapAround bit in the BG control register. Just a thought, I'm thinking that once 'phi' goes beyond the range of 0 and 128, the actual X/Y position of the BG goes off in some direction, leaving the screen blank with no BG to display. However, wherever that position is, it is lined up perfectly whereever it is that when the WrapAround bit is set, the BG, in a sense, wraps itself back around to where it should be, making it look like it was there all along.
Any thoughts on this? Hopefully Cearn will see this.
_________________
DS - It's all about DiscoStew
This is one of the weirdest things I've ever seen. I've got my background loaded correctly with the necessary map and tile cel data, and everything displays correctly. When the WrapAround bit is set, I can change the 'phi' value to whatever value I want, and the background will rotate to that specific value when ANDing it with 511 (the sin and cos tables are based off 512 = 2pi, not 360 = 2pi). However, when the WrapAround bit is not set, it will still work, except that once the 'phi' value is not between and including 0 to 128, the BG disappears.
The only thing I'm changing is the WrapAround bit in the BG control register. Just a thought, I'm thinking that once 'phi' goes beyond the range of 0 and 128, the actual X/Y position of the BG goes off in some direction, leaving the screen blank with no BG to display. However, wherever that position is, it is lined up perfectly whereever it is that when the WrapAround bit is set, the BG, in a sense, wraps itself back around to where it should be, making it look like it was there all along.
Any thoughts on this? Hopefully Cearn will see this.
_________________
DS - It's all about DiscoStew