Skip to content

Research on methods for real-time CSG rendering

License

Notifications You must be signed in to change notification settings

hb3p8/csg-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csgparser

File csgparser.cpp implements a simple reference parser of CSG format. It depends on two libs:

Which already included (hopefully legally) into this repository.

JSON format is used as intermediate data representation in order to not introduce yet another new format.

csg2json

File csg2json.cpp implements a simple CSG to JSON back and forth converter which serves for the number of important tasks:

  • It is a sample of using csgparser
  • It performs validation of CSG files (or at least it should)
  • It converts CSG files to JSON so you may stick to JSON both for import and export in your app

csgviewer

File csgviewer.cpp implements a simple OpenGL based CSG 3d viewer.

  • Firstly it converts CSG tree to distance field on 3d grid.
  • Then it uploads 3d grid to GPU (3d texture) and renders it interactively.

license

MIT License

About

Research on methods for real-time CSG rendering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages