Advertisement Jump to content
Sign in to follow this  
mcmc

hello i need help with textures

This topic is 4905 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello i am making a Gun's game just like Doom3 and stuff like that so look i have builded the world but i got a problom when i load the BMP texture of the gun it have a black background so its i'm moving in the world with my gun but my gun's background is black how do i make it without the background of it? so i'll see only the gun and my 3d world? thx

Share this post


Link to post
Share on other sites
Advertisement
To add to what unfinished said; there are many other image formats that support transparency, but nehe has code for tga. You'd be better off using alpha test than blending - essentially it tells opengl to ignore any pixels with an alpha value lower than a certain amount, which is exactly what you want (or will, once you've got your bmp into a format with an alpha channel). There are other ways to do it, but this is the simplest way to do what you want.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!