I'm creating a basic solar system simulator. I want to have spheres for planets, with floating text labels under them. The logical thing seemed to use sprites, so I wrote code to create a texture, draw the text on the screen, and copy the text to the texture using copyrect. Then I created a sprite and told it to use that texture.
Everything was going fine until I tried to make the sprite transparent. You see, I just want the words to float in space with no annoying black box around them. I had already set the "flags" value in the createtexture command to 48 in order to use the ClampU and ClampV modes and prevent the text from wrapping, and it worked just fine... so I added 4 to turn on masking as well, and then things went goofy.
The words became transparent, but got squished into the left half of the sprite, while the right half became a non-transparent black box. I'm a newcomer to B3d and have no idea why this is happening. Any tips?
Everything was going fine until I tried to make the sprite transparent. You see, I just want the words to float in space with no annoying black box around them. I had already set the "flags" value in the createtexture command to 48 in order to use the ClampU and ClampV modes and prevent the text from wrapping, and it worked just fine... so I added 4 to turn on masking as well, and then things went goofy.
The words became transparent, but got squished into the left half of the sprite, while the right half became a non-transparent black box. I'm a newcomer to B3d and have no idea why this is happening. Any tips?