[BUG 1.1B] GuiGraphCtrl - LOGGED
by Jameson Bennett · in Torque 3D Professional · 04/22/2010 (4:55 am) · 3 replies
The GuiGraphCtrl has some issues with rendering:
Will not work as a child control, it does not take parent offset into account (basically will draw outside the rect... needs offset.x and y added in).
Uses the control's extent.x rather than maxdatapoints to loop. If the extent.x is made wider than the maxdatapoints it will assertfatal (at least it catches it). It should use maxdatapoints and then normalize to the controls extent to determine the point x positions.
The netgraph works fine, but it looks like when the ctrl was ported, it was only checked against this and no other cases.
I have fixed it for my own special case needs but basically needed a re-write. If I eventually get to cleaning it up I'll post the reworked render function.
Will not work as a child control, it does not take parent offset into account (basically will draw outside the rect... needs offset.x and y added in).
Uses the control's extent.x rather than maxdatapoints to loop. If the extent.x is made wider than the maxdatapoints it will assertfatal (at least it catches it). It should use maxdatapoints and then normalize to the controls extent to determine the point x positions.
The netgraph works fine, but it looks like when the ctrl was ported, it was only checked against this and no other cases.
I have fixed it for my own special case needs but basically needed a re-write. If I eventually get to cleaning it up I'll post the reworked render function.
About the author
jam3son.com
Torque 3D Owner Jameson Bennett
really. no joke.
wouldn't it be awesome if this were fixed and t3d could draw pretty graphs for all sorts of stuff, not just the net data?
bumps.