Brainache
Member
|
Text Render Mode
Hey there,
I have overiddden the draw method of my chr derived classes so I can add some additional info to the rendering (starting with a text label - with health bar, etc in the future)
However, while the text is rendering... it is glowing as if it was extremely overbright... What render mode should the text be rendered in?
Thanks!
|
|
12-07-2008 10:13 PM |
|
Esenthel
Administrator
|
Re: Text Render Mode
Hi,
all 2d graphics should be drawn outside of Render function,
please check tutorial "game basics/custom parameters"
|
|
12-07-2008 10:44 PM |
|
Brainache
Member
|
Re: Text Render Mode
Allrighty - I can certaintly do that, however, that brings up the issue that I do not want to draw the info for objects that are not within the field of view...
Is there a way to tell if an object was rendered during the last render pass? If not - is there a way to test an object to see if would be rendered?
Thanks
|
|
12-07-2008 11:08 PM |
|
Esenthel
Administrator
|
Re: Text Render Mode
Hi,
You can use Frustum checking, please see Frustum operators () (in Math\Frustum.h)
|
|
12-07-2008 11:54 PM |
|
Brainache
Member
|
Re: Text Render Mode
thanks for the help!
|
|
12-08-2008 12:08 AM |
|