• Advertisement

Archived

This topic is now archived and is closed to further replies.

about alpha blending and texture

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

for example, i have 3 textures, 1 : grass tile(bmp), 2 : sand tile(bmp), 3 : alpha tile(bmp). a month before i've managed to implement "tile transition" using alpha blending. for example, to get a "grass to sand transition", the method was: (1)draw grass tile with alphablend disable (no need to use it) (2)setup sand tile's alpha information using alpha tile's bits ( copy one by one ) (3)draw sand tile with alphablend enable thus i got the result on SCREEN. NOW THE PROBLEM IS, i want to have a result texutre ( a grass to sand transition texture e.g.) at initial time(got a texture), not running loop(draw on screen). and how can i DrawPrimitive on a texture ?! please help~thanks in advance [edited by - wonyee on August 12, 2002 5:44:17 AM]

Share this post


Link to post
Share on other sites
Advertisement
I dont completely understand the question but to answer the last bit to draw on a texture you create a surface and change the render target to render to that surface as opposed to the back buffer - simple as that

Share this post


Link to post
Share on other sites

  • Advertisement