Personal tools
You are here: Home cmgui Wiki Working with scenes
Views
Using Cmgui >>

Working with scenes

last edited 1 year ago by blackett

Scenes are an earlier attempt in cmgui to get a heirarchy of graphics objects. Normally you use a single scene attached to a scene viewer. You can however create as many new scenes as you want. These are independent and are either manual (you draw only the things you want in them) or automatic (empty_g_element, invisible_g_element, g_element_lines) where any new regions (or groups) added into your program are added in.

Any scene_viewer can then be pointed to look at your new scene rather than the default scene.

You can also create a heirarchy of scenes by drawing any scene into any other scene using gfx draw.

A big flaw in all of this is that if you use regions and create a heirarchy of finite elements, you have to reproduce this independently in scenes to get a sensible behaviour. Instead the graphics settings could attach directly to the scene heirarchy.

Contributing to this site

Please add to the wiki any relevant information that you think might be useful to other users of this website. For example, you might like to contribute your experiences, questions and answers.

You are encouraged to contribute to this site regardless of your level of experience. Contributions are welcomed from new and regular visitors.

If you ask a question and receive an answer from a developer you should record it in the wiki. This information is extremely useful and can help other users overcome the same problem.

See how to add and edit pages for more information.