Code Monkey home page Code Monkey logo

xsizetools's Introduction

XSIZETools

Note If you encounter any problems with this plugin, try an earlier version by choosing one from this link.

Overview

XSIZETools is an addon for Softimage with full export and import of 3D .msh files for ZeroEngine (Star Wars Battlefront I and II). That includes geometry, materials with all ZeroEngine-specific flags, animations, collisions and simulated cloth.

In general, important updates will be gathered into a release, so choosing the latest release should give you the latest working features. Alternatively you can download the most recent commit directly with the "Download ZIP" button.

For more information on usage go to the XSIZETools homepage.

If you encounter bugs or have problems, feel free to post on the Gametoast forums (you might need to use a proxy) or send me a mail via Github.

Installation

To use XSIZETools you need the following:

  1. Choose one of the releases from here and download it.

  2. If you don't have a Softimage version of 2011 or higher, download and install python and pywin32 (pywin32 must be version 217).

  3. Download and install the Visual C++ 2015 Redistributable. Download both versions by selecting the format and activating the Download button. If the page doesn't automatically navigate to the Visual C++ 2015 redist select Tools for Visual Studio 2015 on the left and then choose Microsoft Visual C++ 2015 Redistributable.

  4. Unzip the downloaded archive into C:/users/%user%/Autodesk/Softimage_%version%/Addons/ or C:/users/%user%/Softimage/Softimage_%version%/Addons/. In the end, the directory including README.md, xsizet.ver, etc should be C:/Users/%user%/Autodesk/Softimage_2015/Addons/xsizetools/.

Building from source

Currently the solution is set up to use two installations of Softimage (one for x64, one for x86) with the corresponding XSISDK.

Modify setup_86.bat and setup_64.bat to point it to the correct SDK paths (XSISDK_ROOT) and setenv.bats. After that, use setup_86.bat to compile the x86 version and setup_64.bat to compile the 64 version.

Links

xsizetools's People

Contributors

marth8880 avatar schlechtwetterfront avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xsizetools's Issues

converting code to Blender

I am wondering if it would be possible to convert the code from your addon to blender as it uses python

SWBF meshes's shadowvolumes break on import

So it has been known for a little while by the community but I don't think it was ever reported properly.

Whenever you try to import a model from Swbf using the latest build of ZETools the shadow volume breaks and is imported as a null (or not imported at all in some instances).
It happen with most Swbf 2 models shipped in the assets, same for models from Swbf 1.

Here's a google-drive link to a couple of example props from BFBuilder: https://drive.google.com/file/d/1nv43bkPRjuXr8FpwH8qR3Y7m1pnwv5Zm/view?usp=sharing

On the interesting side of things, bes1_bldg_main01.msh - shadowvolume1 (for the interior) properly imports as a mesh, though the other shadowvolume (for the building itself, shadowvolume_shadow_) is still broken. This case is rather rare, it's one of the only swbf mesh to have at least one working shadowvolume.

The static shadow volumes used are special segments in the mesh similarly to collision primitives. ZETools doesn't handle them (ZETools has no issue importing shadow volumes from character models, whether it'd be from Swbf or Swbf 2).

Basically no Swbf 1/Swbf 2 model has ever imported properly with shadow volumes intact unless it's the "sv_ type" which doesn't get a special segment type in the .msh.

Hope this help

Some ZE materials lost on import, all specular colour lost on import

I have a few models which lose all ZE material attributes upon importing, and I think the loss of specular colour has been around a fairly long time. Is it possible for you to take a look at some example files if you're still active? I have no other details to give other than the imported mesh where material ZE properties are lost has a lot of materials.

Traceback error?

I get this error when I try to export something. It is most likely my install or the model, since this error occurred with three versions of ZEtools. Also no textures show up, just the material. Any insight to what the problem is will be appreciated. Thanks in advance.

`
Last 15 log lines:

INFO (908, do_export): Starting export at 2016-12-08 10:43:51.193000.
INFO (909, do_export): .msh file path: C:\Users\tab328\Desktop\testing_cube.msh
INFO (920, do_export): Processing material "Material_001".
INFO (926, do_export): Finished processing.
INFO (920, do_export): Processing material "None".
INFO (926, do_export): Finished processing.
INFO (33, __exit__): Materials in 0s 165000ms.
INFO (941, do_export): Processing model "null".
INFO (33, __exit__): Model in 0s 72000ms.
INFO (945, do_export): Finished processing.
INFO (941, do_export): Processing model "Cube".
INFO (654, convert): Is geometry.
INFO (33, __exit__): Segments in 0s 2000ms.
INFO (33, __exit__): Model in 0s 69000ms.
INFO (33, __exit__): Models in 0s 146000ms.

Traceback:

Traceback (most recent call last):
  File "<Script Block >", line 28, in exportbutton_OnClicked
  File "C:\Users\tab328\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0033\Application\Core\zetexport.py", line 899, in export
    self.do_export()
  File "C:\Users\tab328\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0033\Application\Core\zetexport.py", line 944, in do_export
    self.msh.models.add(conv.convert())
  File "C:\Users\tab328\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0033\Application\Core\zetexport.py", line 657, in convert
    self.msh2_model.segments = self.get_segments()
  File "C:\Users\tab328\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0033\Application\Core\zetexport.py", line 433, in get_segments
    geometry = self.process_geometry()
  File "C:\Users\tab328\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0033\Application\Core\zetexport.py", line 405, in process_geometry
    seg.vertices = self.get_vertices()
  File "C:\Users\tab328\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0033\Application\Core\zetexport.py", line 250, in get_vertices
    vert_pos_list = self.export.xsi.CGA_GetNodeVertexPositions(self.geo, True)
  File "C:\Python26\lib\site-packages\win32comext\axscript\client\pyscript.py", line 105, in __getattr__
    return getattr(self._scriptItem_.dispatchContainer,attr)
  File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 516, in __getattr__
    raise AttributeError("%s.%s" % (self._username_, attr))
AttributeError: Application.CGA_GetNodeVertexPositions
`

Cloth Import

Empty string in deformers list creates problems.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.