Hello
I want to create a transition from one texture to another texture. Like in a video editing software (e.g. Microsoft Movie Maker). I use a texture as the mask. At each render step I have to change this mask. At each render step I create a bitmap or I change the existing bitmap/mask. Then I create a new texture from this bitmap. This es very slow. How can I do a transition when I don't want to use pixel shaders oder direct show editing services?
Thank you
wima
Creating a transition with a dynamic texture/mask
Started by wima, Sep 28 2005 10:27 AM
3 replies to this topic
#1
Posted 28 September 2005 - 10:27 AM
#2
Posted 28 September 2005 - 12:45 PM
pixelshaders would really be the way to go here, but if you have to use fixed function, look into GL_ARB_texture_env_crossbar if you're using opengl, or D3DTOP_LERP if you're using d3d.
#3
Posted 28 September 2005 - 12:49 PM
I'm using (managed) DirectX. I know the lerp function. My problem is fast generation of the texture/mask, not the (alpha-)blending.
#4
Posted 28 September 2005 - 02:03 PM
Keep 2 textures for editing. You then edit in a fashion like follows
Setup Mask in TextureA
--> Next frame
Render using Mask in Texture A
Edit Texture B
--> Next frame
Render using Mask in Texture B
Edit Texture A
and so on ... Not sure how well that will work but should remove many of the pipeline stalls :)
Setup Mask in TextureA
--> Next frame
Render using Mask in Texture A
Edit Texture B
--> Next frame
Render using Mask in Texture B
Edit Texture A
and so on ... Not sure how well that will work but should remove many of the pipeline stalls :)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











