Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

loopaware/Draw3D-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draw3D Demo

Screenshot

A demo of screen-space picking, 3D-rendering and serialization as well as deserialization.

  • Arrow keys and w, a, s, d, q, e controls zoom and rotation in object-space.
  • mouse buttons click and drag as well as scrolling controls the same.

This was created as a test of my theories of screen-space picking and drawing to texture.

Tech

The solution was developed and tested with the following tech and their respective versions:

Custom binary format

The application includes a simple exporter script for blender that export a given mesh to a file. The main application then reads this kind of file and creates a 3d object at origo.

[An image of the file-format data](./docs/f3d file format%20-%20v1.pdf) Simple binary file format that contains mesh information.

Todos

  • Optimize draw (click-drag).
  • The current implementation is CPU-heavy and this could be partially implemented on the GPU via GLSL.
  • Implement different draw modes.
  • Older version used a "dotting"-approach to drawing, latest version draws a line in a very non-optimized manor.

License

LGPL 3.0

About

A demo and excercise in applied OpenGL 4.3, matrix math and screen space picking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published