von Rm gibts ja nun den grazingAnimals mod
hab nu nversucht, den in eine map einzubauen.
bin danach vorgegangen:
https://github.com/RealismusModding/FS1 ... ingAnimals
das sind meine einträge:
Code: Select all
Under <Files> include:
<File fileId="2127" filename="map01/grazing_density.png" relativePath="true"/>
<File fileId="2128" filename="map01/grazing_mask_diffuse.png" relativePath="true"/>
Under <Materials> include:
<Material name="grazing_mask_mat" materialId="265" ambientColor="1 1 1" customShaderId="44">
<Texture fileId="2128"/>
<CustomParameter name="alphaBlendStartEnd" value="70 75 0 0"/>
<CustomParameter name="cellSizeTerrainSizeScaleXZScaleY" value="16 1024 2 255"/>
</Material>
The customShaderId should be pointing to the windrowFoliageShader.xml Under <Layers> include:
<FoliageMultiLayer densityMapId="2127" numChannels="5" numTypeIndexChannels="0">
<FoliageSubLayer name="grazingCows" numDensityMapChannels="1" materialId="265" cellSize="8" viewDistance="110" objectMask="16711935" decalLayer="0" atlasSize="1" atlasOffsets="1 0" numBlocksPerUnitDefault="1.8" numBlocksPerUnitMin="1.8" numBlocksPerUnitMax="1.8" width="0.8" height="0.3" widthVariance="0.1" heightVariance="0.1" horizontalPositionVariance="0.3" blockShapeId="1"/>
<FoliageSubLayer name="grazingSheep" densityMapChannelOffset="1" numDensityMapChannels="1" materialId="265" cellSize="8" viewDistance="110" objectMask="16711935" decalLayer="0" atlasSize="1" atlasOffsets="1 0" numBlocksPerUnitDefault="1.8" numBlocksPerUnitMin="1.8" numBlocksPerUnitMax="1.8" width="0.8" height="0.3" widthVariance="0.1" heightVariance="0.1" horizontalPositionVariance="0.3" blockShapeId="1"/>
<FoliageSubLayer name="extraChannels" densityMapChannelOffset="4" numDensityMapChannels="3" materialId="354" cellSize="8" viewDistance="110" objectMask="0" decalLayer="0" atlasSize="1" atlasOffsets="1 0" numBlocksPerUnitDefault="0" numBlocksPerUnitMin="0" numBlocksPerUnitMax="0" width="2" height="2" widthVariance="0" heightVariance="0" horizontalPositionVariance="0"/>
</FoliageMultiLayer>
die viewdistance 3x von 0 auf 110 geändert
und die customShaderId="44">
weil in der i3d:
<File fileId="44" filename="../shaders/windrowFoliageShader.xml" relativePath="true"/>
steht.
habe auch die beiden dateien grazing_density.gdm und grazing_mask_diffuse.dds nach
C:\Users\anthu\Documents\My Games\FarmingSimulator2017\mods\Gorzkowa_V3_2k17_multifruit\maps\map01
kopiert.
wenn ich nun die i3d im GE öffne, kann ich im terrain editor, dort wo die weizen, gerste, grass,.. ist drei neue anwählen.
grazingcows, grazingsheeps und extrachannels
kann auchalle drei auswählen, aber nichts malen.
da sollte dann doch so ein blaues gekritzel sein, ich seh aber nix. egal welches der drei ich auswähle und welchen channel ich auswähle.
wo liegt mein denkfehler?
lgPainting the grass areas in Giants Editor
After including the above, the grazingCows and grazingSheep foliage layer will be visible under Terrain Editing in GE. Paint the cow and sheep meadows with the respective layers. In order to see the layers on the screen, change viewDistance of the FoliageSubLayer to a higher value than 0, for instance to 80. Paint grazingCows with channel 0 and grazingSheep with channel 1. When you're done painting, don't forget to revert to a viewDistance of 0.
andreas