[add] Hogwart AlphaMap 추가
[add] Hogwart HeightMap 추가 [fix] Lake Data 수정
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -22,12 +22,12 @@
|
||||
<Object Type="4" Name="HN_LakeA" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_Component_Hogwart_Lake</PrototypeTag>
|
||||
<ShollowPrototypeTag>Prototype_Component_Hogwart_LakeSurFace</ShollowPrototypeTag>
|
||||
<Position x="-92" y="-77.900002" z="-611"/>
|
||||
<Scale x="1.1" y="1.1" z="1.1"/>
|
||||
<Position x="-89.2" y="-61.6" z="-657.8"/>
|
||||
<Scale x="1.3" y="1" z="1.3"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Radius value="472.7"/>
|
||||
<TimeSpeed value="0.0099999998"/>
|
||||
<RefractionStrength value="0.029999999"/>
|
||||
<RefractionStrength value="0.08"/>
|
||||
<RefractionPow value="1.5"/>
|
||||
<UVValue1 value="10"/>
|
||||
<UVValue2 value="20"/>
|
||||
@@ -35,7 +35,7 @@
|
||||
<UVSpeed x="0.1" y="0"/>
|
||||
<LargeUVSpeed x="0.30000001" y="0.1"/>
|
||||
<SubUVSpeed3 x="100" y="1"/>
|
||||
<RefractionColor x="0.80590719" y="0.89926827" z="1" w="1"/>
|
||||
<SurfaceColor x="1" y="0" z="1" w="1"/>
|
||||
<RefractionColor x="0.3" y="0.3" z="0.3" w="1"/>
|
||||
<SurfaceColor x="0.25" y="0" z="1" w="1"/>
|
||||
</Object>
|
||||
</MapObjects_Water>
|
||||
|
||||
@@ -737,7 +737,7 @@ PS_OUT PS_LAKE(PS_IN In)
|
||||
|
||||
float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 30.f);
|
||||
float3 vNoise = (g_NoiseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord + g_fTime * 0.1f).rgb - 0.5f) * 0.3f;
|
||||
float4 vCaustics = g_CausticsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 30.f + vNoise.g);
|
||||
float4 vCaustics = g_CausticsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f + vNoise.g);
|
||||
|
||||
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, vUV + vNoise.g);
|
||||
float3 vNormalLarge = DecodeNormalFromRG(g_NormalLargeTexture, AnisoTropy_BLUR_Sampler, vUVLarge + vNoise.r);
|
||||
|
||||
@@ -51,7 +51,7 @@ HRESULT CLevel_MapViewer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Z_Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -189,31 +189,31 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_DESC Lake_Desc = {};
|
||||
|
||||
//vector<_wstring> ModelPrototypeTags;
|
||||
//vector<_wstring> ShallowModelPrototypeTags;
|
||||
//ModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_Lake"));
|
||||
//ShallowModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_LakeSurFace"));
|
||||
//Lake_Desc.bEdit = false;
|
||||
//Lake_Desc.iMaxLodLevel = 0;
|
||||
//Lake_Desc.iRenderType = 4;
|
||||
//Lake_Desc.vPosition = _float3(-144.f, -61.9f, -115.f);
|
||||
//Lake_Desc.vRotation = _float3(0.f, 0.f, 0.f);
|
||||
//Lake_Desc.vScale = _float3(1.f, 1.f, 1.f);
|
||||
//Lake_Desc.fTimeSpeed = _float(0.02f);
|
||||
//Lake_Desc.fRefractionStrength = _float();
|
||||
//Lake_Desc.fRefractionPow = _float();
|
||||
//Lake_Desc.fUVValue1 = _float();
|
||||
//Lake_Desc.fUVValue2 = _float();
|
||||
//Lake_Desc.fUVValue3 = _float();
|
||||
//Lake_Desc.vUVSpeed = _float2();
|
||||
//Lake_Desc.vLargeUVSpeed = _float2();
|
||||
//Lake_Desc.vSubUVSpeed3 = _float2();
|
||||
//Lake_Desc.vRefractionColor = _float4();
|
||||
//Lake_Desc.vSurfaceColor = _float4();
|
||||
//Lake_Desc.ModelPrototypeTags = ModelPrototypeTags;
|
||||
//Lake_Desc.ShallowModelPrototypeTags = ShallowModelPrototypeTags;
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Lake_Desc)))
|
||||
// return E_FAIL;
|
||||
vector<_wstring> ModelPrototypeTags;
|
||||
vector<_wstring> ShallowModelPrototypeTags;
|
||||
ModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_Lake"));
|
||||
ShallowModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_LakeSurFace"));
|
||||
Lake_Desc.bEdit = false;
|
||||
Lake_Desc.iMaxLodLevel = 0;
|
||||
Lake_Desc.iRenderType = 4;
|
||||
Lake_Desc.vPosition = _float3(-89.2f, -61.6f, -657.8f);
|
||||
Lake_Desc.vRotation = _float3(0.f, 0.f, 0.f);
|
||||
Lake_Desc.vScale = _float3(1.3f, 1.f, 1.3f);
|
||||
Lake_Desc.fTimeSpeed = _float(0.02f);
|
||||
Lake_Desc.fRefractionStrength = 0.08f;
|
||||
Lake_Desc.fRefractionPow = 1.5f;
|
||||
Lake_Desc.fUVValue1 = 10.f;
|
||||
Lake_Desc.fUVValue2 = 20.f;
|
||||
Lake_Desc.fUVValue3 = 20.f;
|
||||
Lake_Desc.vUVSpeed = _float2(0.1f, 0.f);
|
||||
Lake_Desc.vLargeUVSpeed = _float2(0.3f, 0.1f);
|
||||
Lake_Desc.vSubUVSpeed3 = _float2(10.f, 0.f);
|
||||
Lake_Desc.vRefractionColor = _float4(0.35f, 0.35f, 0.35f, 1.f);
|
||||
Lake_Desc.vSurfaceColor = _float4(0.25f, 0.f, 1.f, 1.f);
|
||||
Lake_Desc.ModelPrototypeTags = ModelPrototypeTags;
|
||||
Lake_Desc.ShallowModelPrototypeTags = ShallowModelPrototypeTags;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Lake_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -2948,7 +2948,7 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
#pragma endregion
|
||||
|
||||
_bool bLoadHogsmeade = false;
|
||||
_bool bLoadHogsmeade = true;
|
||||
if (bLoadHogsmeade)
|
||||
{
|
||||
#pragma region HOGSMEADE_OBJECT
|
||||
@@ -3335,10 +3335,10 @@ if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Sanctum_Dungeon\\Mes
|
||||
|
||||
vector<future<void>> jobFutures;
|
||||
|
||||
_uint iLoadCount = 46;
|
||||
_uint iLoadCount = 44;
|
||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
|
||||
_bool isLoad_Map = { false };
|
||||
_bool isLoad_Map = { true };
|
||||
if(isLoad_Map)
|
||||
{
|
||||
{ /* Terrain */
|
||||
@@ -3417,11 +3417,6 @@ if(isLoad_Map)
|
||||
));
|
||||
}
|
||||
{ /* BLDG_HogsheadInn */
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
|
||||
".bin", false,
|
||||
@@ -3489,11 +3484,6 @@ if(isLoad_Map)
|
||||
));
|
||||
}
|
||||
{ /* BLDG_Potions */
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
|
||||
".bin", false,
|
||||
|
||||
@@ -51,8 +51,21 @@ HRESULT CMapElement_Lake::Initialize(void* pArg)
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
#endif // _DEBUG
|
||||
|
||||
m_vRefractionColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
m_fTimeSpeed = pDesc->fTimeSpeed;
|
||||
|
||||
m_fRefractionStrength = pDesc->fRefractionStrength;
|
||||
m_fRefractionPow = pDesc->fRefractionPow;
|
||||
|
||||
m_fUVValue1 = pDesc->fUVValue1;
|
||||
m_fUVValue2 = pDesc->fUVValue2;
|
||||
m_fUVValue3 = pDesc->fUVValue3;
|
||||
|
||||
m_vUVSpeed = pDesc->vUVSpeed;
|
||||
m_vLargeUVSpeed = pDesc->vLargeUVSpeed;
|
||||
m_vSubUVSpeed3 = pDesc->vSubUVSpeed3;
|
||||
|
||||
memcpy(&m_vRefractionColor, &pDesc->vRefractionColor, sizeof(_float4));
|
||||
memcpy(&m_vSurfaceColor, &pDesc->vSurfaceColor, sizeof(_float4));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ void CMapObject_LOD::Late_Update(_float fTimeDelta)
|
||||
|
||||
m_fCamDepth = XMVectorGetX(XMVector3LengthSq(vCamPosition - XMLoadFloat4(&m_vExtentPosition)));
|
||||
|
||||
m_iLodIndex = min(m_iMaxLodLevel, (_uint)(m_fCamDepth / (fRaius * fRaius + 40000.f)));
|
||||
m_iLodIndex = min(m_iMaxLodLevel, (_uint)(m_fCamDepth / (fRaius * fRaius + 10000.f)));
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Z))
|
||||
m_iLodIndex = 0;
|
||||
|
||||
@@ -65,8 +65,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
|
||||
m_iContainerObjectIndex = 99;
|
||||
|
||||
//if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
|
||||
// return E_FAIL;
|
||||
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
//m_pContainer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building"))->Get_Object<CBuildingContainer>();
|
||||
|
||||
@@ -83,7 +83,7 @@ void CTerrain::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_isEdit)
|
||||
Describe_Entity();
|
||||
|
||||
|
||||
//m_pVIBufferCom->Culling(m_pTransformCom->Get_XMWorldMatrix());
|
||||
|
||||
if(m_pGameInstance->Key_Down(DIK_LCONTROL) && m_pGameInstance->Key_Down(DIK_W))
|
||||
@@ -182,23 +182,25 @@ HRESULT CTerrain::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))){
|
||||
if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))){
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))){
|
||||
if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pAlphaMap->Get_SRV()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -315,24 +317,24 @@ void CTerrain::Describe_Entity()
|
||||
if (GUI::Button("Load", ImVec2(100.f, 30.f)))
|
||||
{
|
||||
m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//GUI::DragFloat("Up", &m_fUpValue, 0.01f, -1.0f, 1.f);
|
||||
m_iMaskRange = max(1, m_iMaskRange);
|
||||
GUI::DragFloat("Up", &m_fUpValue, 0.01f, -1.0f, 1.f);
|
||||
|
||||
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
|
||||
{
|
||||
if (m_pGameInstance->isPicking(&m_vPickingPosition))
|
||||
{
|
||||
if (m_pGameInstance->Key_Pressing(DIK_PERIOD))
|
||||
m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_COMMA))
|
||||
m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue * -1.f);
|
||||
//if (m_pGameInstance->Key_Pressing(DIK_PERIOD))
|
||||
// m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue, m_vPickingPosition, m_iMaskRange);
|
||||
//if (m_pGameInstance->Key_Pressing(DIK_COMMA))
|
||||
// m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue * -1.f, m_vPickingPosition, m_iMaskRange);
|
||||
|
||||
|
||||
XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv()));
|
||||
|
||||
m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange);
|
||||
if(m_pGameInstance->Key_Pressing(DIK_M))
|
||||
m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -341,9 +343,9 @@ void CTerrain::Describe_Entity()
|
||||
#pragma region HEIGHT MAP
|
||||
HRESULT hr = {};
|
||||
if(GUI::Button("Save HeightMap"))
|
||||
hr = m_pVIBufferCom->Save_HeightMap("Hogwart_Height.bin");
|
||||
hr = m_pVIBufferCom->Save_HeightMap("Hogwart_HeightMap.bin");
|
||||
if(GUI::Button("Load HeightMap"))
|
||||
hr = m_pVIBufferCom->Load_HeightMap("Hogwart_Height.bin");
|
||||
hr = m_pVIBufferCom->Load_HeightMap("Hogwart_HeightMap.bin");
|
||||
#pragma endregion
|
||||
|
||||
_float4 vPos = {};
|
||||
|
||||
Reference in New Issue
Block a user