Xemame
03-16-2010, 03:05 AM
Hello!
For my application, I'd link to separate my world in layers and to put all my objects to draw in these layers. The aim is to sort what gives its color to the pixels at the end of the rendering.
For example, I have a back ground, particles, animals, ghosts and text, and I want the text to never be hidden by the ghosts, the ghosts to never be hidden by the animals, the animals to never be hidden by the particles and the particles to never be hidden by the background. So I would put all objects of the same kind in the same layer and I would sort the layers, so the layer of the background is at the very bottom and the layer of the text is at the very top.
For the background, I can use the skybox technique.
Do you have an idea to implement the other layers?
Thanks!!!
For my application, I'd link to separate my world in layers and to put all my objects to draw in these layers. The aim is to sort what gives its color to the pixels at the end of the rendering.
For example, I have a back ground, particles, animals, ghosts and text, and I want the text to never be hidden by the ghosts, the ghosts to never be hidden by the animals, the animals to never be hidden by the particles and the particles to never be hidden by the background. So I would put all objects of the same kind in the same layer and I would sort the layers, so the layer of the background is at the very bottom and the layer of the text is at the very top.
For the background, I can use the skybox technique.
Do you have an idea to implement the other layers?
Thanks!!!