I have been exploring Textures in Delphi 3D and this required an understanding of colors and at a later time will require the construction of very specific Bitmaps modeled on the one used by Anders Ohisson in his Maths Function Demo. Here I discuss two simple demo projects and a library of functions for creating bitmaps and textures in Delphi for Delphi. Continue reading “Playing with Colors Bitmaps and Textures in Delphi”
When we first looked at moving the camera or another 3D object we thought left was step negative X and Up was step negative Y and forward was step plus Z. If you want to reorient this object then in fact it is not so easy. In the case of our camera we want it to travel forward and backward along the local Z axis which is not the same as incrementing the global Z value.
While the Camera used in the IDE the “Design Camera” always points to the origin [0,0,0] because of the way it is created any arbitrary camera created at any position on the form could point anywhere. It was useful to provide a routine to automate this process.
Continue reading “Delphi 3D – Align Camera to Origin”
When allowing a user to control or move the camera in a 3D scene it is useful to have some form of “Heads Up” or “dashboard” display to provide feedback to the user about the orientation etc. of the camera. We wrap all this up in a single “AssignFlyingCameraToForm” procedure.
When I read about Delphi 3D in “FireMonkey Development for IOS and OSX with Delphi XE2” I was excited about the described ability to move the “camera” around in the 3D scene. Given that my then 11 year old grandson had whacked together a credible solar system scene in an afternoon moving the camera seemed to offer great possibilities. Continue reading “A “Flying Camera” or “First Person Shooter””