Category | Farming Simulator 17 |
Created | 26.10.2016 22:04 |
Hendrik Elkmann (derelky) | 26.10.2016 22:06 |
---|---|
Hello, can you give me an example to use registerDensityMapHeightType? i set all float to 1 and it work but dont act very well. Also how is the DDS to be saved? to test i use one from original game and it work if i edited it and save it cant be used |
Emil Drefers (Unknown) | 27.10.2016 09:30 |
---|---|
Hi, setting everything to 1 is probably a bad idea ;) function TipUtil.registerDensityMapHeightType(fillType, maxSurfaceAngle, collisionScale, collisionBaseOffset, minCollisionOffset, maxCollisionOffset, fillToGroundScale, allowsSmoothing, diffuseMapFilename, normalMapFilename, distanceFilename) About the DDS problem ... if you could upload your file somewhere, we can check how it has been saved and by that give an advice what has to be changed. Cheers, Emil |
Hendrik Elkmann (derelky) | 27.10.2016 10:37 |
---|---|
Hello, can you give me an example (like how maize is registered?) so i can oriented at these values. I cand upload the file at the moment but i also try to open the original file with GIMP and save it as another file. This also wont work. if i copy the original file and just rename it it works. So I need the information what parameters i need to select in GIMP when i export the file as .dds |
Emil Drefers (Unknown) | 28.10.2016 07:42 |
---|---|
Hi, you don't need an extra file. Instead you can tweak the attributes in the <DetailLayer name="terrainDetailHeight" .... /> Eventually it might be needed to create an empty (black) image with 16bit in PNG format. With that replace the default density height map. Then open the map with the Editor and save the mod map. Now the density height map is reduced to the amount of bits which are actually needed. Again, only eventually ... I'm not 100% sure, if this is really needed or if the editor will adjust the bits without the need of a new file. Here are two examples: TipUtil.registerDensityMapHeightType(FillUtil.FILLTYPE_MAIZE, math.rad(30), 1.0, 0.08, 0.00, 0.08, 1, false, "data/fillPlanes/maize_diffuse.png", "data/fillPlanes/maize_normal.png", "data/fillPlanes/distance/maizeDistance_diffuse.png"); TipUtil.registerDensityMapHeightType(FillUtil.FILLTYPE_GRASS_WINDROW, math.rad(35), 0.4, 0.25, 0.20, 0.60, 6, false, "data/fillPlanes/grass_diffuse.png", "data/fillPlanes/grass_normal.png", "data/fillPlanes/distance/grassDistance_diffuse.png"); Cheers, Emil |
Hendrik Elkmann (derelky) | 29.10.2016 01:47 |
---|---|
Hello, thank you it help alot but i still get error to create the distance and the normal .dds file normal: Warning: Texture array layer 'C:/Users/Hendrik/Documents/my games/FarmingSimulator2017/mods/aaa_ccmMaterialHolder/tipmat/ccm_normal.png' doesn't match the image properties of the other layers. distance: Error: Terrain distance texture 'C:/Users/Hendrik/Documents/my games/FarmingSimulator2017/mods/aaa_ccmMaterialHolder/tipmat/ccm_normal.png' doesn't match the image properties of the other layers. |
Note: Log in to post. Create a new account here.