Git Product home page Git Product logo

renderply's Introduction

Loading PLY files using GLFW

This is a project uses GLFW, GLEW and the math library GLM to load PLY files. The project was generated over Visual Studio 2017. The project contains the basic draw, keyboard, initialize and resize function over GLFW and the usage of vertex and fragment shader. Code contains the definition for the Visual Studio compiler

#pragma comment(lib, "glfw3dll.lib")
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glew32.lib")
#pragma comment(lib, "opengl32.lib")

at beginning of code.

Also, the structure is using a namespace called glfw which contains all the variables. A class CArcBall is included which controls the movement of objects using the mouse. The PLY files are loadad from geometry folder. A basic shader pass-away is used.

Functions and variables related to GLFW are encapsulated into a namespace called glfwFunc (nothing special about the name). The code include all the libraries (yes, I know that is not efficient) to be used directly without download any additional library (based on the mentioned platform/libraries).

For Visual Studio 2017, you need to add the _CRT_SECURE_NO_WARNINGS in Project Configuration -> C/C++ -> Preprocessor -> Preprocessor Definitions

If you want to contribute to this project and make it better, your help is very welcome.

renderply's People

Contributors

esmitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

renderply's Issues

about ply color

Thank you very much for your work!
When using your code, I found that this code does not support the color of vertices in ply files,Could you tell me how to load a ply file with colors?
This is the ply file format I use
image

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.