How can I create glowing lines with TGB? (example inside)
by John Klimek · in Torque Game Builder · 05/19/2007 (11:15 pm) · 28 replies
I'm trying to create a retro/vector-art 2D that has glowing lines like Defcon or a game called Project Vex...
Here are some screenshots:
http://devimg.net/?Post=448
http://www.introversion.co.uk/defcon/about/screenshots.html
How can I achieve this effect in TGB?
Thanks,
John
Here are some screenshots:
http://devimg.net/?Post=448
http://www.introversion.co.uk/defcon/about/screenshots.html
How can I achieve this effect in TGB?
Thanks,
John
About the author
Recent Threads
#22
05/25/2007 (1:22 pm)
Hmmm... I thought there was a way to draw primitives? t2dShapeVector maybe?
#23
05/25/2007 (1:27 pm)
Was removed when I remember correctly (haven't checked if 1.5 reimplements it)
#24
05/25/2007 (8:28 pm)
t2dShapeVector is indeed still alive and kicking in 1.5.
#25
It was removed from the TGB, that's true, but it's still in the engine. :-)
05/26/2007 (2:48 am)
@Marc:It was removed from the TGB, that's true, but it's still in the engine. :-)
#26
You can make a simple function that will draw a line using a small blurred dot sprites. You can draw it on texture (i.e. on a sprite) and then render the whole sprite at once.
05/26/2007 (4:00 am)
Ok, let me put my 5 cents into this problem :)You can make a simple function that will draw a line using a small blurred dot sprites. You can draw it on texture (i.e. on a sprite) and then render the whole sprite at once.
#27
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9414
06/16/2007 (11:02 am)
Here's a resource to draw primitives with TGB. Of course, you need the pro version to add it. You can draw different shapes with transparent gradient colors as well.http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9414
#28
1) Draw a piece of the line in your image editor, but in TGB you can then size the image to scale it to make it look like a line (as well as use setRotation to set the rotation of it).
(above is for use with a t2dStaticSprite)
2) Could also try playing with a t2dChunkedSprite and repeating the image as well.
06/28/2015 (9:27 pm)
I did some looking into drawing a glowing line myself, and I can see two ways to do it:1) Draw a piece of the line in your image editor, but in TGB you can then size the image to scale it to make it look like a line (as well as use setRotation to set the rotation of it).
(above is for use with a t2dStaticSprite)
2) Could also try playing with a t2dChunkedSprite and repeating the image as well.
Associate Orion Elenzil
Real Life Plus