jirzynek
02-13-2009, 04:52 AM
Hi!
Right now in my engine I've implemented 2 scene graphs. One takes care of game geometry (terrains, scenes, animation, particles) and second manages 2d objects (panels, menus, generaly everything what has something common with 2D and is on top of 3d layer).
What is the best way to handle priorities in SG? For example I have a skybox and I want to draw it first (before anything else) with Depth test disabled and all other geometry with Depth test enabled. What is the best way to do this? Another sortkey?
cheers
jirzynek
ps. sorry for my language mistakes...
Right now in my engine I've implemented 2 scene graphs. One takes care of game geometry (terrains, scenes, animation, particles) and second manages 2d objects (panels, menus, generaly everything what has something common with 2D and is on top of 3d layer).
What is the best way to handle priorities in SG? For example I have a skybox and I want to draw it first (before anything else) with Depth test disabled and all other geometry with Depth test enabled. What is the best way to do this? Another sortkey?
cheers
jirzynek
ps. sorry for my language mistakes...