Skip to content

k1ngmang/zont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zont

Simple and fast engine for rendering 3D graphics in the terminal

How to use?

First of all, you need to install the go compiler, then in the main file select the necessary settings (dimensions, object for rendering, etc.)

package main

import (
	"log"
	"zontengine/internal/matrix"
	"zontengine/internal/render"
)

func main() {
	file := "models/cube.obj"

	matrix := matrix.NewMatrix(30, 30)

	renderer := render.NewRender(matrix)

	verts, err := render.LoadOBJ(file)
	if err != nil {
		log.Fatalf("Error %s: %v", file, err)
	}

	renderer.Render(verts)
}

And using

make build
make run

you can run the project

Important

For now the project is in the development stage, so from the api you will not be able to conveniently specify the rotation matrix and generally work with the code, but all this will be finalized

About

3d graphics engine in terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors