today I got CSGs working with textures after a million and a half attempts. Figured I owed you guys, better late than never. Look below! The massive flowers are CSG and the small flowers and mushrooms are features.







Tools used: papatran.exe, papadump.exe, Blender

Sincere apologies for the disappearance. Don't ask what happened to me or where I've been. I was able to get features working, but it wasn't untilI got CSGs working with textures after a million and a half attempts. Figured I owed you guys, better late than never. Look below! The massive flowers are CSG and the small flowers and mushrooms are features.Tools used: papatran.exe, papadump.exe, Blender

Making CSG ​



I used Blender to make my CSG and features so you'll have to adapt to use your own program. My custom planet is named meadow, which is made up of two biomes: field1 and field2. It's pretty primitive, I'm not a designer. You should be familiar with custom planets, biomes, and using papatran.exe/papadump.exe.



You should have your model and textures finalized. To avoid confusion and problems, you want to pick one name for your model and stick with it. The name of my CSG is "field1_lotus_01" (I kind of stuck with the naming convention Uber went with). That's what you will call your Object in blender, your .fbx file, your .papa file, and all the references in your files.



Your model will need TWO UV maps. The first one will map your textures onto your model, and the second one is the lightmap. The lightmap is required for your model to receive shadows (I believe). Create a second UV map, select all of your geometry, press U to access the UV map menu, and select "Lightmap Pack". Adding this second UV map is what FINALLY made my CSGs work right







Your model should have one material, which is made up of two image textures: diffuse and normal. Link to the appropriate files for your diffuse and normal textures. Those texture files should be named <model name>_diffuse.png, etc. Mine are named field1_lotus_01_diffuse.png and field1_lotus_01_normal.png. I recommend having the textures already in your pa/terrain/<biome>/textures folder. For both textures, go to the Mapping tab, and make sure Coordinates are set to UV and Map is set to UVMap (not your lightmap).



Now you need to tell Blender/FBX-exporter how these textures are used. Go down to the Influence tab. . I'm lucky I learned about them when I was learning UE4.Your model should have one material, which is made up of two image textures: diffuse and normal. Link to the appropriate files for your diffuse and normal textures. Those texture files should be named _diffuse.png, etc. Mine are namedand. I recommend having the textures already in your pa/terrain/ /textures folder. For both textures, go to the Mapping tab, and make sure Coordinates are set to UV and Map is set to UVMap (not your lightmap).Now you need to tell Blender/FBX-exporter how these textures are used. Go down to the Influence tab.



For your normal texture, only the Normal checkbox should be checked (and set to 1.000). See here For your diffuse texture, only the Color checkbox should be checked (and set to 1.000). See here For your normal texture, only the Normal checkbox should be checked (and set to 1.000).

Doing this correctly tells papatran that your model will use a diffuse texture and a normal texture. CSGs don't use material textures, those are typically used to show team colors on units.



​

Your model should be ready to export to FBX, so go ahead and do so. Default settings will work, but check "selected objects only". My file is named field1_lotus_01.fbx. I recommend putting it in your pa/terrain/<biome>/fbx folder. Now you need to convert it to the games papa file format with papatran.exe, with this command:



papatran.exe --texture-mode reference -o field1_lotus_01.papa field1_lotus_01.fbx

​



Review this thread to learn how to use tran and dump: Link . Double check your new papa file by running it through papadump.exe. Make sure the name attribute of your textures is correct. All too often you'll have one too many or one too few slashes in there, and it wont work. It should look something like this: Link . You can run papadump.exe over Uber's files for more examples. Your papa model file will only reference the names of your two textures, it should not have them embedded within. Run your textures through papatran.exe with this command:

papatran.exe --texture-mode include -o field1_lotus_01_diffuse.papa field1_lotus_01_diffuse.png

​



The papa textures should look something like this: Link . When running the textures, a file named default.settings should be in the same folder as your textures, with these lines in it: Link . Papatran.exe will combine the resource-root line with the texture name to make the "name: " line as shown in the second previous link. As with everything else in this tutorial, swap out the names of my files and directories to your own.

Making Features ​