Vital-Volkov / Stereoscopic-3D-system-for-Unreal-Engine-5

Scientific precision Stereo3D(S3D) system for UE5 with changeable depth user control 3D Panel
11 stars 2 forks source link

don't support for ue5.4.2 #3

Closed smallPotatoBoy closed 3 days ago

smallPotatoBoy commented 1 week ago

屏幕截图 2024-06-21 195133

some material function has changed in ue5.4.2, we can't see 3d anymore in vertical mode ... any help please ,thank you!

Vital-Volkov commented 5 days ago

Looks like the A/B order of "MaterialX SplitTB" function was changed so the fastest way to fix it for UE5.4 is just swap A/B lines but it will stop showing correct in UE5. I fixed this for working correct in all versions of UE5 by just changing Render Texture properties from Clamp to Wrap(Repeat) so no need to shift UV coordinates for right texture to -1 and as result of different order of A/B lines of "MaterialX SplitTB" function Over is left eye and Under is right eye for UE5 and vise versa for UE5.4 so just use "Swap Left-Right View" if required.

smallPotatoBoy commented 4 days ago

is very helpful,thanks a lot for your support!

Vital-Volkov commented 4 days ago

Ok looking at your screenshots I understand what you mean. Above I solved another problem with the Over/Under method :)) because I checked the Interlace Vertical method and it works fine in my case. This line desynchronisation with screen lines happens when you are not using the native resolution of your screen. For example if screen resolution is 1920 but game resolution in fullscreen mode is 1280(any different from 1920) then this problem happens. But if game resolution matches screen resolution but problem still exists this means UE somehow set not the correct resolution for Render Texture. Need to test this.

Does it work correctly for you with the same conditions hardware/software settings with the older UE version?

smallPotatoBoy commented 4 days ago

Of course,it work correctly for me with the same conditions hardware/software settings with the older UE version,and your analysis is very correct,if game resolution matches screen resolution but problem still exists this means UE somehow set not the correct resolution for Render Texture. Based on this, we solved this problem!

I couldn’t have completed the task without your help!:)

As you can see ,this is my screenshots in last day:

屏幕截图 2024-06-24 152345

屏幕截图 2024-06-24 151744