Skip to content

Dynamic rendering path seems not to be working #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
matyas-polach opened this issue Feb 6, 2025 · 0 comments
Open

Dynamic rendering path seems not to be working #294

matyas-polach opened this issue Feb 6, 2025 · 0 comments

Comments

@matyas-polach
Copy link

Hi, I just noticed that the dynamic drawing path seems not to be working properly. I can see the mesh, but when I try to update it with new vertex data, it simply just stays the same. It is different case with static rendering path. For static it works fine.

Code example:

1) in URealtimeMeshSimple override class:

GetMesh()->InitializeLODs(inUpdateContext, inLods);
for (int LOD = 0; LOD < m_LODStreams->NumLODs(); LOD++)
{
const FRealtimeMeshSectionGroupKey LODKey = FRealtimeMeshSectionGroupKey::Create(LOD, 0);
CreateSectionGroup(LODKey, *m_LODStreams->GetLOD(LOD)->Get(), FRealtimeMeshSectionGroupConfig(ERealtimeMeshSectionDrawType::Dynamic));
}

2) Update case (this actually does not work after creation of dynamic draw type meshes)

for (int lod = 0; lod < inLODStreams.NumLODs(); lod++)
{
const FRealtimeMeshSectionGroupKey LODKey = FRealtimeMeshSectionGroupKey::Create(lod, 0);
UpdateSectionGroup(LODKey, *inLODStreams.GetLOD(lod)->Get());
}

Again, with static rendering path everything works fine. Are there any additional steps needed to get dynamic rendering path to work? Is it supported with LODs?
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant