Chapter 24. Synchronization

Right now on both my devices (Android and PC) the box makes 1 revolution in approximately 4 seconds. It's 360 frames (rotation speed is set to 1 degree per frame). This means 360/4=90 frames per second (FPS). Obviously, on another devices it can be different. Besides, speed can depend on background processes and other factors. […]

Chapter 20. Modeler. Round shapes

Our current rectangular model does not allow us to appreciate all the beauty of the Phong shader, in particular - the glares. For that we'll need something more round-shaped. Let's extend our Modeler accordingly. Windows 1. Start VS. Open C:\CPP\a997modeler\p_windows\p_windows.sln. First - we'll need to extend VirtualShape.h. 2. Open VirtualShape.h and replace code by: New […]

Chapter 18. Camera view

In our previous chapters we used straight projection of our subject to the "screen surface". For more realistic picture we need Camera. OpenGL ES doesn't offer an embedded camera object, so we'll need to create one. Windows 1. Start VS. Open C:\CPP\a997modeler\p_windows\p_windows.sln. To see the difference with Camera view let's first simplify our box movement. 2. […]

Chapter 17. Modeler. Part 2

Now back to the modeler. Time to put all these new classes together. Windows 1. Start VS. Open C:\CPP\a997modeler\p_windows\p_windows.sln. 2. Under modeler add new header file ModelBuilder.h Location - C:\CPP\engine\modeler Code: In this sample we will create a red box with 1 blue side (the right one). For this we will need to create 1 GameSubject, […]