Code Monkey home page Code Monkey logo

meshgen's Introduction

meshgen - a procedural mesh generation tool

About

Meshgen is a tool to simplify the creation of procedural meshes. It uses the system C++ compiler, to build a user-supplied snippet of C++ code, which needs to expose a generate function. The code is recompiled and the generate function is called automatically whenever the program detects that the source file has been modified externally. The current mesh is saved to a Wavefront OBJ file when pressing the W key. Any generated textures are saved as individual image files, and referenced in the exported OBJ material file.

shot

Please note that this tool is meant as an aid for creating procedural geometry with my Mesh class and mesh generation utility functions (see mesh/ directory in http://github.com/jtsiomb/dropcode). It might seem awkward to require the use of a seemingly random collection of framework code in the generator functions rather than a purpose-designed mesh generation API, but that's by design for the intended purpose of this tool.

To learn how to use this tool, see the example mesh generator test.cc in the root directory, and consult the header files mesh.h and meshgen.h for the available mesh generation and manipulation functions.

All the vector/matrix math types and operations are provided by my current math library: http://github.com/jtsiomb/gph-math. So you need to install that first.

You will also need to install my multithreaded resource manager library: http://github.com/jtsiomb/libresman.

License

Copyright (C) 2018 John Tsiombikas [email protected]

Meshgen is free software, you may use, copy, modify, and redistribute it under the terms of the GNU General Public License v3, or any later version published by the Free Software Foundation. See COPYING for detail.

Build instructions

To build and install meshgen on UNIX, run:

make make install

You may change the installation prefix by editing the first line of the Makefile.

To cross-compile for windows with mingw-w64, try the following:

make CXX=i686-w64-mingw32-g++ sys=mingw

meshgen's People

Contributors

jtsiomb avatar

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.