Giter Site home page Giter Site logo

jing-interactive / melo Goto Github PK

View Code? Open in Web Editor NEW
46.0 8.0 4.0 10.39 MB

melo is mesh loader for OBJ, glTF2 and PLY

License: MIT License

C 85.80% C++ 8.69% GLSL 5.50% Batchfile 0.01%
gltf2 gltf opengl libcinder glsl meshviewer mesh-import 3d-models

melo's Introduction

melo

melo is mesh loader for OBJ, glTF2 and PLY, also includes a Cinder based mesh viewer on Windows and macOS.

Features

TODO

  • Implement skinning animation
  • Implement morph animation
  • Support Linux / Android / iOS
  • Support Sketchfab download API
  • FrameGraph

To build samples/MeshViewer, you need:

The folder structure should appear like this:

Cinder/
    blocks/
        Cinder-VNM/
        melo/
            samples/MeshViewer/vc2015/MeshViewer.sln
            assets/
                Cube/
                    Cube.gltf
                cerberus/
                    Cerberus.obj
                Awesome-gltf-files/
                    scene.gltf
                    scene.bin
                Symbolic-links-are-also-supported
    include/

PBR shader macros

vertex inputs

  • HAS_NORMALS

  • HAS_TANGENTS

  • HAS_VERTEX_COLOR_VEC4

  • HAS_UV_SET1

  • HAS_UV_SET2

  • USE_MORPHING

  • USE_SKINNING

  • HAS_TARGET_POSITION0

  • HAS_TARGET_POSITION1

  • HAS_TARGET_POSITION2

  • HAS_TARGET_POSITION3

  • HAS_TARGET_POSITION4

  • HAS_TARGET_POSITION5

  • HAS_TARGET_POSITION6

  • HAS_TARGET_POSITION7

  • HAS_TARGET_NORMAL0

  • HAS_TARGET_NORMAL1

  • HAS_TARGET_NORMAL2

  • HAS_TARGET_NORMAL3

  • HAS_TARGET_NORMAL4

  • HAS_TARGET_TANGENT0

  • HAS_TARGET_TANGENT1

  • HAS_TARGET_TANGENT2

  • HAS_TARGET_TANGENT3

  • HAS_TARGET_TANGENT4

  • HAS_JOINT_SET1

  • HAS_JOINT_SET2

  • HAS_JOINT_SET3

  • HAS_JOINT_SET4

  • HAS_WEIGHT_SET1

  • HAS_WEIGHT_SET2

material types

  • MATERIAL_SPECULARGLOSSINESS
  • MATERIAL_METALLICROUGHNESS
  • MATERIAL_UNLIT
  • MATERIAL_ANISOTROPY
  • MATERIAL_SUBSURFACE
  • MATERIAL_THIN_FILM
  • MATERIAL_THICKNESS
  • MATERIAL_ABSORPTION
  • MATERIAL_IOR
  • MATERIAL_TRANSMISSION

texture maps

  • HAS_BASE_COLOR_MAP
  • HAS_NORMAL_MAP
  • HAS_METALLIC_ROUGHNESS_MAP
  • HAS_OCCLUSION_MAP
  • HAS_EMISSIVE_MAP
  • HAS_SUBSURFACE_COLOR_MAP
  • HAS_SUBSURFACE_THICKNESS_MAP
  • HAS_ANISOTROPY_MAP
  • HAS_ANISOTROPY_DIRECTION_MAP
  • HAS_SPECULAR_GLOSSINESS_MAP
  • HAS_METALLICROUGHNESS_SPECULAROVERRIDE_MAP
  • HAS_SHEEN_COLOR_INTENSITY_MAP
  • HAS_THIN_FILM_MAP
  • HAS_THIN_FILM_THICKNESS_MAP
  • HAS_THICKNESS_MAP
  • HAS_CLEARCOAT_TEXTURE_MAP
  • HAS_CLEARCOAT_ROUGHNESS_MAP
  • HAS_CLEARCOAT_NORMAL_MAP

alpha mode

  • ALPHAMODE_OPAQUE
  • ALPHAMODE_MASK

use misc

  • USE_IBL
  • USE_PUNCTUAL

debug

  • DEBUG_BASECOLOR
  • DEBUG_ALPHA
  • DEBUG_NORMAL
  • DEBUG_TANGENT
  • DEBUG_METALLIC
  • DEBUG_ROUGHNESS
  • DEBUG_BITANGENT
  • DEBUG_OCCLUSION
  • DEBUG_F0
  • DEBUG_FEMISSIVE
  • DEBUG_FSPECULAR
  • DEBUG_FDIFFUSE
  • DEBUG_FSHEEN
  • DEBUG_FCLEARCOAT
  • DEBUG_FSUBSURFACE
  • DEBUG_THICKNESS
  • DEBUG_FTRANSMISSION

melo's People

Contributors

vinjn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

melo's Issues

+1 for Linux support!

As I cannot find an adequate viewer for glTF2 on linux, which not is a webbrowser, I would like to add my support for doing this.

unresolved external symbol

I'm getting

Error LNK2019 unresolved external symbol stbi_write_png_to_func referenced in function "bool __cdecl tinygltf::WriteImageData(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const *,struct tinygltf::Image *,bool,void *)" (?WriteImageData@tinygltf@@YA_NPEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PEAUImage@1@_NPEAX@Z) gltfTest
for tinygltf::WriteImageData jpg png and bmp
I noticed you commented out //#define STB_IMAGE_WRITE_IMPLEMENTATION
Related?

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.