Jump to content
  • Advertisement
Sign in to follow this  
Emark

How to manipulate textures

This topic is 4053 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

I want to make holes into my map, but i dont know how i can manipulate the textures, so it would draw some black filled circle in the texture to make it transparent and look like a hole. Any links or direct help? I didnt find anything with google, maybe im using wrong keywords?

Share this post


Link to post
Share on other sites
Advertisement
It's been awhile since I've done anything much at all in GL but I don't think "texture modification" is quite the thing you're looking for. Look instead for things like "texture replacement" so you can replace the texture with a "hole" version.


Share this post


Link to post
Share on other sites
Quote:
Original post by methinks
Or have you considered applying the hole as a transparency map to on top of your texture?

Yes, but isnt that the same problem still? I dont know how to manipulate the transparency map :P

So is the only way to replace the texture with another? i cant manipulate it pixel by pixel?

Share this post


Link to post
Share on other sites
You can use either shaders, or you will have to keep an array of texture data around and modify that data and upload that data to the texture object you have assigned for the texture you want to modify. HTH

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!