VB: DirectX, "Bleeding" from one texture to another
Lets say I have 2 textures as shown in the attached position. How can I get the red texture to "bleed"(Sort of like blur) its color onto the green texture?
Re: VB: DirectX, "Bleeding" from one texture to another
Not sure exactly how to do it, but sounds like you'd want to get a "snapshot" of the surrounding area in a buffer, apply some kind of Blur Filter, then re-paint it onto your BackBuffer.
Now that I've pointed out the obvious workaround answer, you can move on.
Re: VB: DirectX, "Bleeding" from one texture to another
Are you using MultiTexturing? Do you have Antialiasing enabled? Using these two should help get what you are looking for.
Also the Green polygon would work better for your blur effect if you were using a light map rather than that green polygon. You oughta Google lightmaps. I have some if ya want any too.
Re: VB: DirectX, "Bleeding" from one texture to another
What you're asking for is advanced, involving concepts such as gaussian blurring and, if you want it at any decent speed, maybe even pixel shading. I'm not sure why you wouldn't just load up an image editor...
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Re: VB: DirectX, "Bleeding" from one texture to another
Actually a lightmap would produce what hes looking for.
For example, when you multitexture
+=
Only depending on what the lightmap looks like will depend on the result. In his case, hes looking for a green glob, which a simple blured circle in the center can do.
To avoid the blackness that would make part of the image dark though, you change the ambient lighting settings for that polygon. Best to make the ambient settings white so your red polygon is totally red, rather than black.
Here you go, I created one for you in like less than a minute. If you want it to be green, you simply change the color of the 4 vertex corners to green.
Last edited by Jacob Roman; May 1st, 2005 at 09:07 PM.