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

Multitexture masking

Started by mannam Aug 4, 2003 at 12:19 AM 3 replies 350+ views
Original Post
mannam
mannam
Hello, I want to render a tree. Each branch of the tree is a texture with masking. The problem is, to produce masking effect, I have to render the branches one by one. But I don't want to distinguish the branches in the model file... My final option is using multitexture in masking. The mask is ok but the branches become transparent...because the lack of info about multitexture extension, it's hard to me to trace the solution...Can anyone help? Thank you very much. [edited by - mannam on August 4, 2003 1:21:27 AM]
ShlomiSteinberg
ShlomiSteinberg
Use a tga with alpha channel + ALPHA_TESTING and no multitexturing

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Member of the Shove Pouya Off A Cliff club, SPOAC. (If you wish to join, add this line to your signature.)Member of "Un-Ban nes8bit" association, UNA (to join put this in your sig)
mannam
mannam
Thanks ShlomiSteinberg

But I used jpeg as the texture format in my implementation...so...
ShlomiSteinberg
ShlomiSteinberg
No idea about jpeg, you can use jpeg with alpha channel, right?

Any way I use bmps, tgas, rgbs, ddss in my app.

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Member of the Shove Pouya Off A Cliff club, SPOAC. (If you wish to join, add this line to your signature.)Member of "Un-Ban nes8bit" association, UNA (to join put this in your sig)
mannam
mannam
anyway, thanks for help

Topic Locked

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

Sign in to reply to this topic.