Browse Source

Same as before

Panagiotis Christopoulos Charitos 14 years ago
parent
commit
0bbe304d17
1 changed files with 18 additions and 4 deletions
  1. 18 4
      docs/drafts/scene-abstraction.txt

+ 18 - 4
docs/drafts/scene-abstraction.txt

@@ -12,7 +12,7 @@ Every scene node has a few properties that are actually interfaces. This interfa
 |                        |                  | - getVertIdsNum(level, type)      |                     |
 |                        |                  | - getVertIdsNum(level, type)      |                     |
 |                        |                  | - getWorldTransform(level, type)  |                     |
 |                        |                  | - getWorldTransform(level, type)  |                     |
 +------------------------+------------------+-----------------------------------+---------------------+
 +------------------------+------------------+-----------------------------------+---------------------+
-| Renderable             |                  | - getMaterial                     | PatchNode           |
+| Renderable             | BaseRenderable   | - getMaterial                     | PatchNode           |
 |                        |                  | - getMaterialRuntime (Mutable)    |                     |
 |                        |                  | - getMaterialRuntime (Mutable)    |                     |
 |                        |                  | - getMaterialRuntime (Const)      |                     |
 |                        |                  | - getMaterialRuntime (Const)      |                     |
 |                        |                  | - renderInMs (its not virtual)    |                     |
 |                        |                  | - renderInMs (its not virtual)    |                     |
@@ -36,8 +36,7 @@ Rendering passes:
 	- Level n
 	- Level n
 		- Color
 		- Color
 		- Depth
 		- Depth
-		- DepthParaboloid
-		
+		- DepthParaboloid	
 	- Debug
 	- Debug
 
 
 
 
@@ -90,10 +89,25 @@ Visibility testing
 		endfor
 		endfor
 	endfunction
 	endfunction
 
 
+=========
+Rendering
+=========
 
 
+::
+	function render(VisiblesContainable obj, PassType pt)	
+		for renderable obj's renderables
+			level = calc from distance of obj and renderable
+		
+			setupShaderProgram for obj in pt and level
+			render using vao of level
+		endfor
+	endfunction
 
 
+========
+Problems
+========
 
 
-
+- All properties should contain the world transform