This is sort of a continuation on my post yesterday, but it's a completely different problem so I'm making a new post. I just got it so that a sprite can show up in the corner of the screen of a 3D game, and now I'm noticing that when I do this, the 3D objects are displayed really weirdly. Most notably, I'm using terrain, and all of the terrain that is more than a certain distance away is displayed with holes in it and random colors on top of it. I narrowed down the cause to this function call:
dbSprite ( 1, 20, 20, 11 );
The image is a valid image, as it appears exactly the way I want it to at the top left of the screen. It looks like the act of having a sprite around though is causing the problem, since I called the function to not display the sprite after it is created and the problem is still there even though the sprite isn't visible. I also tried playing around with values of transparency and backsave, but they did nothing. I even tried the set image function followed by the paste sprite function to see if I could work around calling dbSprite, but then the sprite just didn't show up. Does anyone have any idea why this would be happening? Thanks.