khanat-opennel-code/code/nel/samples/3d/cluster_viewer
2014-07-19 14:01:03 +02:00
..
fonts Fixed: #1441 Remove all remaining .vcproj, Makefiles, automake scripts, etc... 2012-03-03 10:49:42 +01:00
groups Fixed: #1441 Remove all remaining .vcproj, Makefiles, automake scripts, etc... 2012-03-03 10:49:42 +01:00
max initial version 2010-05-06 02:08:41 +02:00
shapes Fixed: #1441 Remove all remaining .vcproj, Makefiles, automake scripts, etc... 2012-03-03 10:49:42 +01:00
CMakeLists.txt Changed: Use *_PREFIX instead of fixed values with INSTALL 2012-09-27 22:11:26 +02:00
main.cpp Changed: Replaced tests with .size() by .empty() because faster 2014-07-19 14:01:03 +02:00
main.cvs initial version 2010-05-06 02:08:41 +02:00
readme.txt Fixed EOL issues and added .hgeol file. 2012-05-29 08:31:11 -05:00

**************
Cluster Viewer
**************

By default the camera automatically detects the cluster
system it belongs to. In upper left corner we have the list
of cluster system in the scene (the cluster system in red is
the cluster system the camera is tested) and the cluster of
the current cluster system where the camera is.


Keys
----

Mouse - Turn view
Up/Down - Backward/Forward
Left/Right - Strafe
PgUp/PgDown - Look up/down
Shift - Speed up

L - Shows wireframe
P - Show plain polygons

A - Automatic detection of the cluster system ON/OFF
Z - Up in the list of cluster system (if autodetect off)
S - Down in the list of cluster system (if autodetect off)

TAB - Display/Hide cluster system information

Esc - Quit



Sample Specific Information
---------------------------

In the following sample some behaviour can be misunderstood.

Q: Why do I do not see the outside moving object from inside ?
A: This is because the clusters are NOT SET parent visible

Q: Why do I see all from rootCluster ?
A: This is because the clusters are SET visible from parent.

Q: Why ?
A: Because if we do not set any cluster visible from parent nor
parent visible there is no link between 'landscape' and the cluster
system.

Q: But I dont want to see the whole inside of my house from the 
landscape so what can I do ?
A: This is simple. Make a door which will be a portal to the outside.
Put the door in 2 clusters one which is inside the house and the
other outside. Flag the outside cluster with parent visible and 
visible from parent flags. And voila you've got your house indoor
no more visible from anywhere outside the house. Take care of the
portal orientation. The normal must point outside the house.

Q: Ok I have those things works but when my moving objects are inside the 
house this is like they are outside.
A: Yes because there are no automatic detection for the moving object.
You have to get this information from the PACS system and give it to
the Cluster/Portal system through the setClusterSystem function.

Q: What if my moving objects are using skeleton animation.
A: You will need to use setClusterSystem for the skeleton
only, the shape will inherit the visibility of the skeleton.

Q: ok thanks
A: you're welcome :)