A way to connect visual effects with the water color.

A way to connect visual effects with the water color.

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

A way to connect visual effects with the water color.

Post 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.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

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

Post 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.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

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

Post by Auswaschbar »

Gota wrote:make the splash have the color of the water
Which one?
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

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

Post 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?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

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

Post by rattle »

diffusecolor would be logical, specularcolor could be useful too
SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

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

Post 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)
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

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

Post by Gota »

Yep
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

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

Post by Forboding Angel »

I never thought of that tbh, but yeah, he's right.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

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

Post 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.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

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

Post 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.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

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

Post by Argh »

Ah, ok, then we can just intercept them at runtime and alter the color values? That is useful to know.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

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

Post by smoth »

I've no idea how to do a lua defined ceg. Any possibility you would toss up a small example?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

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

Post 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.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

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

Post by smoth »

Thanks!
Post Reply

Return to “Art & Modelling”