In unity its very easy to preview your scene. For example, you have an simple ego perspective to walk around your models.
It bugs me, to create an spectator mode or a walk-through setup from scratch, every time I start a new bge project/testfile. Also I dislike to link them to my scenes and create instances of such setups.
I have written a little toolbox, that adds some viewmodes to the bge.
There is no need for any logic bricks or python setups. All setup work is done behind the scenes if the operator is executed. After bge exit, the created objects are cleaned up.
please, tell me what you think. This could be easily transformed into an addon…
Addon branch on gitorious:
The bge-addon branch already contains some more addons:
- MatMan (Material painter for stencil maps) by Doc Holiday
- BatchBaker from project Mango
Unpack the archive, copy the bge_toolbox folder into 2.63/scripts/addons/ directory in your blender home dir or your blender install directory. Enable the addon as usual at userconfig->addons->bge toolbox
Currently included stuff:
- spectator (w,a,s,d + mouse)
- egoview (w,a,s,d + mouse)
- modelviewer (mouse wheel drag)
- arealview (mouse wheel drag for rotation, mouse wheel shift drag for panning)
Currently not implemented:
- 3rd person viewmode
- 2d viewmode
You can change the construction setup at bge_viewmodes.py or change the implementation under bge_scripts. These are more quick&dirty hacks that you can exchange with your own viewmode implementation. Have fun.
EDIT: !use with care, it deletes objects after bge exit! Do not name your objects with two underscores.