MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Pond Water Mod - new colors

by Targa Posted 20th Oct 2005 at 10:13 PM - Updated 15th Mar 2007 at 9:45 PM by MTS2Staff : Added info about Seasons
 
91 Comments / Replies (Who?) - 87 Feedback Posts, 3 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 4 of 4
Test Subject
#76 Old 17th Aug 2006 at 5:02 PM
Default Cooooool !
I'm so glad to get rid of the red water.

A few weeks ago, i asked customer support about it and they told me that's because of my graphic card. But they had no solutions about it.

It would be helpfull if you let them know how you solved the problem.

you're a genius !!!

thanks a lot .....
Lab Assistant
#77 Old 26th Sep 2006 at 8:09 PM
These are brilliant! I love them!

REQUEST: very dark-brown opaque water with a greenish tint (kind of like baby diarhea! lol) This would give the appearance of very deep or muddy water with algea growing at the edges. If not a water recolor, then maybe a way to make the pond-bottom recolorable (black, dark brown, dark green, etc.) instead of light sand-colored.

Again, thank you for these beauties. They are wonderful!

If it weren't for ADD I'd be forgetful, lazy, absentminded, clumsy, always late, disorganized, messy, and annoying.................for no apparant reason.
Instructor
#78 Old 27th Jan 2007 at 8:20 AM
Hey Targa, I love this creation but I'm looking for blood red water for a gothic castle I'm going to use as my first upload I've tried WCIF and I don't want to bother you with a PM so I might ask the create section and see if I can do it myself
Instructor
#79 Old 5th Mar 2007 at 3:45 AM Last edited by FalseZen : 7th Mar 2007 at 5:30 AM.
Default For those of you with the Season exp:
This mod does not work with the Seasons exp.

The water turns icy on its own during winter in the Seasons exp. However, if you had wanted year round blue water for instance, all the snow during winter flashes blue. I would not advise using these with Seasons, as the Pond Water Mod no longer appears to work like its supposed to when the Seasons exp is installed.
Mad Poster
#80 Old 15th Mar 2007 at 1:16 PM Last edited by niol : 7th Sep 2007 at 10:48 AM.
Default Targa's Pond Mods - EP2&3, EP4, EP5 AND EP6 update
May try one at a time...
The red version is based on the non-ice codes.

NL & OFB, pets and seasons versions for the pond water mod series are out.
The original Targa's Pond water mods are TS2-based.
Since NL and OFB are the same for this mod, there's no specific mod either EP alone.

The EP6 BV version of the shader is the same as EP5 SS, just use the EP5 SS version for EP6 BV

please report any problem, thanks...

Credit isuue:
All credits still belong to Targa. The act of the update is just to extend Targa's mods to other EPs.


What I did:
I only trans-locate Targa's code into the EP3, EP4, EP5 terrain shaders.
In the new ones, I only alter the RGBA.

Moderators,

please help link this post to the main thread post coz it seems Targa isn't active lately... So, readers can know the EP5 version. Thanks...


related infos:
http://www.modthesims2.com/showthread.php?t=217561


How to modify the water colour done by Targa's code (except the ice one.):

There's only 1 major line one has to alter to recolour Targa's pond water mod, and they're bolded in the quote.
One has to know what RGB(alpha) means. "R" stands for "red" in a range of "0-1". "G" stands for "green" in a range of "0-1". "B" stands for "blue" in a range of "0-1".
"alpha" means the "alpha-blending" transparency in an absolute range of "0-1" where "0" means "invisible" while "1" means "opacque".

Quote:
define TerrainWaterShader(withBumpMap)
shader -layer (($waterLayer) * 8 + 7)

validateRenderShaderContext -viewerRenderType viewerRenderType

pass

fillmode $stdMatFillMode

alphaBlend srcFactor(one) add dstFactor(srcAlpha)

shaderProgram -target vertexProgram -method assemble
create BindsForSoftwareVSTransforms(false false)
shaderSource

vs_1_1

def c50, 0.5, 0.5,1,2
def c11, 0,0,1,0
def c12, 0.2,0.7,0.4,0.1 # Right after "c12," The rests are the RBG(Alpha) for the coloration.
dcl_position v0
dcl_normal v1
m4x3 r0.xyz, v0, c8 ; to camera space
m3x3 r3.xyz, v1, c8

mov r0.w, c50.z
m4x4 oPos, r0, c0 ; camera to clip

dp3 r1.w, r0, r0
rsq r1, r1.w
mul r1, r1.w, r0 ; r1= view vector.

dp3 r2, r3, -r1 ; view dot normal
max r2, r2, c50.x

add r3, c50.z, -r2

mul oD0.xyz, r3, c12
mov oD0.w, r2

