Water Component: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
(Added example usage images and text)
m (Changed image positioning and captions)
Line 26: Line 26:


== Example ==
== Example ==
The water component is excellent for quickly creating an ocean. It's also suitable for creating rivers and lakes, if the colors are adjusted and the waves are lessened.
The water component is excellent for quickly creating an ocean. It's also suitable for creating rivers and lakes, if the colors are adjusted and the waves are lessened.
 
[[File:BeachWaterExample.jpg|thumb|400px|none|Water used as an ocean to create a beach scene.]]
[[File:BeachWaterExample.jpg|Water example usage as ocean|border|500px]]


It doesn't even need to be water. Since the color can be changed it can be used as lava or goo. The opacity of the colors can be set, so it can be made more transparent, or very opaque.
It doesn't even need to be water. Since the color can be changed it can be used as lava or goo. The opacity of the colors can be set, so it can be made more transparent, or very opaque.
 
[[File:WaterExample_GooInSewer.jpg|thumb|400px|none|Water used as a toxic goo in a sewer scene.]]
[[File:WaterExample_GooInSewer.jpg|Water example usage as goo|border|500px]]

Revision as of 01:30, 25 October 2022

The Water Component is a rendering component that creates a plane of low-poly water for use in mods.

The water surface is created from many squares that will move over time to simulate waves. A unique material is placed on the mesh that displays froth and changes color based on the depth of objects beneath the water to simulate the lighting effect water would have on those objects.

Component Settings

Property Description
Width The number of squares on the X axis that make up the water surface.
Height The number of squares on the Z axis that make up the water surface.
Cell Size The side length of each square that makes up the water surface.
Deep Color The color of the water wherever there is nothing submerged close to the surface.
Shallow Color The color of the water wherever it is shallow due to objects just below the surface.
Froth Color The color of the froth that appears around the edge of the water where it intersects objects.
Wave Height The intensity of the simulated waves. There are no units for this value, but larger values lead to taller waves.
Wave Speed The frequency of the simulated waves moving up and down.

Example

The water component is excellent for quickly creating an ocean. It's also suitable for creating rivers and lakes, if the colors are adjusted and the waves are lessened.

Water used as an ocean to create a beach scene.

It doesn't even need to be water. Since the color can be changed it can be used as lava or goo. The opacity of the colors can be set, so it can be made more transparent, or very opaque.

Water used as a toxic goo in a sewer scene.