Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lily Texture Packer - Batch Import from OBJ and re-export in FBX + Packed PNG #145

Open
fpibbs opened this issue Feb 6, 2021 · 3 comments

Comments

@fpibbs
Copy link

fpibbs commented Feb 6, 2021

Having trouble importing a .rdc file with this add-on, for a large amount of TILES (150):

I need to build a script for automating it.
Has anyone any idea how to do?

  • Read recursively FolderName+ObjName
  • Import in Blender
  • Elaborate Lily Texture Packer
  • Save FBX + Packed File
@eliemichel
Copy link
Owner

check out #39
and #128

@sir306
Copy link

sir306 commented Jun 4, 2023

I have written a small script that imports the models, sorts them into XY groups based off texel density of the mesh and the desired image quality and join together as one model removing all excess materials so that it only uses the ones from the lily texture, it also calls the lily capture merger to link everything together (only calling the lily texture packer and merger at the high level as I don't want to share code from the developer), it also exports the model at the end to FBX and sets it up for Unreal Engine using there axis orientation and saves the lily textures as it goes through.

I will be creating a video on it tomorrow demonstrating it in action and cleaning the code up and documentation, so it is readable. The video demonstration will be on only a couple of .RDC files, but have recently tested on a model with 18 files and it generated about 15 million triangles, 19 million edges and 18 million vertices for this, and ran with a hour. (side note the big trick for this is to use virtual memory if you're on windows - 64gb ram and upped my virtual memory to 128GB to avoid crashes and slow downs)

If you need the code, urgently drop me a message and I may be able to send the raw ugly code, but expect to see a post here in a week with it.

@sir306
Copy link

sir306 commented Jul 4, 2023

I have fully finished my automation script for all these addons and performing the last debug now for it and will be finishing my video documentation on how to use it and I will create a readme on it and polish code comments I am however uploading the raw code now if anyone wants to trial it before I polish it off.
It can be used if you have all three addons or just the one, but it's created a highly automated process, where it will even pack the textures nicely for you there is room for improvement in places but mostly in getting the texture packer to output an image to the power of two or add necessary padding for it to be to the power of two, is in my eyes the only remaining requirement to my solution.
https://github.com/sir306/GoogleEarth_MapImport_CapMerge_TexPack_Automation
@eliemichel have created an automation script to handle all three of your addons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants