Skip to content

Commit 42acad1

Browse files
authored
Merge pull request #709 from nick-l-o3de/update_main_to_25051
Update `main` branch to the last known good build for 25.05.1
2 parents 7970d64 + 3e2ba1d commit 42acad1

File tree

429 files changed

+6983
-2785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

429 files changed

+6983
-2785
lines changed

Gem/Code/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ ly_add_target(
2525
PUBLIC
2626
AZ::AzGameFramework
2727
Gem::Atom_AtomBridge.Static
28-
Gem::Atom_Feature_Common.Static
28+
Gem::Atom_Feature_Common.Public
2929
Gem::Atom_Component_DebugCamera.Static
3030
Gem::Profiler.Static
3131
Gem::DiffuseProbeGrid.Static
32+
Gem::DebugDraw.Static
3233
)
3334

3435
ly_add_target(

Gem/Code/Source/AreaLightExampleComponent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ namespace AtomSampleViewer
209209
{
210210
if (!meshHandle.IsValid())
211211
{
212-
meshHandle = m_meshFeatureProcessor->AcquireMesh(MeshHandleDescriptor{ modelAsset }, m_materialInstances.at(i));
212+
meshHandle = m_meshFeatureProcessor->AcquireMesh(AZ::Render::MeshHandleDescriptor(modelAsset, m_materialInstances.at(i)));
213213
}
214214
else if (m_modelAsset.GetId() != modelAsset.GetId())
215215
{
216216
// Valid mesh handle, but wrong asset. Release and reacquire.
217217
m_meshFeatureProcessor->ReleaseMesh(meshHandle);
218-
meshHandle = m_meshFeatureProcessor->AcquireMesh(MeshHandleDescriptor{ modelAsset }, m_materialInstances.at(i));
218+
meshHandle = m_meshFeatureProcessor->AcquireMesh(AZ::Render::MeshHandleDescriptor(modelAsset, m_materialInstances.at(i)));
219219
}
220220

221221
AZ::Transform transform = AZ::Transform::CreateIdentity();

Gem/Code/Source/AreaLightExampleComponent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace AtomSampleViewer
8080
struct Configuration
8181
{
8282
LightType m_lightType = Point;
83-
AZStd::string m_modelAssetPath = "objects/test/area_light_test_sphere.azmodel";
83+
AZStd::string m_modelAssetPath = "objects/test/area_light_test_sphere.fbx.azmodel";
8484
uint32_t m_count = 1;
8585

8686
float m_intensity = 30.0f;

Gem/Code/Source/AssetLoadTestComponent.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ namespace AtomSampleViewer
6666

6767
const AZStd::vector<AZStd::string> defaultModelAllowist =
6868
{
69-
"Objects/bunny.azmodel",
70-
"Objects/Shaderball_simple.azmodel",
71-
"Objects/suzanne.azmodel",
69+
"Objects/bunny.fbx.azmodel",
70+
"Objects/Shaderball_simple.fbx.azmodel",
71+
"Objects/suzanne.fbx.azmodel",
7272
};
7373
m_modelBrowser.SetDefaultPinnedAssets(defaultModelAllowist);
7474
}
@@ -179,7 +179,7 @@ namespace AtomSampleViewer
179179
if (instanceData.m_materialAssetId.IsValid())
180180
{
181181
AZ::Data::Asset<RPI::MaterialAsset> materialAsset;
182-
materialAsset.Create(instanceData.m_materialAssetId);
182+
materialAsset.Create(instanceData.m_materialAssetId, true);
183183
materialInstance = AZ::RPI::Material::FindOrCreate(materialAsset);
184184

185185
// cache the material when its loaded
@@ -188,10 +188,10 @@ namespace AtomSampleViewer
188188

189189
if (instanceData.m_modelAssetId.IsValid())
190190
{
191-
AZ::Data::Asset<AZ::RPI::ModelAsset> modelAsset;
192-
modelAsset.Create(instanceData.m_modelAssetId);
193-
194-
instanceData.m_meshHandle = GetMeshFeatureProcessor()->AcquireMesh(AZ::Render::MeshHandleDescriptor{ modelAsset }, materialInstance);
191+
AZ::Render::MeshHandleDescriptor descriptor;
192+
descriptor.m_modelAsset.Create(instanceData.m_modelAssetId, true);
193+
descriptor.m_customMaterials[AZ::Render::DefaultCustomMaterialId].m_material = materialInstance;
194+
instanceData.m_meshHandle = GetMeshFeatureProcessor()->AcquireMesh(descriptor);
195195
GetMeshFeatureProcessor()->SetTransform(instanceData.m_meshHandle, instanceData.m_transform);
196196
}
197197
}
@@ -226,7 +226,7 @@ namespace AtomSampleViewer
226226
}
227227
else
228228
{
229-
return AZ::RPI::AssetUtils::GetAssetIdForProductPath("testdata/objects/cube/cube.azmodel", AZ::RPI::AssetUtils::TraceLevel::Error);
229+
return AZ::RPI::AssetUtils::GetAssetIdForProductPath("testdata/objects/cube/cube.fbx.azmodel", AZ::RPI::AssetUtils::TraceLevel::Error);
230230
}
231231
}
232232

0 commit comments

Comments
 (0)