About Store Forum Documentation Contact



Post Reply 
Text Render Mode
Author Message
Brainache Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
Brainache Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
Re: Text Render Mode
Hi,

You can use Frustum checking, please see Frustum operators () (in Math\Frustum.h)
12-07-2008 11:54 PM
Find all posts by this user Quote this message in a reply
Brainache Offline
Member

Post: #5
Re: Text Render Mode
thanks for the help!
12-08-2008 12:08 AM
Find all posts by this user Quote this message in a reply
Post Reply