A way to connect visual effects with the water color.
Moderators: MR.D, Moderators
A way to connect visual effects with the water color.
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.
Any way to do that?aside from lua.
Re: A way to connect visual effects with the water color.
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.
P.O.P.S. could be used for this, really trivially though.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: A way to connect visual effects with the water color.
Which one?Gota wrote:make the splash have the color of the water
Re: A way to connect visual effects with the water color.
What do you mean?the splash from the projectile hitting the water.Auswaschbar wrote:Which one?Gota wrote:make the splash have the color of the water
Or do you mean in technical terms?
Re: A way to connect visual effects with the water color.
diffusecolor would be logical, specularcolor could be useful too
-
- MC: Legacy & Spring 1944 Developer
- Posts: 1948
- Joined: 21 Sep 2004, 08:25
Re: A way to connect visual effects with the water color.
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)
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)
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: A way to connect visual effects with the water color.
I never thought of that tbh, but yeah, he's right.
Re: A way to connect visual effects with the water color.
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.
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.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: A way to connect visual effects with the water color.
Let me know when there's a conversion script.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.
Re: A way to connect visual effects with the water color.
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.
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.
Updated trepan's FBI2Lua tool/widget:CarRepairer wrote:Let me know when there's a conversion script.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.
http://trac.caspring.org/browser/trunk/tools/FBI2Lua.
Also CA now switched to full lua configfiles for CEGs.