Difference between revisions of "2DFX"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Research}} {{IdeSection | game = GTA III, GTA VC | description = Used to place lights, particles, and ped behaviors on objects }} '''2DFX''' is a section in the [[item def...)
 
Line 7: Line 7:
  
 
==GTA III - Vice City==
 
==GTA III - Vice City==
===Formats===
+
===Type 0: Light===
''Type 0: Light''
 
 
  ID, X, Y, Z, R, G, B, 200, Type, Corona, Shadow, Distance, Outer range, Size, Inner range, IDE flag, Wet, Flare, Dust
 
  ID, X, Y, Z, R, G, B, 200, Type, Corona, Shadow, Distance, Outer range, Size, Inner range, IDE flag, Wet, Flare, Dust
  
Line 15: Line 14:
 
!Description
 
!Description
 
|-
 
|-
|<center>ID</center>||existing object ID defined in [[OBJS]] section
+
|<center>ID</center>||associated to existing object ID defined in [[OBJS]] section
 
|-
 
|-
|<center>X, Y, Z</center>||X, Y, and Z coordinates offset from the center of the object
+
|<center>X, Y, Z</center>||X, Y, and Z coordinates relative to the center of the object
 
|-
 
|-
 
|<center>R, G, B</center>||color of the light and everything associated it in RGB format
 
|<center>R, G, B</center>||color of the light and everything associated it in RGB format
Line 46: Line 45:
 
|}
 
|}
  
''Type 1: Particle''
+
====Types of Flashes====
 +
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
 +
| 0
 +
| constantly lit all time
 +
|-
 +
| 1
 +
| constantly lit at night
 +
|-
 +
| 2
 +
| occasional flicker all time
 +
|-
 +
| 3
 +
| occasional flicker at night
 +
|-
 +
| 4
 +
| ~1 second flashes
 +
|-
 +
| 5
 +
| ~1 second flashes at night
 +
|-
 +
| 6
 +
| ~2 seconds flashes
 +
|-
 +
| 7
 +
| ~2 seconds flashes at night
 +
|-
 +
| 8
 +
| ~3 seconds flashes
 +
|-
 +
| 9
 +
| ~3 seconds flashes at night
 +
|-
 +
| 10
 +
| random flicker
 +
|-
 +
| 11
 +
| random flicker at night
 +
|}
 +
 
 +
===Type 1: Particle===
 
  ID, X, Y, Z, R, G, B, 200, Type, Particle, unk1, unk2, Size
 
  ID, X, Y, Z, R, G, B, 200, Type, Particle, unk1, unk2, Size
  
Line 53: Line 91:
 
!Description
 
!Description
 
|-
 
|-
|<center>ID</center>||existing object ID defined in [[OBJS]] section
+
|<center>ID</center>||associated to existing object ID defined in [[OBJS]] section
 
|-
 
|-
|<center>X, Y, Z</center>||X, Y, and Z coordinates offset from the center of the object
+
|<center>X, Y, Z</center>||X, Y, and Z coordinates relative to the center of the object
 
|-
 
|-
|<center>R, G, B</center>||color of the light and everything associated it in RGB format
+
|<center>R, G, B</center>||useless values
 
|-
 
|-
 
|<center>Type</center>||type of 2DFX, always 1 for particles
 
|<center>Type</center>||type of 2DFX, always 1 for particles
Line 64: Line 102:
 
|-
 
|-
 
|<center>Size</center>||the size of the particle
 
|<center>Size</center>||the size of the particle
 +
|}
 +
 +
====Types of Particles====
 +
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
 +
| 0
 +
| small white smoke
 +
|-
 +
| 1
 +
| medium white smoke
 +
|-
 +
| 2
 +
| large white smoke
 +
|-
 +
| 3
 +
| fire
 +
|-
 +
| 4
 +
| black smoke
 +
|-
 +
| 5
 +
| water fountain
 +
|-
 +
| 6
 +
| water spray
 
|}
 
|}

Revision as of 00:25, 28 November 2009

2DFX (IDE section)
Supported games:GTA III, GTA VC
Brief description:Used to place lights, particles, and ped behaviors on objects
IDE Sections:
2DFX AMAT ANIM CARS HIER HAND MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

2DFX is a section in the item definition file. It is used to place lights, particles, and ped behaviors on objects.

GTA III - Vice City

Type 0: Light

ID, X, Y, Z, R, G, B, 200, Type, Corona, Shadow, Distance, Outer range, Size, Inner range, IDE flag, Wet, Flare, Dust
Identifier Description
ID
associated to existing object ID defined in OBJS section
X, Y, Z
X, Y, and Z coordinates relative to the center of the object
R, G, B
color of the light and everything associated it in RGB format
Type
type of 2DFX, always 0 for lights
Corona
corona associated to the light defined in particle.txd, usually "coronastar" for lighta
Shadow
shadow associated to the light?, usually "shad_exp"
Distance
view distance of the light, is limited by the draw distance of the host object
Outer range
the range the light can cast on objects, cars, and peds
Size
the size of the corona, can be a float or integer, size 0 means no visible corona but effect of light still visible
Inner range
the range the light can cast on the ground
IDE flag
IDE flag, only the time-dependent flags are useable
Flash
sets the type of flashing
Wet
sets the particle to be reflective on wet grounds
Flare
sets the particle to create a lens flare on the screen, similar to what the sun does
Dust
sets the intensity of light reflecting off dust, values 4 to 7 have visible effects

Types of Flashes

0 constantly lit all time
1 constantly lit at night
2 occasional flicker all time
3 occasional flicker at night
4 ~1 second flashes
5 ~1 second flashes at night
6 ~2 seconds flashes
7 ~2 seconds flashes at night
8 ~3 seconds flashes
9 ~3 seconds flashes at night
10 random flicker
11 random flicker at night

Type 1: Particle

ID, X, Y, Z, R, G, B, 200, Type, Particle, unk1, unk2, Size
Identifier Description
ID
associated to existing object ID defined in OBJS section
X, Y, Z
X, Y, and Z coordinates relative to the center of the object
R, G, B
useless values
Type
type of 2DFX, always 1 for particles
Particle
particle type
Size
the size of the particle

Types of Particles

0 small white smoke
1 medium white smoke
2 large white smoke
3 fire
4 black smoke
5 water fountain
6 water spray