xverse-engine / XV3DGS-UEPlugin

A Unreal Engine 5 (UE5) based plugin aiming to provide real-time visulization, management, editing, and scalable hybrid rendering of Guassian Splatting model.
Apache License 2.0
441 stars 65 forks source link

UE 5.4 and UE5.3 import PY showing plane. material problem ? #45

Open b-summer opened 3 weeks ago

b-summer commented 3 weeks ago

I have install the last Xverse for UE5.3.2 and UE5.4. I using the demo_fox_ga.ply

FOR BOTH ue ENGINE, when I import the ply,the first time I could see the fox but when I've drop the blueprint in level, the render is showing only plane. Capture

even if I'm only using lumen, I've try to disable raytracing r.RayTracing.ForceAllRayTracingEffects 0 BUT CHANGING NOTHING


in material M_GS_unlit there is errors [SM6] /Engine/Generated/Material.ush:3461:30: warning: implicit truncation of vector type [-Wconversion] PixelMaterialInputs.Opacity = Local13; ^ [SM6] error: validation errors [SM6] zzz.dxil:4463:5: error: Opcode Discard not valid in shader model lib_6_6(closesthit). [SM6] note: at 'call void @dx.op.discard(i32 82, i1 true)' in block '#26' of function '?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFRayTracingIntersectionAttributes@@@Z'. [SM6] Validation failed. [SM6] D3DCompileToDxil failed. Error code: Unspecified error (0x80004005).


when importing PLY the outpulog

LogTemp: Warning: create new guassian: demo_fox_gs LogXverseGS: Warning: generate spatial result size 4076 LogXverseGS: Warning: GENERATE LOD [1] point num is 104122 LogXverseGS: Warning: generate spatial result size 2029 LogXverseGS: Warning: GENERATE LOD [2] point num is 52549 LogXverseGS: Warning: generate spatial result size 987 LogXverseGS: Warning: GENERATE LOD [3] point num is 26532 LogXverseGS: Warning: generate spatial result size 483 LogXverseGS: Warning: GENERATE LOD [4] point num is 13342 LogXverseGS: Warning: BuildNiagaraBlocks NUM 1 LogTemp: Warning: workspace_name demo_fox_gs LogXverseGS: Warning: CreateVolumeComponent LogXverseGS: Warning: CreateVolumeComponent LogFileHelpers: InternalPromptForCheckoutAndSave started... Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers" FILE="D:/UnrealWS_server/Goliath/Goliath/Content/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers.uasset" SILENT=true LogXverseGS: Warning: UGSRuntimeBuffer::Serialize START LogXverseGS: Warning: UGSRuntimeBuffer::Serialize END LogXverseGS: Warning: UGSRuntimeBuffer::Serialize START LogXverseGS: Warning: UGSRuntimeBuffer::Serialize END LogSavePackage: Moving output files for package: /Game/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers LogSavePackage: Moving 'D:/UnrealWS_server/Goliath/Goliath/Saved/demo_fox_gs1_buffersEF51F38947A794CD278AE8995672CDD2.tmp' to 'D:/UnrealWS_server/Goliath/Goliath/Content/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers.uasset' LogFileHelpers: InternalPromptForCheckoutAndSave took 273 ms (total: 853 ms) LogXverseGS: Warning: CreateVolumeComponent LogXverseGS: Warning: CreateVolumeComponent LogUObjectHash: Compacting FUObjectHashTables data took 1.67ms LogFileHelpers: InternalPromptForCheckoutAndSave started... Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/XV3dGS/demo_fox_gs/demo_fox_gs1" FILE="D:/UnrealWS_server/Goliath/Goliath/Content/XV3dGS/demo_fox_gs/demo_fox_gs1.uasset" SILENT=true****

PerOveLo commented 3 weeks ago

I have the same issue

w1xmovies commented 3 weeks ago

v1.1.4 same here, show up for a second after dropping BP into the level and changes material to default also in output log:

LogShaderCompilers: Warning: Failed to compile Material /XV3dGS/M_GS_unlit.M_GS_unlit for platform PCD3D_SM6, Default Material will be used in game. /Engine/Generated/Material.ush:3967:30: warning: implicit truncation of vector type [-Wconversion] PixelMaterialInputs.Opacity = Local13; ^ error: validation errors RayTracingMaterialHitShaders.dxil:3965:5: error: Opcode Discard not valid in shader model lib_6_6(closesthit). note: at 'call void @dx.op.discard(i32 82, i1 true)' in block '#28' of function '?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFRayTracingIntersectionAttributes@@@Z'. RayTracingMaterialHitShaders.dxil:3962:5: error: Opcode Discard not valid in shader model lib_6_6(closesthit). note: at 'call void @dx.op.discard(i32 82, i1 true)' in block '#26' of function '?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFRayTracingIntersectionAttributes@@@Z'. Validation failed.

w1xmovies commented 3 weeks ago

got a solution that worked for me:

  1. r.RayTracing 0
  2. Disable Hardware raytracing in the Project Settings
b-summer commented 2 weeks ago

I've try turn off raytracine but have : Error: r.RayTracing is read only! I've turn off "use Hardware Ray T. when available" but nothing change. my solution for now is to use LumaAi plug, it's working fine for UE 5.3 I think with xverse the problem is coming from material. The one from LumaAi, has a different code

PerOveLo commented 2 weeks ago

When i click "hidden in game" its showing colors and not gray planes. Any reason why? I also tried to diable Raytracing without any result