endShaderSource
end


stage
textureBlend select(diffuse) select(diffuse)
end
end


end
enddef

Note the quoted codes were done by Targa. And, it resembles a certain piece of the NeighborhoodWaterSWVS().

1. Just open a version of Targa's pond water mod with simpe.
2. get to the specified bold lines.
3. replace the ones with yours, say "1,1,0,0.1" (yellow).
4. commit.
5. save as a new file, eg "targa_pond_water_mod_(game version; eg SS)_yellow"
6. don't alter any other settings unless you know what you're doing or at least will to "experiment" in a testing environment.
Screenshots
Attached files:
File Type: rar  Moi_EP5_Targa_Pond_Water_mod.rar (9.8 KB, 1241 downloads)
File Type: rar  Moi_Targa_Pond_Water_EP2NL_EP3OFB.rar (4.5 KB, 247 downloads)
File Type: rar  Moi_Targa_Pond_Water_EP4PETS.rar (5.3 KB, 285 downloads)
File Type: rar  Moi_Targa_Pond_Water_Rouge.rar (8.3 KB, 329 downloads)
Scholar
#81 Old 26th Mar 2007 at 4:15 PM
Thank you for updating this mod Niol, it's great to have the pond color choices and I have to have the ice recolor for the snowy neighborhoods. Great work
xo

Rhondalatte's Custom CAS screens: http://blackpearlsims.com/ (formerly known as Reflex forum)

DeesElegantDecor - Beautiful furnishings:
http://games.groups.yahoo.com/group/DeesElegantDecor/
Lab Assistant
#82 Old 30th Jun 2007 at 4:05 AM
too bad it doesnt work with seasons. in case anyone wonders what happens, when it snows the terrain starts flashing blue as if the texture were missing. its a shame
Instructor
#83 Old 23rd Jan 2008 at 1:04 PM
I put the ice recolor one in my downloads folder and it's not working. I have only the Season EP, so I only downloaded the Moi_EP5_Targa_Pond_Water_mod.rar file. It seems that the other recolors are working, but I only want the Ice one

22 I will give him the key to the house of David. When he opens doors, no one will be able to close them; when he closes doors, no one will be able to open them.
Mad Poster
#84 Old 29th Jan 2008 at 1:07 AM Last edited by gazania : 29th Jan 2008 at 1:21 AM.
Thanks for the heads up on this mod. It IS nice to know that you can fix the blue terrain with little fuss. I admit it freaked me out when I first saw all that flashing! Thank you, niol, for offering that fix, and thank you, Targa, for the mod in the first place.
Test Subject
#85 Old 8th May 2008 at 3:26 PM
is really amasing when i have understand but i think we can set a color with any objects

same when we set any mod green aqua blue brown etc... after the object change the color global each home is different color setting

and this mod allowed for fishing in freetime
Test Subject
#86 Old 20th Jul 2009 at 9:48 AM
Problem with This Lake Recolor
Quote: Originally posted by blondynka
too bad it doesnt work with seasons. in case anyone wonders what happens, when it snows the terrain starts flashing blue as if the texture were missing. its a shame

Me too! I tried the blue one and the ice one but that problem still occurs. And finally I have no choice but to delete that file and it fixed. The default white snow color come back and that flashing blu e disappeared.
Mad Poster
#87 Old 21st Jul 2009 at 6:40 AM
Lab Assistant
#88 Old 20th Jan 2010 at 9:33 AM Last edited by TigerSoundNet : 21st Jan 2010 at 7:54 AM.
Default a little BLUE for swimming pools, please?
Thank you, Targa and Niol! (Very nice details, above.)

First some appreciation pictures with a question at the end.

(Btw, I can change the swimming pool sides with my camera trick.)
http://www.modthesims.info/download...797#post2815797

But, please, how can we change the swimming pool's water color, top and bottom?

... Jim ...
Screenshots
Mad Poster
#89 Old 13th Feb 2010 at 9:42 AM
Quote: Originally posted by TigerSoundNet

But, please, how can we change the swimming pool's water color, top and bottom?

... Jim ...


The swimmming pool is rendered by the pool shader mostly.
The water surface codes, water depth layers codes, parts of the caustics animation codes are in the pool shader.

May read this thread for further discussion.
http://www.modthesims.info/download...097#post3056097

Instructor
THANKS POST
#90 Old 11th Apr 2012 at 9:57 PM
Looks awesome.
Test Subject
THANKS POST
#91 Old 31st May 2012 at 11:02 PM
Thank you so much. These are much needed and quite lovely!
Scholar
THANKS POST
#92 Old 29th Apr 2015 at 8:25 PM
Thank you Targa and niol!
Page 4 of 4