• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Graphic System - Provisory submission

Status
Not open for further replies.
Level 11
Joined
Jul 20, 2004
Messages
2,760
As there is no resource section for spells and systems, I'll post my graphic system here as I am in great need of constructive comments. It may also prove very useful to some mappers and spellmakers around here.

The Graphic System is a library that makes certain graphical aspects in Warcraft 3 much easier. It is compatible with other systems (such as the famous Caster System) but is also independent, using its own cache functions.

Version: 1.3
Last updated: March 25 - 2007

Features
- Easily create primitive and more advanced static shapes such as circles, lines, spirals and more.
- Flexibility: manipulate the parameters of the shapes created in many ways.
- Geometrical checks
- Dynamic effect birth & death: create static objects with a slight delay between units composing them and destroy them in the same manner.
- Timed effects.
- Dynamic and static destruction of the effects.

Promising features to come
- Dynamic effects: orbiting around units/a certain point, dynamic wheels
- Lightning pools: effects with lightnings
- More static effects (eg: stars)

History:

Version 1.0 - First version of the system with the basic static shapes (circle,arc,line,spiral,hypercycloid).
- Basic geometric checks.
Version 1.1 - Dynamic birth and death shapes included.
- Radius reduction function added for safety reasons.
Version 1.2 - GS_DestroyEffectDynamic() function added.
- Timed versions of both static and dynamic (fixed) shapes added.
Version 1.21 - Epicycloid shape added and fixed a small bug with hypocycloids.
Version 1.3 - Rose shape included
- Fixed major bug which caused imperfect (and most of the times incomplete) shapes.

Credits: Thanks to Vexorian for the dummy unit model.

~Daelin
 

Attachments

  • Graphic System.w3x
    57.6 KB · Views: 102
  • GraphicSystem.jpg
    GraphicSystem.jpg
    171.3 KB · Views: 238
Last edited:
Level 11
Joined
Jul 20, 2004
Messages
2,760
I am aware of that system, seen it a while ago. And thanks for allowing me to borrow code, but I've learned my math with those roses. They were quite a pain in the ass. Nevertheless... I do not know how much I will extend this system to static shapes (I still have stars in plan, and maybe as a bonus, triquetra). I will soon start working at dynamic shapes (wheels, orbiters, line rotating around a point etc.) and yes, I also plan to extend it to lightnings. I will probably borrow from Vexorian that integer pool of his.

I may also make a linked list (simple or double... again, ain't sure) of integers in order to make the destruction of the shapes regular. Right now, it's a bit chaotic, as I always take the first unit in the group, and destroy it.

~Daelin
 
Level 9
Joined
Jul 27, 2006
Messages
652
Looks REALY good atm Dealin...
Hopefully we might get some good looking spells from it, probably mainly from the "Dynamic effects: orbiting around units/a certain point, dynamic wheels" function.
The effect destroying bit looks pretty sexy to me and any chance you could (once your done with the Dynamic effects) add use in real spells not just demo spells?
 
Status
Not open for further replies.
Top