Examples
Trial includes a system with a variety of examples called trial-examples
. After loading it, you can fire it up via trial-examples:launch
which will show a menu where you can pick an example to run. You can also run a specific example directly by passing an initarg.
You can also download precompiled versions of Trial's examples as binaries from GitHub. Note also that the assets seen here can be found in trial-assets and are not otherwise available in the trial
resource pool.
The following examples are currently available:
triangle
A simple triangle
pbr
An illustration of the Physically Based Rendering system
rigging
An example of an animated character model
cpu-particle
A demo of the CPU particle system
gpu-particle
A demo of the large-scale GPU particle system
video
An example of video playback
spatial-query
A test application for spatial query data structures
collision
A test application to show off collision detection methods
raycast
A test application to illustrate raycasting
selection
A demo for the selection buffer feature
physics
A simple rigid body physics demo
convex-physics
An illustration of automated convex decomposition of arbitrary models
system-info
Show various statistics and bits of information about the system
animated-sprite
Render an Aseprite sprite sheet animation
tilemap
Load a Tiled tile map and display it
audio
An illustration of audio effects and music
convex-decomposition
Perform convex decomposition on arbitrary models
save-data
Show how save state data can be loaded and stored
scene-loader
Load arbitrary scenes, including physics simulation aspects. Shows the infamous Sponza by default
shader
Define a custom fragment shader to display a mandelbrot
post-processing
A playground for various post-processing effects