Custom viewports, engine 2.0.0 release very soon
You can now have many viewports on the 2D window to observe your 3D world from various cameras. You can make e.g. split-screen games (each view displays different player), 3D modeling programs (where you usually like to see the scene from various angles at once), or just show a view from some special world place (like a security camera).
Your viewports may be placed in any way you like on the screen, they can even be overlapping (one viewport partially obscures another). Each viewport has it's own dimensions, own camera, but all viewports share the same 3D world. Each viewport has also it's own rendering methods, so you can derive e.g. a specialized viewport that always shows wireframe view of the 3D world.
This very nice feature is implemented thanks to the scene manager framework. The scene manager itself also acts as a viewport (if
DefaultViewport is true), which is comfortable for simple programs where one viewport is enough. When
DefaultViewport is false, scene manager is merely a container for your 3D world, referenced by custom viewports (
See the screenshots on the right and
kambi_vrml_game_engine/examples/vrml/multiple_viewports.lpr example program in the SVN for demo.
Other improvements include new button rendered in the OpenGL (
kambi_vrml_game_engine/src/ui/opengl/glcontrols.pas unit), you can see it on the screenshots too. This is the start of a promised 2D controls library for the engine. The idea is that such button may be easily themed for your OpenGL game, to match game mood and graphics.
Also there's a
TKamGLImage control, and lot's of bugfixes stabilizing engine 2.0.0. It's pretty much finished now — expect engine 2.0.0 and view3dscene 3.5 releases very shortly :)
Copyright Michalis Kamburelis and Castle Game Engine Contributors.
This webpage is also open-source and we welcome pull requests to improve it.