Community Forum

Grass / Oilseed Radish

Forum Overview >> Editor

CategoryEditor
Created03.04.2023 15:13


Ed Propsner (crotchfrog) 03.04.2023 15:13
Which infoLayer or density map is tied to the grass / oilseed radish in game? The resolution seems to be off, and for the life of me I can't remember what to adjust. I'm drawing a complete blank on this one.

Colin Smith (WrinkleysRule) 03.04.2023 17:52
From the i3d
<File fileId="384" filename="data/densityMap_fruits.gdm"/> is responsible for all the following

<FoliageSystem cellSize="8" objectMask="16711935" decalLayer="0">
<FoliageMultiLayer densityMapId="384" numChannels="10" numTypeIndexChannels="5" compressionChannels="5">
<FoliageType name="decoFoliage" foliageXmlId="335"/>
<FoliageType name="groundFoliage" foliageXmlId="336"/>
<FoliageType name="decoBush" foliageXmlId="337"/>
<FoliageType name="meadow" foliageXmlId="338"/>
<FoliageType name="grass" foliageXmlId="339"/>
<FoliageType name="wheat" foliageXmlId="340"/>
<FoliageType name="canola" foliageXmlId="341"/>
<FoliageType name="barley" foliageXmlId="342"/>
<FoliageType name="maize" foliageXmlId="343"/>
<FoliageType name="potato" foliageXmlId="344"/>
<FoliageType name="sugarBeet" foliageXmlId="345"/>
<FoliageType name="sunflower" foliageXmlId="346"/>
<FoliageType name="soybean" foliageXmlId="347"/>
<FoliageType name="oilseedRadish" foliageXmlId="348"/>
<FoliageType name="poplar" foliageXmlId="349"/>
<FoliageType name="oat" foliageXmlId="350"/>
<FoliageType name="sugarCane" foliageXmlId="351"/>
<FoliageType name="cotton" foliageXmlId="352"/>
<FoliageType name="sorghum" foliageXmlId="353"/>
<FoliageType name="olive" foliageXmlId="354"/>
<FoliageType name="grape" foliageXmlId="355"/>
</FoliageMultiLayer>

</FoliageSystem>

Ed Propsner (crotchfrog) 03.04.2023 23:00
Pretty much what I thought - all the fruits. I guess I'm still stumped then because the rest of the fruits look fine, only the grass is off (I did not test the oilseed radish). I'm working on a 4km and adjusted the fruits.gdm from 4096 to 8192. It looked good at 4096 and still looked good at 8192 so I'm not sure it made a real difference. If I visually inspect the fruits.gdm, all of the areas that are pure black and have an absence of fruits or foliage (roadways, rivers, etc) are the areas where grass is showing. What' s going on is very similar to what a resolution issue would look like - like the overlay is too large and the grass is spilling over to other areas.

I'm sure this has a simple solution, I'm just not seeing it.

Colin Smith (WrinkleysRule) 04.04.2023 10:56
Sily question but have you updated the rest of the gdm/grle/weight files to match the 4k map, because if you haven't that would also cause a problem. also I think it may be better to start with blank gdm/grle/weight files as resizing can probaly cause the problem you are experiencing.

Ed Propsner (crotchfrog) 04.04.2023 12:23
Having resized them so late in the game was an oversight on my behalf, everything else was done but the gdms got overlooked. I'll double check everything else to make sure nothing was missed. You can get crazy results if you're not careful of the type of interpolation used while resizing but the image is clean - no stray pixels, etc.

I probably should have mentioned that it is not the fruit itself that does not look good, there are no problems with the fields. When you enter the map view via "ESC", it's the overview that looks bad. Needs plowing, fertilizer, growth rate, etc. all look good. Is this still the fruits.gdm, or should I be looking at something else?

Ed Propsner (crotchfrog) 04.04.2023 13:30
I figured it out. It was the interpolation after all. Although the image looked good, looks can be deceiving. I started testing the RGB values in all of the "black" areas and quickly discovered they were not all 0,0,0. I already fixed the "grass" areas, but it appears the problem goes a bit deeper than that. Thank goodness I have multiple backups because this is going to be a pain to fix.

Thank you for the help Colin :)

Colin Smith (WrinkleysRule) 04.04.2023 13:36
What I do to check the gdm/grle for errant layers is to convert them to png and edit them in photosop (normally the Adjustments Shadow highlights bring all the different rgb sections up, note do not save the image in this mode just edit) after editing save the image and do the normal path changes to get back to a gdm/grle file.

Ed Propsner (crotchfrog) 04.04.2023 15:47
I do the same for the darker values that are not easily viewed with the naked eye. This is never usually an issue because they should be blank at the moment of resizing. Thankfully the fruits.gdm is has a fair amount of brighter colors and is easily touched up. Nonetheless, this is still going to be a decent amount of time and work to repair - lesson learned.


Note: Log in to post. Create a new account here.