[add] Model Radius
[add] MapObject Lod 적용 [add] MapObject Culling 적용
This commit is contained in:
@@ -3170,4 +3170,442 @@
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
<Container Name="HM_Potions">
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_chimney_base</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_A_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_B_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_walls</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_walls_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_walls_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_02</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_02_Lod1</PrototypeTag>
|
||||
<Position x="-1.6064503" y="13.473031" z="3.750792"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="2.6680425e-08" y="39.999992" z="0.76607656"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2</PrototypeTag>
|
||||
<Position x="1.893271" y="1.7882199" z="-0.11462327"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2</PrototypeTag>
|
||||
<Position x="2.7098262" y="1.79" z="-0.10712489"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod2</PrototypeTag>
|
||||
<Position x="0.15000001" y="5.7600002" z="-1.14"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Base</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod2</PrototypeTag>
|
||||
<Position x="0.15974024" y="5.6707902" z="0.1"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2</PrototypeTag>
|
||||
<Position x="3.400166" y="1.75" z="0.80000001"/>
|
||||
<Scale x="0.99999988" y="1" z="0.99999988"/>
|
||||
<Rotation x="0" y="89.999985" z="0"/>
|
||||
</PartObject>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_apl_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_apl_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_pl_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_pl_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
<Container Name="HM_Salon">
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Chimney</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_B_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign_Lod3</PrototypeTag>
|
||||
<Position x="0" y="3.4999988" z="-1.8000009"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="0.13" y="8.2092218" z="0.41220239"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="1.3" y="8.1981268" z="1.0374027"/>
|
||||
<Scale x="0.99999988" y="1" z="0.99999988"/>
|
||||
<Rotation x="-0" y="-89.999985" z="-0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="2" y="6.3863354" z="2.9457324"/>
|
||||
<Scale x="1.1999999" y="1" z="1.0999999"/>
|
||||
<Rotation x="-5" y="-90" z="-4.9999995"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2</PrototypeTag>
|
||||
<Position x="-8.3568792" y="0.80000001" z="-1.6207882"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-3" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-2.6814308" y="0.92141211" z="-1.8"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="-8.6813736" y="4.3339376" z="-1.4801892"/>
|
||||
<Scale x="0.89999998" y="0.73000002" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2</PrototypeTag>
|
||||
<Position x="3.4525731" y="0.83482361" z="5.0455632"/>
|
||||
<Scale x="0.79999983" y="1" z="0.99999988"/>
|
||||
<Rotation x="0" y="89.999985" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-3.5" y="0.85000002" z="-1.6772487"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-6.0000005" y="3.0000002" z="0.31516549"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-4.3961501" y="0.81273413" z="-1.6580117"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="6">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-9.3999996" y="0.90415895" z="-1.5514936"/>
|
||||
<Scale x="0.89999998" y="1" z="1"/>
|
||||
<Rotation x="-3" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="7">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-10.220788" y="0.8900497" z="-1.5313393"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="8">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-11.041821" y="0.90617418" z="-1.5062355"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="2.0076332"/>
|
||||
</PartObject>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_APL_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_APL_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_PL_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_PL_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
<Container Name="HM_Hengist_Tree">
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<Collision Lod_Level="0" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Roots_COL</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
<Collision Lod_Level="0" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_PL_A_COL</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
</Land>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,7 @@
|
||||
#include "DummySkyBox.h"
|
||||
#include "MainLight.h"
|
||||
#include "Land.h"
|
||||
#include "Player.h"
|
||||
|
||||
CLevel_MapViewer::CLevel_MapViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "MapElement_Static.h"
|
||||
#include "Land.h"
|
||||
#include "Collider.h"
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -1186,34 +1187,34 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
vector<filesystem::path> ModelPrototypePath = {};
|
||||
|
||||
#pragma region HOGSMEADE
|
||||
/* Terrain */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
|
||||
/* Terrain*/
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* TScrolls */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
|
||||
/* TScrolls*/
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 3BroomStick */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
|
||||
/* 3BroomStick*/
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Ollivanders*/
|
||||
/* Ollivanders*/
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
@@ -1283,10 +1284,29 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* BLDG_Potions */
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* BLDG_Salon */
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
/* Hengist_Tree */
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree",
|
||||
".bin", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation",
|
||||
".bin", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* GEN A*/
|
||||
if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes",
|
||||
@@ -1358,6 +1378,12 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
|
||||
/* For.Prototype_Component_Collider */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Collider"),
|
||||
CCollider::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Terrain */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"),
|
||||
CVIBuffer_Terrain::Create(m_pDevice, m_pContext, nullptr, 100, 100))))
|
||||
@@ -1408,7 +1434,6 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
m_isFinished = true;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ void CMapObject_Collision::Late_Update(_float fTimeDelta)
|
||||
|
||||
XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix());
|
||||
if (m_pGameInstance->Key_Pressing(DIK_V)){
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
if (m_pGameInstance->isIn_WorldFrustum(XMLoadFloat4(reinterpret_cast<_float4*>(m_CombinedWorldMatrix.m[3])), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
#include "Terrain.h"
|
||||
#include "VIBuffer_Terrain.h"
|
||||
#include "MapObject_Manager.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "Bounding_Sphere.h"
|
||||
#include "Collider.h"
|
||||
|
||||
CMapObject_LOD::CMapObject_LOD(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMapObject(pDevice, pContext)
|
||||
@@ -55,8 +58,21 @@ HRESULT CMapObject_LOD::Initialize(void* pArg)
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(m_vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
#endif // _DEBUG
|
||||
|
||||
XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix());
|
||||
|
||||
_float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
|
||||
_matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix);
|
||||
XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]);
|
||||
|
||||
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
|
||||
//m_pColliderCom->Update(ColliderMatrix);
|
||||
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -69,30 +85,32 @@ void CMapObject_LOD::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CMapObject_LOD::Update(_float fTimeDelta)
|
||||
{
|
||||
_vector vCamPosition = XMLoadFloat4(m_pGameInstance->Get_CamPosition());
|
||||
|
||||
m_fCamDepth = XMVectorGetX(XMVector3LengthSq(vCamPosition - XMLoadFloat4(reinterpret_cast<_float4*>(m_CombinedWorldMatrix.m[3]))));
|
||||
|
||||
m_iLodIndex = min(m_iMaxLodLevel, (_uint)m_fCamDepth / 200);
|
||||
|
||||
if (0 == m_iLodIndex)
|
||||
m_bSelected = true;
|
||||
//if (0 == m_iLodIndex)
|
||||
// m_bSelected = true;
|
||||
}
|
||||
|
||||
void CMapObject_LOD::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (m_bSelected)
|
||||
/*if (m_bSelected)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(m_vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
}
|
||||
}*/
|
||||
#endif
|
||||
_float fRaius = m_pModelComs[0]->Get_Radius();
|
||||
if (m_pGameInstance->isIn_WorldFrustum(XMLoadFloat4(&m_vExtentPosition), fRaius)) {
|
||||
|
||||
_vector vCamPosition = XMLoadFloat4(m_pGameInstance->Get_CamPosition());
|
||||
|
||||
XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix());
|
||||
m_fCamDepth = XMVectorGetX(XMVector3LengthSq(vCamPosition - XMLoadFloat4(&m_vExtentPosition)));
|
||||
|
||||
m_iLodIndex = min(m_iMaxLodLevel, (_uint)(m_fCamDepth / (fRaius * fRaius + 3600.f)));
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Z))
|
||||
m_iLodIndex = 0;
|
||||
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,6 +110,10 @@ void CMapObject_Manager::Update(_float fTimeDelta)
|
||||
{
|
||||
Load_ContainerData("ContainerTest", m_szSaveContainerName);
|
||||
}
|
||||
if (GUI::Button("Load_Container To MapObject"))
|
||||
{
|
||||
Load_ContainerToMapObject("ContainerTest", m_szSaveContainerName);
|
||||
}
|
||||
GUI::End();
|
||||
|
||||
Update_PrototypeList();
|
||||
@@ -949,6 +953,151 @@ HRESULT CMapObject_Manager::Load_ContainerData(const _char* pFileName, const _ch
|
||||
#pragma endregion
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CMapObject_Manager::Load_ContainerToMapObject(const _char* pFileName, const _char* pContainerName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Land");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
tinyxml2::XMLElement* TargetContainer = { nullptr };
|
||||
|
||||
for (auto* Container = root->FirstChildElement("Container"); Container; Container = Container->NextSiblingElement("Container"))
|
||||
{
|
||||
const _char* pName = {};
|
||||
|
||||
Container->QueryStringAttribute("Name", &pName);
|
||||
|
||||
if (!strcmp(pContainerName, pName))
|
||||
{
|
||||
TargetContainer = Container;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Failed to find Container */
|
||||
if (nullptr == TargetContainer)
|
||||
{
|
||||
xmlDoc.Clear();
|
||||
MSG_BOX("Failed to find Container");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
#pragma region ADD_PARTOBJECT
|
||||
for (auto* PartObject = TargetContainer->FirstChildElement("PartObject"); PartObject; PartObject = PartObject->NextSiblingElement("PartObject"))
|
||||
{
|
||||
_uint iLodLevel = {};
|
||||
_uint iKeyIndex = {};
|
||||
|
||||
PartObject->QueryUnsignedAttribute("Lod_Level", &iLodLevel);
|
||||
PartObject->QueryUnsignedAttribute("Key_Index", &iKeyIndex);
|
||||
|
||||
#pragma region MAPOBJECT_LOD
|
||||
MAPOBJECT_LOD_DESC Desc = {};
|
||||
string strTag = {};
|
||||
for (auto* PrototypeTag = PartObject->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
Desc.iMaxLodLevel = iLodLevel;
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
const string strKey = CMyTools::ToString(Desc.ModelPrototypeTags.front()) + to_string(iKeyIndex);
|
||||
|
||||
/* Position */
|
||||
tinyxml2::XMLElement* Position = PartObject->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
/* Scale */
|
||||
tinyxml2::XMLElement* Scale = PartObject->FirstChildElement("Scale");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
/* Rotation */
|
||||
tinyxml2::XMLElement* Rotation = PartObject->FirstChildElement("Rotation");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
CMapObject_LOD* pMapObject = { nullptr };
|
||||
|
||||
pMapObject = m_pGameInstance->Clone_Prototype<CMapObject_LOD>(g_iStaticLevel, &Desc);
|
||||
pMapObject->Set_KeyIndex(Get_KeyCount(CMyTools::ToWstring(strKey)));
|
||||
|
||||
m_MapObjects.push_back(pMapObject);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region ADD_COLLISION
|
||||
for (auto* Collision = TargetContainer->FirstChildElement("Collision"); Collision; Collision = Collision->NextSiblingElement("Collision"))
|
||||
{
|
||||
_uint iLodLevel = {};
|
||||
_uint iKeyIndex = {};
|
||||
|
||||
Collision->QueryUnsignedAttribute("Lod_Level", &iLodLevel);
|
||||
Collision->QueryUnsignedAttribute("Key_Index", &iKeyIndex);
|
||||
|
||||
#pragma region MAPOBJECT_LOD
|
||||
MAPOBJECT_LOD_DESC Desc = {};
|
||||
string strTag = {};
|
||||
for (auto* PrototypeTag = Collision->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
Desc.iMaxLodLevel = iLodLevel;
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
|
||||
/* Position */
|
||||
tinyxml2::XMLElement* Position = Collision->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
/* Scale */
|
||||
tinyxml2::XMLElement* Scale = Collision->FirstChildElement("Scale");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
/* Rotation */
|
||||
tinyxml2::XMLElement* Rotation = Collision->FirstChildElement("Rotation");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
CMapObject_Collision* pMapObject = { nullptr };
|
||||
|
||||
pMapObject = m_pGameInstance->Clone_Prototype<CMapObject_Collision>(g_iStaticLevel, &Desc);
|
||||
|
||||
if (nullptr != pMapObject)
|
||||
m_Collision.push_back(pMapObject);
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "PartObject.h"
|
||||
@@ -29,7 +29,7 @@ class CMapObject abstract : public CPartObject
|
||||
_uint Get_iKeyIndex() const { return m_iKeyIndex; }
|
||||
|
||||
protected:
|
||||
|
||||
_float4 m_vExtentPosition = {};
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
@@ -56,4 +56,4 @@ class CMapObject abstract : public CPartObject
|
||||
virtual void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
NS_END
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
#include "Editor_Define.h"
|
||||
#include "MapObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CCollider;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CMapObject_LOD final : public CMapObject // LOD 있는 애들
|
||||
@@ -37,9 +41,6 @@ class CMapObject_LOD final : public CMapObject // LOD 있는 애들
|
||||
vector<_wstring> m_ModelPrototypeTags;
|
||||
vector<_uint> m_ModelPathIndices = { };
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
@@ -59,6 +59,7 @@ class CMapObject_Manager final : public CGameObject
|
||||
|
||||
HRESULT Save_ContainerData(const _char* pFileName, const _char* pContainerName);
|
||||
HRESULT Load_ContainerData(const _char* pFileName, const _char* pContainerName);
|
||||
HRESULT Load_ContainerToMapObject(const _char* pFileName, const _char* pContainerName);
|
||||
#pragma endregion
|
||||
|
||||
void Update_PrototypeList();
|
||||
|
||||
@@ -23,7 +23,9 @@ CModel::CModel(const CModel& rhs)
|
||||
m_Materials(rhs.m_Materials),
|
||||
m_iNumMaterials(rhs.m_iNumMaterials),
|
||||
m_iNumAnimations(rhs.m_iNumAnimations),
|
||||
m_pLerpAnim(rhs.m_pLerpAnim)
|
||||
m_pLerpAnim(rhs.m_pLerpAnim),
|
||||
m_fRadius{rhs.m_fRadius},
|
||||
m_vRadiusOffset{rhs.m_vRadiusOffset}
|
||||
{
|
||||
_uint iNumBones = (_uint)(rhs.m_Bones.size());
|
||||
m_Bones.reserve(iNumBones);
|
||||
@@ -479,6 +481,28 @@ HRESULT CModel::Ready_Materials_FromFile(const aiScene* pAIScene, const _char* p
|
||||
m_Materials.push_back(pMaterial);
|
||||
}
|
||||
m_Materials.shrink_to_fit();
|
||||
|
||||
while (true)
|
||||
{
|
||||
getline(file, strText);
|
||||
if (string::npos != strText.find("Origin"))
|
||||
{
|
||||
size_t iXPos = strText.find_first_of("X");
|
||||
size_t iYPos = strText.find_first_of("Y");
|
||||
size_t iZPos = strText.find_first_of("Z");
|
||||
size_t iEndPos = strText.find_first_of("}");
|
||||
|
||||
m_vRadiusOffset.x = stof(strText.substr(iXPos + 2, iYPos - 2)) * 0.01f;
|
||||
m_vRadiusOffset.z = stof(strText.substr(iYPos + 2, iZPos - 2)) * -0.01f;
|
||||
m_vRadiusOffset.y = stof(strText.substr(iZPos + 2, iEndPos)) * 0.01f;
|
||||
}
|
||||
if (string::npos != strText.find("SphereRadius"))
|
||||
{
|
||||
size_t iBeginIndex = strText.find_first_of("=");
|
||||
m_fRadius = stof(strText.substr(iBeginIndex + 1)) / 100.f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -779,6 +803,12 @@ _bool CModel::SaveAssimpModel(const _char* filename)
|
||||
}
|
||||
}
|
||||
|
||||
if(MODEL::ENVIROMENT == m_eType)
|
||||
{
|
||||
fwrite(&m_fRadius, sizeof(_float), 1, fp);
|
||||
fwrite(&m_vRadiusOffset, sizeof(_float3), 1, fp);
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
||||
return true;
|
||||
@@ -1079,6 +1109,11 @@ _bool CModel::LoadData(const _char* filename)
|
||||
NewModel.Materials.push_back(mat);
|
||||
}
|
||||
|
||||
if(MODEL::ENVIROMENT == m_eType)
|
||||
{
|
||||
fread(&m_fRadius, sizeof(_float), 1, fp);
|
||||
fread(&m_vRadiusOffset, sizeof(_float3), 1, fp);
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
||||
|
||||
@@ -13,9 +13,11 @@ class ENGINE_DLL CModel final : public CComponent
|
||||
|
||||
public:
|
||||
#pragma region Model
|
||||
MODEL Get_Type() const { return m_eType; }
|
||||
_float4x4* Get_PreTransformMatrixPtr() { return &m_PreTransformMatrix; }
|
||||
_float4x4 Get_PreTransformMatrix() const { return m_PreTransformMatrix; };
|
||||
MODEL Get_Type() const { return m_eType; }
|
||||
_float Get_Radius() const { return m_fRadius; }
|
||||
_float3& Get_RadiusOffset() { return m_vRadiusOffset; }
|
||||
_float4x4* Get_PreTransformMatrixPtr() { return &m_PreTransformMatrix; }
|
||||
_float4x4 Get_PreTransformMatrix() const { return m_PreTransformMatrix; };
|
||||
virtual HRESULT Render(_uint iMeshIndex);
|
||||
virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation);
|
||||
#pragma endregion
|
||||
@@ -113,6 +115,9 @@ static _int Get_BoneIndex(const _char* pBoneName, vector<class CBone*> Bones); /
|
||||
_float m_fBlendTime = { 0.f };
|
||||
_float m_fBlendDuration = { 0.3f };
|
||||
|
||||
_float m_fRadius = { 0.f }; // 컬링용 Radius
|
||||
_float3 m_vRadiusOffset = {}; // 컬링용 Radius Offset
|
||||
|
||||
vector<class CAnimation*> m_Animations; // 애니메이션의 벡터,
|
||||
|
||||
class CLerpAnim* m_pLerpAnim = { nullptr }; // 럴프전용 애니메이션
|
||||
|
||||
Reference in New Issue
Block a user