DB/LightIntBand: Difference between revisions

From wowdev
Jump to navigation Jump to search
(Unconfirmed: Shadow color (Mapviewer))
m (fix order)
 
(17 intermediate revisions by 12 users not shown)
Line 1: Line 1:
Controls the various values that are related to floats in .[[LIT]] files which was believed just to be the sky positions. There is 18 rows corresponding to every ID so take the ID*18 to get the proper start ID to look at it and the next 17 rows after it go along with it as well  
Controls the various values that are related to floats in .[[LIT]] files which was believed just to be the sky positions. There is 18 rows corresponding to every ID so take the ID*18 to get the proper start ID to look at it and the next 17 rows after it go along with it as well  
To get the right ID out from [[Light.dbc]] (skyParam, '''not the light ID itself!''') you need to calculate it the following way:
idLightIntBand = lightEntry.skyParam * 18 - 17
The reason is that DBCs always start with entry 1 and in computer fields you usually have 0 as primary index.
--[[User:Cromon|Cromon]] 14:06, 27 February 2012 (UTC)
{{Template:Sandbox/VersionRange|min_expansionlevel=1|max_expansionlevel=4}}


The 18 rows should then correspond to the below as it was in the .lit files
The 18 rows should then correspond to the below as it was in the .lit files
Line 10: Line 20:
  5 Sky color 3 (above horizon)  
  5 Sky color 3 (above horizon)  
  6 Sky color 4 (horizon)  
  6 Sky color 4 (horizon)  
  7 Fog color / background mountains color  
  7 Fog color / background mountains color. Affects color of weather effects as well.
  8 ?  
  8 ?  
  9 Sun color + sun halo color  
  9 Sun color + sun halo color, specular lighting, sun rays
  10 Sun larger halo color  
  10 Sun larger halo color //  cloud color a1 (base)
  11 ?  
  11 ? // cloud color B (edge)
  12 Cloud color  
  12 Cloud color // cloud color a2 (secondary base)
  13 ?  
  13 ?  
  14 ?
  14 Ocean color [light] // shallow ocean water
  15 Water color [dark]  
  15 Ocean color [dark] // deep ocean water
  16 Water color [light]  
  16 River color [light] // shallow river water
  17 Shadow color? (MapViewer Source)
  17 River color [dark]  // deep river water


==Header Info ==
Official definitions from Blizzard (found in client 2.5 EnumeratedString table):
  Records.................10278
Note that id 13 seems to have been removed and ocean (14) was moved to 13.
  Fields.....................34
0 Direct Color
  Record Size...............136
1 Ambient Color
  String Block Size...........1
2 Sky Top Color
3 Sky Middle Color
4 Sky Band 1 Color
5 Sky Band 2 Color
6 Sky Smog Color
7 Sky Fog Color
8 Sun Color
9 Cloud Sun Color
10 Cloud Emissive Color
11 Cloud Layer 1 Ambient Color
12 Cloud Layer 2 Ambient Color
13 Ocean Close Color
14 Ocean Far Color
15 River Close Color
16 River Far Color
17 Shadow Opacity
18 Fog
19 Fog (obsolete 1)
20 Cloud Density
21 Fog (obsolete 2)
22 Color Gradient
  23 Horizon Ambient Color
24 Ground Ambient Color
  25 Fog End Color
  26 Sun Fog Color
  27 Fog Height Color
 
Note that the columns are purely for the different times of day. The row defines which light setting we are setting.


==Structure==
==Structure==
Line 33: Line 70:
  2 # of Entries Integer This is how many of the columns actually have data for this row (0 to 16)  
  2 # of Entries Integer This is how many of the columns actually have data for this row (0 to 16)  
  3-18 Time Values Unsigned Integer Time Values from 0 to 2880 where each number represents a half minute from midnight to midnight  
  3-18 Time Values Unsigned Integer Time Values from 0 to 2880 where each number represents a half minute from midnight to midnight  
  20-34 Color Values Unsigned Integer These are the actual values that correspond with the time value and are a BGRX color value  
  19-34 Color Values Unsigned Integer These are the actual values that correspond with the time value and are a RGB color value  
 
Retrieved from "http://www.sourcepeek.com/wiki/LightIntBand.dbc"


[[Category:DBC]]
[[Category:DBC]][[Category:DBC_WotLK]]

Latest revision as of 19:23, 23 October 2022

Controls the various values that are related to floats in .LIT files which was believed just to be the sky positions. There is 18 rows corresponding to every ID so take the ID*18 to get the proper start ID to look at it and the next 17 rows after it go along with it as well

To get the right ID out from Light.dbc (skyParam, not the light ID itself!) you need to calculate it the following way: idLightIntBand = lightEntry.skyParam * 18 - 17

The reason is that DBCs always start with entry 1 and in computer fields you usually have 0 as primary index.

--Cromon 14:06, 27 February 2012 (UTC)

Vanilla … Cata


The 18 rows should then correspond to the below as it was in the .lit files

Number 	Description 
0 		Global diffuse light 
1 		Global ambient light 
2 		Sky color 0 (top) 
3 		Sky color 1 (middle) 
4 		Sky color 2 (middle to horizon) 
5 		Sky color 3 (above horizon) 
6 		Sky color 4 (horizon) 
7 		Fog color / background mountains color. Affects color of weather effects as well.
8 	 	? 
9 		Sun color + sun halo color, specular lighting, sun rays
10 		Sun larger halo color  //  cloud color a1 (base)
11 	 	? // cloud color B (edge)
12 		Cloud color  // cloud color a2 (secondary base)
13 	 	? 
14 	 	Ocean color [light] // shallow ocean water
15 		Ocean color [dark]  // deep ocean water
16 		River color [light] // shallow river water
17 	 	River color [dark]  // deep river water

Official definitions from Blizzard (found in client 2.5 EnumeratedString table): Note that id 13 seems to have been removed and ocean (14) was moved to 13.

0	Direct Color
1	Ambient Color
2	Sky Top Color
3	Sky Middle Color
4	Sky Band 1 Color
5	Sky Band 2 Color
6	Sky Smog Color
7	Sky Fog Color
8	Sun Color
9	Cloud Sun Color
10	Cloud Emissive Color
11	Cloud Layer 1 Ambient Color
12	Cloud Layer 2 Ambient Color
13	Ocean Close Color
14	Ocean Far Color
15	River Close Color
16	River Far Color
17	Shadow Opacity
18	Fog
19	Fog (obsolete 1)
20	Cloud Density
21	Fog (obsolete 2)
22	Color Gradient
23	Horizon Ambient Color
24	Ground Ambient Color
25	Fog End Color
26	Sun Fog Color
27	Fog Height Color

Note that the columns are purely for the different times of day. The row defines which light setting we are setting.

Structure

Column	Field 		Type 			Notes 
1 	ID 		Integer 	
2 	# of Entries 	Integer 		This is how many of the columns actually have data for this row (0 to 16) 
3-18 	Time Values 	Unsigned Integer	Time Values from 0 to 2880 where each number represents a half minute from midnight to midnight 
19-34 	Color Values 	Unsigned Integer	These are the actual values that correspond with the time value and are a RGB color value