Code Monkey home page Code Monkey logo

mesh-obj-convert's Introduction

Convert .mesh to .obj

Usage: python mesh-to-obj.py infile.mesh outfile.obj

Convert .obj to .mesh

Usage: python obj-to-mesh.py infile.obj outfile.mesh

Remarks

You will notice a rectangular grid when opening a .obj file that you converted from a Ortho4XP mesh. This is the (usually ZL19) grid from Ortho4XP which is used to align the images tiles. Make sure you only change the elevation of vertices belongig to this grid but not their coordinates to prevent distorted textures.

Known Issues

Both conversions are currently dropping the Normals. If you have issues when opening the .obj file in Blender, select all Vertices in Edit Mode and press ctrl+n to recalculate the normals. If necessary, you can then also flip the normals by selecting Mesh > Normals > Flip in the menu.

Reference

mesh-obj-convert's People

Contributors

rauberdaniel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dklug

mesh-obj-convert's Issues

Converted obj to mesh does not have the orignal .mesh materials

Hello! I was trying to do exactly what you are doing with these converters.

They work pretty well except for the water and other assigned materials from the original .mesh from ortho4XP

If you open the converted obj to mesh with the mesh viewer from ortho4XP and check on the toggle materials you will see that the materials are gone and when using this converted mesh, water masks are no longer working.

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.