Practical sessions
Here are some ideas for more code to add to the examples:
- Try to create the 3D crate box by yourself and add the remaining five sides to the
Model
class in the01_opengl_view
and03_vulkan_view
examples. This requires quite some imagination to get all the vertex positions, triangle outside faces, and texture coordinates right. Or you can use 3D tools such as Blender to create a cube and transfer the data to theModel
class. - Add the view and projection matrices to the user interface. This will give some more insights into how the changes in the position, view, or field-of-view parameters are reflected in the matrices.