Skip to content

k-nero/OpenGL-3D-Engine

Repository files navigation

OpenGL 3D Engine

Installation

Dependencies

Install Dependencies with vcpkg In case you don't have vcpkg installed, you can install it from here and add vcpkg to your PATH. Then navigate to the root directory and run the following command to install the dependencies.

$ vcpkg x-update-baseline
$ vcpkg install

3D Model

Initialize models before enter render loop

model3D = Model();
model3D.LoadModel("models/scene.obj");

Render models in ObjectRenderer(const Shader * shader)

model = translate(model, vec3(0.0f, -10.0f, 5.0f));
model = scale(model, vec3(50.0f, 50.0f, 50.0f));
shader->SetModel(model);
shinyMaterial.UseMaterial(uniformSpecularMaterial, uniformDiffuseMaterial, uniformAmbientMaterial, uniformShininess);
model3D.RenderModel(*shader);

About

A simple 3D render engine with modern OpenGL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published