Items with no label
3335 Discussions

How to apply visual presets in C++

DSolo2
Beginner
2,875 Views

Hello,

I am trying to change the visual preset on the D415 using the example code given in but it does not seem to be working. When I run the code, there is no effect on the stream. If I use the Realsense Viewer tool to change the presets, then it works. I am running Windows 10.

Is there a step that I am missing?

0 Kudos
1 Solution
MartyG
Honored Contributor III
959 Views

Are you trying to change the resolution and / or FPS at start-up, please? If so, these particular settings cannot currently be set with a json for reasons explained in the link below.

View solution in original post

4 Replies
MartyG
Honored Contributor III
960 Views

Are you trying to change the resolution and / or FPS at start-up, please? If so, these particular settings cannot currently be set with a json for reasons explained in the link below.

DSolo2
Beginner
959 Views

Yes, I am setting the FPS and resolution at start up. I will try your suggestion and report the result. Many thanks for your helpful response MartyG.

0 Kudos
DSolo2
Beginner
959 Views

I was able to make the preset take effect by first saving it to JSON using realsense viewer and then loading the preset using the code in your link.

Thank you for your help.

0 Kudos
MartyG
Honored Contributor III
959 Views

Awesome, thanks for the tip about how you solved the problem in your project!

0 Kudos
Reply