Tools to edit / open / extract .SLD files

Yeah, I know it batch converts psd files into an SLD. I’ve actually looked through all the layers on Adobe PS. The problem is that there needs to be an automated workflow from a rendering program like blender because most animation files are 960ish frames. Blender does have plugins to export directly to psd, but there needs to be an example file or tutorial to show how to set up all these layers for export. If the intention was to only convert single images from a photo editing software the only application would be for making eye candy and not buildings or units.

1 Like

Oh, I see… Well, the document says this:

Under one of the needed folders (buildings / nature / units), create a subfolder consisting of your PSD frames in filename_0000.psd format. Example: n_tree_bamboo_0000.psd, n_tree_bamboo_0001.psd…

I think it means this:

  • units/buildings/nature
    – object_name_folder
    — object_name_folder_0000.psd
    — object_name_folder_0001.psd

Once run, the output will be in the “Sprites” directory. (1 to 2 directories back.)

I hope that explains it a little better? Otherwise, I dunno.

edit: If you mean the actual format, then yes, I agree with you. I want some too.

edit: Since I don’t understand the ‘height’ layer, I wonder what would happen if I just copy/paste the layer into my file I made… I tried a few different things with still no luck… but, maybe I can force it with a incorrect height layer? worth a try…

edit: It seems that the layer properties might also be important too… (I usually don’t mess with these except for name.) I modified them exactly as the normal one. Still won’t output the sld file… :\

edit: Hmm… It only outputs the smp for me now… sigh… They may have changed something…

edit: Why didn’t I think of this before? I inverted the color value of “height” and that sheds a little light on the format a bit… It looks like the black is the bottom half divided by the center of the object. Green is on the left, Blue in the middle, and Red is on the right. (then inverted value.) Although, the more you go up, it uses mixes of those colors… Hmm…

Inverted Height Concept

edit: Even with this info, I am still at a loss. I get the general idea but, making the exact colors is difficult since it’s a gradient… I dunno what I need specifically… (If any.)

speculation edit: Although, I know this height layer is important because, if you look at the black terrain carefully in game, you can see these isometric depth layers but, vertically. According to a screenshot, they are about 70 pixels. (They probably scale up/down.)

this seems super convoluted to just migrate to sld to reduce size. better off sticking with smx and wait for slx studio to support it. I’d recommend people go to slx studio discord and donate to Tevious as he is solo’ing on the entire tool.

3 Likes

Ive managed to create sld files using it in an automated way , you can use the compositor in blender to output all the layer images needed , and run a GIMP script to compile all the psd files –

Im still optimising the process but for me its a lot better , i dont render an image for height / decal or blood layer anymore - dont see the benefit

Once you have the PSD files ready the De Sprite tool compiles the SLD files extremely fast which is nice

1 Like