Skip to main content
GameDev.net gamedev.net
🔒 Locked

sprite prob

Started by dazscott Mar 19, 2005 at 5:37 AM 1 replies 1k views
Original Post
dazscott
dazscott
Im trying to render a non - rectangular sprite(bmp file) for a UI, I edited the image in photoshop and extracted the section I wanted. The problem is the image is rendered in a rectangle with white as the bg colour. how do I just render the section I want?
mrmrcoleman
mrmrcoleman
In Photoshop add an alpha layer and define the section you want to be 'invisible' i.e. not white, save the image in a format that supports alpha (I like png!). Then you have to enable texture alpha in your render states. Badda bing!

Kind regards,

Mark Coleman
dazscott
dazscott
had a feelin id have to do that. thanks for reply

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.