Josh Posted April 13 Share Posted April 13 @reepblue pointed out this library for UV unwrapping: https://github.com/jpcy/xatlas I added these values to the AssetEditor class: asseteditor.model: the open model, if it exists. asseteditor:Invalidate(): Triggers a viewport redraw. asseteditor:Modify(): Causes the file to be set as "modified". asseteditor.modelmenu: Menu displayed when a model is loaded. The event EVENT_INITASSETEDITOR is emitted when an asset editor window is initialized, so you can add a menu item to the modelmenu at this time. Since Lua can call functions from a DLL, that should be everything needed to create an unwrapping extension. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted April 14 Author Share Posted April 14 You don't have to save or load any file formats. You just copy data into their mesh structure to process it: https://github.com/jpcy/xatlas/blob/f700c7790aaa030e794b52ba7791a05c085faf0c/source/xatlas/xatlas.h#L108 Looks not very hard. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted April 15 Author Share Posted April 15 Here is some code if you want to make a Lua module: https://github.com/UltraEngine/Lua/tree/main/Modules The simpler way is to create a C API for the lib and interface with that, maybe using the Ultra buffer class to construct a data structure in memory. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted April 17 Share Posted April 17 I really hope someone will get to making this. 🙂 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.