Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

101 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luacg

Description

preview

luacg is a project implements computer graphics algorithms in pure lua.

you can learn computer graphics by reading the source code and making changes.

more algorithms will be added in the future.

Usage

To use luacg, you need a lua interpreter, the official interpreter does not include opengl features.

Please download the interpreter built from luagl project. It can be downloaded here.

To execute luacg, cd to the root folder of this project and execute following command in your command-line interface.

path_to_lua_interpreter ./scene.lua

The "path_to_lua_interpreter" should be path to the interpreter you have downloaded.

For example, if you have downloaded lua interpreter in the root folder of this project, use:

./lua.exe ./scene.lua

The execution results will be placed in the root folder of this project.

List

1. rasterisation and barycentric coordinates

1

2. naive ray casting

2

3. quaternion and rotation

3

4. BVH accelerated ray casting

4

5. Monte Carlo ambient occlusion

5

6. OpenGL example

6

MISC

luacg Gaussian Splatting

3DGS

References

Appied Computer Graphics by Prof. Nobuyuki Umetani

pbr-book

lua-pngencoder

About

luacg is a project implements computer grahics algorithms in pure lua.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages