DB/LightIntBand: Difference between revisions

From wowdev
Jump to navigation Jump to search
m (Marlamin moved page LightIntBand.dbc to DB/LightIntBand)
(Fix incorrect format and add clarification.)
(8 intermediate revisions by 6 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) you need to calculate it the following way:
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
idLightIntBand = lightEntry.skyParam * 18 - 17


Line 8: Line 8:
--[[User:Cromon|Cromon]] 14:06, 27 February 2012 (UTC)
--[[User:Cromon|Cromon]] 14:06, 27 February 2012 (UTC)


{{Template:Sandbox/VersionRange|min_expansionlevel=1|max_expansionlevel=4}}




Line 19: 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, specular lighting, sun rays
  9 Sun color + sun halo color, specular lighting, sun rays
Line 26: Line 27:
  12 Cloud color  // cloud color a2 (secondary base)
  12 Cloud color  // cloud color a2 (secondary base)
  13 ?  
  13 ?  
  14 ? // ocean water color
  14 Ocean color [light] // shallow ocean water
  15 Water color [dark] // deep ocean water color
  15 Ocean color [dark] // deep ocean water
  16 Water color [light] // shallow river water
  16 River color [light] // shallow river water
  17 Shadow color? (MapViewer Source) // deep river water
  17 River color [dark]  // deep river water


==Header Info ==
Note that the columns are purely for the different times of day. The row defines which light setting we are setting.
Records.................10278
Fields.....................34
Record Size...............136
String Block Size...........1


==Structure==
==Structure==
Line 42: Line 39:
  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  
  19-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_WotLK]]
[[Category:DBC]][[Category:DBC_WotLK]]

Revision as of 20:49, 24 January 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

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