Skip to content

exerro/v3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V3D

3D rasterization library for ComputerCraft!

V3D lets you draw triangles in 3D with very good performance. The library supports more advanced features like per-pixel depth testing, face culling, fragment shaders, and perspective correct UV interpolation (that lets you use textures).

Screenshot of mountains being drawn using this library

The library is low-level and minimal, aimed at developers wanting to write high performance 3D applications, or wanting to write a more general purpose and capable 3D engine on top of a high performance 3D rasterization library.

There are guides covering everything from the basics to advanced features and concepts.

Here are a few you may be interested in.

Benchmarking

I've included a pretty capable suite of benchmarking tools. Use v3d/benchmarking/run --help for information.

The benchmarks offer comparison to another rendering library, Pine3D. I'm planning on including C3D at some point too.

Here's some sample output.

Sample benchmark result table

Rasterisation visualisation

The library uses a custom rasterization algorithm. You can interactively play with the rasterizer using a Kotlin application.

Check out the raster_visuals folder for details!

Screenshot produced by rasterisation visualisation program

About

3D rendering in ComputerCraft

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published