#include <Scene.h>
Inheritance diagram for Teddy::Scenes::Scene:
Improve light management
Improved sorting, especially for transluent surface support
Scene contains Lights and ModelInstances. Scene is responsible of rendering the scene according to Camera / Projection Area / (Transform)View settings, and each individual ModelInstance settings.
At the moment rendering the Scene is a very unoptimized process. Later on things to be drawn should be arranged by material etc.
Because light management is currently very simple, all lights are applied before instances are drawn.
At the moment the scene is drawn in a single pass. This pass asks camera to cull instance and then the instance to draw itself if it was not culled.
Rendering transluent instances and elements is not yet implemented.
Definition at line 69 of file Scene.h.
|
Constructor.
Definition at line 52 of file Scene.cpp. References ambient_color, cull_count, draw_count, and last_draw_count. |
|
Add new ModelInstance to Scene.
Definition at line 81 of file Scene.cpp. References models. |
|
|
|
Add new Light to Scene.
Definition at line 69 of file Scene.cpp. References lights. Referenced by Teddy::Imports::LWSceneParser::postProcess. |
|
Draw scene to OpenGL viewport.
Definition at line 125 of file Scene.cpp. References ambient_color, cull_count, drawPostElements, last_draw_count, lights, models, and Teddy::Graphics::Color::rgba. Referenced by Teddy::Scenes::Camera::projectScene. |
|
Draw scene to OpenGL viewport.
Definition at line 190 of file Scene.cpp. References post_elements. Referenced by draw. |
|
Definition at line 184 of file Scene.cpp. References cull_count. |
|
Definition at line 63 of file Scene.cpp. References last_draw_count. |
|
Definition at line 310 of file Scene.cpp. References DoubleVector, MAX, and models. |
|
|
|
Return instance list.
Definition at line 114 of file Scene.cpp. References models. |
|
Return Modele close to given view coordinates 3.
Definition at line 218 of file Scene.cpp. References models, Teddy::MixIn::Named::name, and pick. Referenced by pick. |
|
Definition at line 94 of file Scene.cpp. References models. |
|
|
|
Definition at line 86 of file Scene.cpp. References lights. |
|
Definition at line 119 of file Scene.cpp. Referenced by Teddy::Imports::LWSceneParser::postProcess. |
|
Update Modelss in scene This is required when any Material control property of Projection is changed. |
|
|
|
Definition at line 98 of file Scene.h. Referenced by draw, getCullCount, and Scene. |
|
Definition at line 99 of file Scene.h. Referenced by Scene. |
|
Definition at line 100 of file Scene.h. Referenced by draw, getDrawCount, and Scene. |
|
|
|
Definition at line 95 of file Scene.h. Referenced by add, draw, getMaxObDistance, getMaxObSize, getModels, pick, and remove. |
|
Definition at line 96 of file Scene.h. Referenced by drawPostElements. |