#graphics #mesh #truck #polygon #visualization #platform #shape

truck-rendimpl

visualization of shape and polygon mesh based on platform

12 releases

0.6.0 Sep 20, 2024
0.5.0 Dec 21, 2022
0.4.0 May 24, 2022
0.3.0 Dec 4, 2021
0.1.1 Dec 28, 2020

#66 in Graphics APIs

Download history 79/week @ 2024-09-14 71/week @ 2024-09-21 21/week @ 2024-09-28 3/week @ 2024-10-05

462 downloads per month

Apache-2.0

210KB
4K SLoC

truck-rendimpl

Crates.io Docs.rs

Visualization of shape and polygon mesh based on platform

Sample Codes

app

A GUI framework module providing MFC-like API.

bsp-animation

Benchmark Animation

In each frame, the NURBS surface is divided into mesh.

collision-sphere

material-samples

Material Samples

  • The more right the model, the higher the reflectance.
  • The upper the model, the higher the roughness.

The most right and lowest model is black because it does not diffuse light and no roughness in microfacet.

rotate-objects

Rotate Objects

  • Drag the mouse to rotate the camera.
  • Drag and drop obj files into the window to switch models.
  • Right-click to move the light to the camera's position.
  • Enter "P" on the keyboard to switch between parallel projection and perspective projection of the camera.
  • Enter "L" on the keyboard to switch the point light source/uniform light source of the light.

simple-obj-viewer

Simple OBJ viewer

  • Drag the mouse to rotate the model.
  • Drag and drop obj files into the window to switch models.
  • Right-click to move the light to the camera's position.
  • Enter "P" on the keyboard to switch between parallel projection and perspective projection of the camera.
  • Enter "L" on the keyboard to switch the point light source/uniform light source of the light.
  • Enter "Space" on the keyboard to switch the rendering mode for the wireframe and surface.

simple-shape-viewer

Simple shape viewer

  • Drag the mouse to rotate the model.
  • Drag and drop json files into the window to switch models.
  • Right-click to move the light to the camera's position.
  • Enter "P" on the keyboard to switch between parallel projection and perspective projection of the camera.
  • Enter "L" on the keyboard to switch the point light source/uniform light source of the light.

A model json file can be generated by serde_json. See the examples of truck-modeling!

textured-cube

An example of using texture.

Dependencies

~9–46MB
~760K SLoC