Differences

This shows you the differences between two versions of the page.

Link to this comparison view

multiwaterplanes [2017/05/24 14:27] (current)
Line 1: Line 1:
 +====== How to create multiple waterplanes ======  ​
  
 +Game Version: ​ FS15 and later\\
 +GE Version: ​ ? and later
 +
 +----
 +
 +[[modding_tutorials|Modding Index]] | [[map_making|Map Making Tutorials]]
 +
 +----
 +
 +===== Intro =====
 +
 +
 +
 +===== Prep Work =====
 +
 +
 +
 +===== Full Details =====
 +
 +After fighting with waterplanes in giants editor i've decided to share some map modding knowledge, as it took me whole 2 days to figure this out.
 +
 +When creating multiple waterplanes i've encountered an issue shown on picture ​
 +[img width=750 height=421]http://​gallery.fs-uk.com/​171718_08_12_14_8_03_20.jpeg[/​img]
 +
 +As you can see not all water is rendered (waves, in particular),​ even though it looks like it covers all the pond in giants editor
 +
 +To have proper waterplanes in your map you may create as many waterplanes as you want, but only the first in scenegraph will take the userattribute ​
 +
 +[i]onCreate
 +Environment.onCreateWater[/​i]
 +
 +(thanks to [b]ccs101[/​b] for tis tip)
 +
 +This will create underwater "​fog",​ so the water looks muddy, you can play with fog color and density in waterplane i3d file. Note that fog is created once for all map, not only under waterplane that has attribute. Also this fog creates a trigger, under which you go your tractor would become drowned.
 +
 +But now back to picture. To have ALL water renderd, you need to find three files, which will "​draw"​ water when map is loaded. They are as following:
 +
 +map01.i3d.dbm.waterPlaneLumberyard.png
 +map01.i3d.dbm.waterPlaneMain.png
 +map01.i3d.dbm.waterPlaneOcean.png
 +
 +Each stands for waterplane you exported from original bjornholm map.
 +
 +So if you have multiple waterplanes,​ when you save map in giants editor, it will take a random waterplane of that kind (i'm not really sure here, it can be first, last, or any middle one) and draw that picture. white is "​drawn"​ part. So when you are done and saved a map in GE, open that file in paint.net or any other editor, select a small white piece (make sure it's all white) and expand it to the whole picture, so it all becomes white. ​
 +
 +That's how I finally got all my waterplanes get rendered in game. Yay!
 +
 +
 +----
 +
 +Original Author: ​ Pandominium | Date:  December 08, 2014
 +        ​
 +[[modding_tutorials|Modding Index]] | [[map_making|Map Making Tutorials]]