Page 1 of 1

A way to connect visual effects with the water color.

Posted: 22 Dec 2009, 15:37
by Gota
If i want a plasma projectile to create a splash when it hits water I need to be able to make the splash have the color of the water to look nice on any map the game is played.
Any way to do that?aside from lua.

Re: A way to connect visual effects with the water color.

Posted: 22 Dec 2009, 16:38
by Argh
I don't think the dirt projectile reads water, and that's the only CEG that interacts with ground at all.

P.O.P.S. could be used for this, really trivially though.

Re: A way to connect visual effects with the water color.

Posted: 22 Dec 2009, 16:54
by Auswaschbar
Gota wrote:make the splash have the color of the water
Which one?

Re: A way to connect visual effects with the water color.

Posted: 22 Dec 2009, 18:26
by Gota
Auswaschbar wrote:
Gota wrote:make the splash have the color of the water
Which one?
What do you mean?the splash from the projectile hitting the water.
Or do you mean in technical terms?

Re: A way to connect visual effects with the water color.

Posted: 22 Dec 2009, 22:25
by rattle
diffusecolor would be logical, specularcolor could be useful too

Re: A way to connect visual effects with the water color.

Posted: 24 Dec 2009, 12:16
by SpikedHelmet
What he means (I think) is he wants the water explosion to be of similar colour to the water it explodes in so that it will create an appropriate-coloured splash on different maps that have different water shades/colours.

Would actually be more useful for ground explosions to kick up a dustball of the same "dirt" colour as the map (including whitish explosions for explosions on snow)

Re: A way to connect visual effects with the water color.

Posted: 24 Dec 2009, 12:22
by Gota
Yep

Re: A way to connect visual effects with the water color.

Posted: 25 Dec 2009, 12:30
by Forboding Angel
I never thought of that tbh, but yeah, he's right.

Re: A way to connect visual effects with the water color.

Posted: 26 Dec 2009, 03:18
by jK
Seems you guys don't know, but the CEGdefs loading is totally luaficated.
So you can already adjust the CEGs to the maps. It's just that trepan never translated the CEGs in CA and myself didn't found the time to do it either.

Re: A way to connect visual effects with the water color.

Posted: 26 Dec 2009, 07:33
by CarRepairer
jK wrote:Seems you guys don't know, but the CEGdefs loading is totally luaficated.
So you can already adjust the CEGs to the maps. It's just that trepan never translated the CEGs in CA and myself didn't found the time to do it either.
Let me know when there's a conversion script.

Re: A way to connect visual effects with the water color.

Posted: 26 Dec 2009, 15:13
by Argh
Ah, ok, then we can just intercept them at runtime and alter the color values? That is useful to know.

Re: A way to connect visual effects with the water color.

Posted: 26 Dec 2009, 23:56
by smoth
I've no idea how to do a lua defined ceg. Any possibility you would toss up a small example?

Re: A way to connect visual effects with the water color.

Posted: 28 Dec 2009, 16:44
by jK
CarRepairer wrote:
jK wrote:Seems you guys don't know, but the CEGdefs loading is totally luaficated.
So you can already adjust the CEGs to the maps. It's just that trepan never translated the CEGs in CA and myself didn't found the time to do it either.
Let me know when there's a conversion script.
Updated trepan's FBI2Lua tool/widget:
http://trac.caspring.org/browser/trunk/tools/FBI2Lua.

Also CA now switched to full lua configfiles for CEGs.

Re: A way to connect visual effects with the water color.

Posted: 28 Dec 2009, 19:01
by smoth
Thanks!