Giter Club home page Giter Club logo

c3-operator's Introduction

C3-Operator

Blender scripts to import/export C3 models.

version: 2.3.1

Blender Tested Versions: 2.8+

Example: the model 003194790.C3 posed freely. 2 ezgif-4-ae81d637973e

How to use it

Installation

Download the zip archive from the latest release and the reference files.

In Blender go to Edit > Preferences > Add-ons > Install > choose the the zip archive you downloaded. Then check the box in front of the add-on name if not checked. Once installed, "C3 Operator" menu will appear on the upper left bar.

Notes About Importing

  • To import animation make sure you select the armature and not the mesh.
  • TO import texture make sure you select the mesh and not the armature.
  • Imported models are usually large. You may want to increase your view clipping end found in the (N) menu.
  • With the release you can find models, texture and animations to test with and use as Model Y in the export process (see below).

Export

Let's call the model we want to export X (keep a copy of it).

  • Bake all different materials and textures into a single texture.
  • To avoid working directly with bones and weights, we are going to copy the weights from another model. import the model you are going to mimic its weights. Don't import any other model after it as the path is used in the next step. We will call this model Y. Make sure X is scaled and posed similar to how Y is in order for weights to works correctly.
  • C3 does not support seams. Instead they duplicate vertices and edges. C3 models are unpacked literally. Therefore just before exporting choose all your seams in edges edit mode, then from the right click menu choose Edge Split.
  • Make sure that all the faces are triangles. You can use the utility Faces > Triangulate Faces in edit mode after choosing all faces.
  • Now choose the mesh X (not the armature) and choose Save C3 Model from C3 Operator menu.
  • This exporting process works for weapons as well, choose a weapon that is similar to the one you want to export and use it as a reference.
  • It is recommended to use models of subtype 0x34 than those of subtype 0x20. Check the wiki for the defintion of subtype.

Changelog

V 2.0.0:

  • Interaction through GUI
  • No need to chagne the engine to cycles.
  • Added export functionality

V 2.1.0:

  • Import/Export Weapons
  • Use models of subtype 0x20 as reference for export (still experimental).

TODO

  • Normalize different scales, positions and orientations of models and animations.
    • Figure out how C3 engine handles different scales.
  • Translate Bone system between c3 and blender.
    • Add export with custom bones function.
  • Convert (a reduced version of) Blender uv system to C3 uv system.
    • Automate the process of doubling seams.
  • include hair and effects.

Limitations and Issues

  • Tested on garments.

Common Error Messages and Workarounds.

  • Always apply transformations to your mesh: in object mode Object > Apply > All transformations.
  • If required argument is not a float got shown while you are trying to export the c3 try going into edit mode, select all the vertices then Mesh > Merge > By Distance. Make sure the distance is small (by defualt it is, mostly no need to change it).

References

c3-operator's People

Contributors

kant avatar tachyon-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

c3-operator's Issues

Problem on exporting c3 size.

Hey,

Been trying this for a while now and works as it says but I do have sometimes problems like the c3 generated is over 1 MB and this creates a freeze on conquer game when equip or for players when it sees you.

Been trying this for a while now and works as it says but I do have sometimes problems like the c3 generated is over 1 MB and this creates a freeze on conquer game when equip or for players when it sees you.

Any other options I need to take a look at before export?

image

Regards

Issues in Texture after Export

the first image from blender and There is no problem but when i export it and test texture on .c3, Look what happened?
Do I have to do something specific to solve this problem?

image

Issues in Export :(

When I'm done editing and I want to export the new .c3,
See what will happen in the .c3 file

github

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.