Hi all,
i try to show some particles in my GUIViewport.
The GUIViewport is a static method of a class (a character selection gamestate). The drawfunction is called by the engine. Via the GuiViewport.user variable i have access to all methods of the class.
The drawfunction therefore only calls my nonstatic method of the class and i now have full access to all things. (like the tipp from my GUI post).
So my problem is that if i want to render the particle nothing happens. The particles are corectly loaded and updated. then in the NonStatic drawfunction of the class i cannot draw them in the RM_BLEND or RM_PALETTE pass of the renderer.
It seem to be that Renderer at this stage do not know in which pass he is.
So the draw line of the particles is not called.
Code:
Box(1,Vec(0,0,0)).draw(WHITE);
switch(Renderer())
{
case RM_BLEND :
case RM_PALETTE: m_psysCharacterBackground.draw(); break;
}
the particle are also not rendered outside of the switch.
but the test box is correctly rendered and the camera works fine.
any tipp?
cu
Oliver