[Gtkradiant] [Bug 350] New: TODO: extend entitiy definitions functionality

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Thu, 24 Jan 2002 08:59:23 -0600


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=350

           Summary: TODO: extend entitiy definitions functionality
           Product: GtkRadiant
           Version: 1.2-nightly
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: editor
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: wjoseph@europe.ea.com


This is  a problem with supporting multiple "game" versions. Entities.def was 
designed originally with no intention of visualising the various configurations 
of entities (apart from position, colour and bounding-box). For example, a 
misc_model entity requires visualising the appearance of the model, the "angle" 
of the model, and in the case of RTCW, the "modelscale" key. Support for these 
configurations is currently hardcoded and messy, and limits the ease of 
supporting other entity sets in different games.

Since it is not practical to anticipate and deal with every visualisation tweak 
made by different game versions, we should instead try to support the low-level 
visualisation options provided by the Q3 renderer. A customisable per-game XML 
entity definition file can remap the custom entity keys to these low-level 
visualisation options.

An example solution for misc_model would be.. low-level support for translate
(float,float,float) rotate(float,float,float) scale(float,float,float). 
Remap "origin" key directly to translate(), "angle" key to rotate
(0,0,angle), "modelscale" key directly to scale().

Currently entities.def is limited in what it can specify for an entity 
definition. We need a new format (XML-based) that can define entities better. 
Things to define include:
name
appearance (colour&bounding-box, modelpath)
list of valid spawnflags (plus comments) - for GUI
list of valid epair keys (plus default values, comments) - with remappings to 
low-level visualisation functions.



------- You are receiving this mail because: -------
Whoops!  I have no idea!