Page 1 of 1

Use Rendertarget on Normals channel?

PostPosted: Sunday, 30.September 2012, 06:21
by Skinnytorus
Hey guys,

I'm trying to make a classic scene with raindrops in a puddle. As soon as Meteorshower is broken, I had to find a workaraound for that.
What I'm trying to reach is make RT work on Normal channel of the Mod Material. It doesn't work because I can not apply Normals op that requires a Bitmap input, not RT.
I can't find a way to convert RT into normals... Any ideas?
Thank you.

Re: Use Rendertarget on Normals channel?

PostPosted: Sunday, 30.September 2012, 10:36
by ikam
it's a good idea :)
I thought we could convert RT to a bitmap but don't see how. it should be possible as tex2d can read RT...
Maybe you could use displace for same effect.

Re: Use Rendertarget on Normals channel?

PostPosted: Sunday, 30.September 2012, 11:39
by Skinnytorus
Yes, I tried to use the RT on the displace channel, but it just creates craters with rough edges which is not good...

Re: Use Rendertarget on Normals channel?

PostPosted: Monday, 01.October 2012, 08:17
by ikam
maybe a start of solution

Re: Use Rendertarget on Normals channel?

PostPosted: Monday, 01.October 2012, 09:55
by ikam
with fix billboard alignment (from screen) and high resolution. it works fine :)

Re: Use Rendertarget on Normals channel?

PostPosted: Monday, 01.October 2012, 12:31
by Skinnytorus
Yey! This is wicked, mate! :)
Things to note for me:
1) Normals can be alphaed.
2) No need to use Tex2DAnim for Rendertarget.
Now it's time for the rain and water splashes! Thanks again!

Re: Use Rendertarget on Normals channel? [Solved]

PostPosted: Monday, 01.October 2012, 12:41
by erbsen
Pretty cool. :D

Re: Use Rendertarget on Normals channel? [Solved]

PostPosted: Monday, 01.October 2012, 13:08
by ikam
not tested, but maybe texture loop is useless, using fadein fadeout in sprites... however it's a good example of animated texture shape

Re: Use Rendertarget on Normals channel? [Solved]

PostPosted: Monday, 01.October 2012, 19:38
by Skinnytorus
Interesting. Worth a try at least ;)

Re: Use Rendertarget on Normals channel? [Solved]

PostPosted: Thursday, 04.October 2012, 14:46
by Skinnytorus
ikam
I tried your approach. It doesn't work for me. It looks like 2 premul alphas (1 for the circle, 1 for sprite transparency) don't work together (they flicker)... :(