Skip to content
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

Flickering Effects with VFX Graph #4

Closed
TheWiselyBearded opened this issue Aug 22, 2023 · 3 comments
Closed

Flickering Effects with VFX Graph #4

TheWiselyBearded opened this issue Aug 22, 2023 · 3 comments

Comments

@TheWiselyBearded
Copy link

Marek,

Thank you for providing such a wonderful app. When you get a chance, would you mind helping me debug/make sense of an issue? I've cloned the repo and followed the READme, successfully setting up the project.

However, I'm facing an issue in which my r3d file keeps flickering when running the main scene with either VFX particle system (Simple and Particles). The VFX graph exhibits flickering effects and in some cases completely drops frames. I've checked the timeline settings, noticed it was set to 60 FPS, so I set it to 30 to match the frame rate in which the RGBD video was captured. Unfortunately, this hasn't resolved the issue.

If attaching a video would be helpful, I'm happy to share.

@marek-simonik
Copy link
Owner

Hi,

thank you for using Record3D :)! Please read my advice mentioned in this issue marek-simonik/record3d_unity_demo#8 — I think that Github issue seems very similar to the problem you are describing.

In general, I think the problem might be in the way the VFX graph is set up; you might try experimenting with how many particles are spawned and whether to even spawn new particles in each frame. Instead of spawning new particles, you might modify the VFX graph to spawn only a certain number of particles at start and then update the position of the existing particles. This should improve the performance and reduce (or eliminate) flickering.

@TheWiselyBearded
Copy link
Author

TheWiselyBearded commented Aug 24, 2023

Experimenting as we speak, the linked issue page is exactly what I was looking for. Thank you for the prompt reply and help, Marek.

One last question before closing this comment: Is it possible to obtain the raw depth map from the r3d file?
I noticed the data is compressed using the lzfse codec. Uncompressed, we can obtain the XYZ values. However, I want to generate the depth map images, if possible. Not a blocker, just curious :)

@marek-simonik
Copy link
Owner

To obtain depth images, just unzip the .r3d file (it's just a ZIP file with r3d extension). The depth maps are indeed compressed using LZFSE — see marek-simonik/record3d#7 (comment) for a Python snippet that decompresses a depth map into a float32 depth map.

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

No branches or pull requests

2 participants