drawing shapes

drawing shapes

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
Voidranaut
Posts: 47
Joined: 20 Dec 2009, 21:16

drawing shapes

Post by Voidranaut »

In BA it is possible to make units that use shields to deflect plasma bombardments

What mechanics does the game rely on to make these hollow shell spheres? (I canÔÇÖt find a gadget or widget that seems to do this job)

And further more can I utilize this mechanic to make my own custom shapes with custom colors by invoking xyz and RBG based functions?

any info would be great

thanks
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: drawing shapes

Post by Argh »

Shields aren't a Gadget, they're a Spring function. Look up Weapons:Shields in the Wiki, it's pretty complete.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: drawing shapes

Post by KDR_11k »

Voidranaut wrote:What mechanics does the game rely on to make these hollow shell spheres?
They're special projectiles. You can draw a sphere using OpenGL though. I don't think Spring includes the primitive functions so you'll need to make a function that creates the sphere mesh yourself.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: drawing shapes

Post by aegis »

doesn't CA's cloak gadget draw a transparent sphere?
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: drawing shapes

Post by MidKnight »

aegis wrote:doesn't CA's cloak gadget draw a transparent sphere?
It does, although it isn't smooth shaded.

LUPS can, if I understand correctly, also draw pretty spheres.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: drawing shapes

Post by CarRepairer »

Post Reply

Return to “Lua Scripts”