Giter VIP home page Giter VIP logo

meshpainter's Introduction

MeshPainter

MeshPainter

A proof of concept tool for painting textures in 3D, written in C++/Qt/OpenGL. The tool allows to paint a set of PBR ttextures of a single mesh. Since it is only a proof of concept, it currently only supports a single material and UV set per mesh. This is a list of the features:

  • Paint albedo, metallic, roughness, ambient occlusion, emissive and displacement textures
  • Import and save textures
  • Different colors and stroke widths
  • Wireframe visualization
  • UV visualization
  • Support for Wavefront OBJ models

Controls

  • Left click + mouse paints on the model
  • Right click + mouse rotates the camera
  • Holding down the middle mouse button lets you translate the camera
  • Mouse scroll to zoom in or out

Usage

  1. Click "File -> Open Model" to import a Wavefront OBJ model.
  2. Click "Edit -> Active Texture" to select the texture to paint into.
  3. Click "Edit -> Set Stroke Width" or "Edit -> Set Paint" to configure the brush.
  4. Draw on the model with your mouse.
  5. Click "File -> Save All Textures" or "File -> Save Texture" to save all or only a specific texture as PNG.

Requirements

  • GPU with support for OpenGL 3.3 or better

How does it work?

It works by writing out the UVs of the rendered model to a render target and reading back the values hovered by the mouse. These UV values are then used to draw line segments with the selected color into the currently selected texture. The line segments are implemented as a series of splatted quads with an alpha falloff to simulate smooth lines.

How to build

The project comes as a Visual Studio 2017 solution and requires Qt 5.11.1 and likely also the Visual Studio Plugin "Qt VS Tools". The project must be built as x64.

Credits

meshpainter's People

Contributors

doerriest 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.