Sampling from the complex RVT in PCG is not working.

Error while parsing Rich Text Content[Attachment Removed]

Steps to Reproduce
To reproduce, just follow “Example 2: Virtual Texture Data” described here: https://dev.epicgames.com/documentation/en\-us/unreal\-engine/using\-pcg\-with\-gpu\-processing\-in\-unreal\-engine?application\_version\=5\.6\#usingvirtualtexturesinpcg

The format for “RVT_PCGLandscape_BaseColor” should be a non-single render target, for example “ERuntimeVirtualTextureMaterialType::BaseColor_Normal_Specular_YCoCg

The Normal and Specular components will be black, according to the declaration in “PCGVirtualTextureDataInterface.ush

[Attachment Removed]

Hi Max,

Thanks for reporting the bug. Your fix looks good, and we can make a similar change in the code here.

I assume that the bug is triggered because your RVT has “Enable Packed Page Table” disabled? Can you let us know if that is not the case?

Thanks again for sharing the fix. Best regards,

Jeremy

[Attachment Removed]

Hi Jeremy! Thanks for the quick response.

It behaves regardless of packing page table settings (please see attached screenshots).

The “NumPageTables” is always one, but the “PageTableIndex” varies.

Previous logick skipes render targets “1” and “2”. Only render target “0” will be bound.

Packed Page table

[Image Removed]

Disabled packing

[Image Removed]

[Attachment Removed]

Hey Jeremy, could you please share the ticket number or something similar for tracking?

[Attachment Removed]

Hi Max,

Yes, for tracking you can look at this public issue:

https://issues.unrealengine.com/issue/UE-357664

(It may take a few days before that link is populated.)

Best regards,

Jeremy

[Attachment Removed]

Thanks, Jeremy.

[Attachment Removed]

A fix for this has now been submitted. Thanks again for reporting.

[Attachment Removed]