DB/LightSkybox: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
No edit summary
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Links the various potential skyboxes that can be used to a numerical ID that can be used in other [[DBC]] files more easily.  
Links the various potential skyboxes that can be used to a numerical ID that can be used in other [[DBC]] files more easily.  


==Header Info==
==1.12.1.5875==
  Records....................15
  struct LightSkyboxRec {
Fields......................3
  uint32_t m_ID;
Record Size.................?
  {{Template:Type|stringref}} m_name;
  String Block Size...........?
  };


==Structure==
==Structure==
Line 16: Line 16:
  struct LightSkyboxRec {
  struct LightSkyboxRec {
   uint32_t m_ID;
   uint32_t m_ID;
   stringref m_name;
   {{Template:Type|stringref}} m_name;
   uint32_t m_flags;
   uint32_t m_flags;   // &1: animation syncs with time of day (uses animation 0, time of day is just in percentage). &2: render stars, sun and moons and clouds as well. &4: see below
  };
  };
===Flag 0x4===
This flag takes halved version sky cone mesh to make a smooth transition between bottom EndFogColor and the main sky.
It's not mutually exclusive with 0x2 flag, which tells to draw full version of sky cone mesh. And some skyboxes do use both flags at the same time (Check from example map 971). In this case, first main sky cone mesh is drawn, then the sky box meshes are drawn if there are any, and on top of the result the halved sky cone mesh is drawn to smooth out the result
[[Category:DBC]]
[[Category:DBC]]
[[Category:DBC_Vanilla]]
[[Category:DBC_WotLK]]
[[Category:DBC_WotLK]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]

Revision as of 11:46, 4 December 2020

Links the various potential skyboxes that can be used to a numerical ID that can be used in other DBC files more easily.

1.12.1.5875

struct LightSkyboxRec {
  uint32_t m_ID;
  stringref m_name;
};

Structure

Column	Field 		Type 		Notes 
1 	ID 		Integer 	
2 	sRefPath 	String 		This is the model that will be represented by the corresponding ID. path: Environments\Stars\[a-z].mdx" 
3 	Flags 		Integer		

6.0.1.18179

struct LightSkyboxRec {
  uint32_t m_ID;
  stringref m_name;
  uint32_t m_flags;    // &1: animation syncs with time of day (uses animation 0, time of day is just in percentage). &2: render stars, sun and moons and clouds as well. &4: see below
};

Flag 0x4

This flag takes halved version sky cone mesh to make a smooth transition between bottom EndFogColor and the main sky.

It's not mutually exclusive with 0x2 flag, which tells to draw full version of sky cone mesh. And some skyboxes do use both flags at the same time (Check from example map 971). In this case, first main sky cone mesh is drawn, then the sky box meshes are drawn if there are any, and on top of the result the halved sky cone mesh is drawn to smooth out the result