Game Development Community

Plot points

by Jason Howard · in Torque Game Builder · 01/01/2006 (7:55 pm) · 2 replies

Are there built-in console functions for plotting individual points / pixels on the screen? I'm hoping to display an image from an image map, then plot some points on it in different colors.

#1
01/01/2006 (8:30 pm)
There currently aren't any built-in functions for points/lines/shapes, however there are a number of ways to accomplish this.

First, the most straight forward is probably to just create a staticSprite object using a dot or pixel imagemap from a JPG or PNG.

There's a nice add-on set of commands that generate primitives here by Matthew Kee, I bet they'd do what you want, but it requires compiling the engine again.
#2
01/02/2006 (5:31 am)
Thanks! The primitives resource is exactly what I needed. It will save me the time of building my own primitives.