SceneRenderImage::NewSortType Help
by Sam Guffey · in Torque Game Engine · 11/30/2003 (5:41 pm) · 2 replies
Im looking to remove the clouds from the sky sort and give the clouds a new sort after the BeginSort type, that way the fxSun can be hidden if it happens to go behind a cloud. Would this be the best way to go about this or is there another method? Would I just need to create a prepRenderImage call for the cloud or would it be to much of a hassle?
I know I would need to create a new sort type but in sceneState.h it lists them and the order they apply but where can I change this "Order"? Sky = 0 and Terrain = 1 but from the comments BeginSort comes in before Terrain and after Sky. Where is this order contained? Any help on this will be grateful.
-----
Sam G
I know I would need to create a new sort type but in sceneState.h it lists them and the order they apply but where can I change this "Order"? Sky = 0 and Terrain = 1 but from the comments BeginSort comes in before Terrain and after Sky. Where is this order contained? Any help on this will be grateful.
-----
Sam G
About the author
#2
I have found no-where that states BeginSort comes before terrain but after sky.
12/01/2003 (2:55 am)
Yes but BeginSort is the last one on the list yet its the second one to get called, plus there is no defining number beside any of them but Sky, Terrain and Normal.enum SortType
{
Sky = 0,
Terrain = 1,
Normal = 2,
Point,
Plane,
EndSort,
BeginSort
};I have found no-where that states BeginSort comes before terrain but after sky.
Associate Kyle Carter