How do I Project To Screen in TSE
by CdnGater · in Torque Game Engine Advanced · 01/15/2006 (11:24 am) · 2 replies
I am stuck and I need someones help. I use to be able to do the following code chunk in TGE in a GameObject::renderObject function and have a square block in the middle of my screen.
Now I am trying to do the same thing in TSE, but I am having no luck
This draws the texture but from the persepect of location 0,0,0 (In 3D) not in the middile of my screen.
I think I need to do the projection and modelview as I did in TGE, but this is where I am at a loss. How do I do this in TSE?
Thanks
glMatrixMode(GL_PROJECTION); glPushMatrix(); glMatrixMode(GL_MODELVIEW); glPushMatrix(); dglDraw2DRectangle( screenCenter, 100, 0); glMatrixMode(GL_MODELVIEW); glPopMatrix(); glMatrixMode(GL_PROJECTION); glPopMatrix();
Now I am trying to do the same thing in TSE, but I am having no luck
GFX->setCullMode( GFXCullNone ); GFX->drawBitmap( textureHandle, screenCenter);
This draws the texture but from the persepect of location 0,0,0 (In 3D) not in the middile of my screen.
I think I need to do the projection and modelview as I did in TGE, but this is where I am at a loss. How do I do this in TSE?
Thanks
#2
01/16/2006 (5:22 am)
Thanks Brian; I had seen that, but did not realize that was what I was actualy looking for.
Torque Owner Brian Richardson
bzztbomb -- Knowhere Studios