Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Transparent Sprites
Topic Started: Jul 6 2006, 02:56 AM (425 Views)
Xeniczone
Elite Member
[ *  *  *  * ]
I've been using the code. create2d along with a bmp image.

After getting the color right. I loaded the game, but I keep having this small boarder around my 2d object where their is an alpha or something issue is their a way to get rid of this?
Posted ImageComcast sucks!Posted Image
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Xeniczone
Jul 6 2006, 01:56 AM
I've been using the code. create2d along with a bmp image.

After getting the color right. I loaded the game, but I keep having this small boarder around my 2d object where their is an alpha or something issue is their a way to get rid of this?

Use a full transparent .png image.in Photoshop just choose 'New' > Transparent Background > OK...and you will have a transparent background to draw on. Then you just save that as a .png. That's the best way, then there will be no borders if you draw the texture on the transparent background. You can also make a alpha channel in Gimp, but it's not as good method as with Photoshop.
Offline Profile Quote Post Goto Top
 
Xeniczone
Elite Member
[ *  *  *  * ]
Nope, still get a boarder. I went in their and made the background transperant and exported it.
Posted ImageComcast sucks!Posted Image
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Xeniczone
Jul 9 2006, 07:52 PM
Nope, still get a boarder. I went in their and made the background transperant and exported it.

That's impossible. :huh: If you have used a transparent background then only the texture will be visible in your game. There wont be any borders because there doesn't exist any background with any borders in the first place.
Offline Profile Quote Post Goto Top
 
Dazed and Cold
Member Avatar
Helper
[ *  *  *  * ]
Heres an Idea

go to Imageshack.us

and upload that image that you would like transparent.. I will do the nasty yet easy work and make it work for you in your game... and then upload it back up for you with instructions of 1. what i did 2. how i did it 3. tools i used 4. how it works :)

You can learn from it i think! :D
Offline Profile Quote Post Goto Top
 
Xeniczone
Elite Member
[ *  *  *  * ]
Quote:
 
That's impossible.  If you have used a transparent background then only the texture will be visible in your game. There wont be any borders because there doesn't exist any background with any borders in the first place.


I'm sorry dispilleaions(I'm sorry again for spelling it wrong), I don't have Photoshop. So I use the closest thing to it that is free. Adobe Imageready. I just made the background transperant and exported it to TGA.
Posted ImageComcast sucks!Posted Image
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Use picture sizes that are made up of powers of two, such as 64*128 or 256*256. Else the picture will be scaled to dimensions like this, because 3D graphics hardware doesn't support other texture dimensions and this can result in these unpretty borders.
Offline Profile Quote Post Goto Top
 
Xeniczone
Elite Member
[ *  *  *  * ]
brillient!

EDIT: odd I used to have it at 64x64. But now I have it at 256x256 and no boarder.
Posted ImageComcast sucks!Posted Image
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply