Skip to main content
gamedev.net
🔒 Locked

Texture Alpha channel problem?

Started by briantsim 1 reply 550+ views
Original Post
briantsim
briantsim
Hi all, I created mesh.box object with my game. The mesh has a texture. I want to set the mesh alpha channel 80%. How to change a mesh alpha channel for c#?Below is my source code. //create mesh object boxMesh = Mesh.Box(renderer.Device, 100,100,100); //========================================== //on paint renderer.Device.SetTexture(0, texture); boxMesh.DrawSubset(0); //============================================ Best regards,
FReY
FReY
Hi briantsim,

The easiest way will probably be to load your texture file into Adobe Photoshop or the Gimp, add an alpha channel (if there is none already) and manually paint a gray value that represents 80% intensity into that channel, then save it back out.

If you *have* to do it via code, you need to find where you load your texture file, and change it there.

I'm sorry, I'm not really too familiar with C# :(
do unto others... and then run like hell.
briantsim
briantsim
hi FReY,

Sorry, I want to real time change the texture alpha channel from 100% to 80%.

[Edited by - briantsim on January 2, 2007 5:08:54 AM]

Topic Locked

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

Sign in to reply to this topic.