Items with no label
3335 Discussions

SR300 720p@60fps

yishi12
Beginner
1,858 Views

Hi. I would like to use SR300 on Unity and Processing at 60 fps.

However, at 720p, it couldn't capture any images on both.

Then, I face the same problem mentioned on the following post:

Furthermore, when I used Capture.list() with the video library of processing, there is not 720p and 60 fps just like above-mentioned post.

The result of Capture.list() is like following:

>22:name=Intel(R) RealSense(TM) Camera SR300 Virtual Driver,size=960x540,fps=60

>23:name=Intel(R) RealSense(TM) Camera SR300 Virtual Driver,size=1280x720,fps=30

>24:name=Intel(R) RealSense(TM) Camera SR300 Virtual Driver,size=1920x1080,fps=30

Is there a SR300 which can't obtain images at 720p and 60 fps or are there any requirements?

Best regards

0 Kudos
5 Replies
MartyG
Honored Contributor III
419 Views

This may be useful to you.

0 Kudos
yishi12
Beginner
419 Views

Thank you for your quick reply!

However the problem was not solved.

What I did are the following:

1. change the unity settings and add "Application.targetFrameRate = 60" with an empty GameObject.

2. confirm the driver of SR300 is the latest

3. confirm the USB driver of my laptop is the latest

The spec of my laptop:

XPS13 MLK 9360

7th Gen i7-7560U

16GB LPDDR3

SSD 512GB

Windows 10 Pro

What else can I do?

Best regards

0 Kudos
MartyG
Honored Contributor III
419 Views

Can I please confirm that you turned the VSync option in Unity off, as described in the link provided above?. targetFrameRate apparently does not work if VSync is turned on.

Another approach to a targetFrameRate script in an empty GameObject that somebody used was to set it to -1 instead of 60. They claimed that doing so completely removed frame-rate capping in Unity.

Application.targetFrameRate = -1;

0 Kudos
yishi12
Beginner
419 Views

Thank you for your reply.

>Can I please confirm that you turned the VSync option in Unity off, as described in the link provided above?

I set the VSync like the following picture.

Then, the GameObject in this picture attached the script has "Application.targetFrameRate = -1;" in its Awake().

However, SR300 couldn't obtain no image if the parameter was set at 720p and 60 fps.

Best regards

0 Kudos
MartyG
Honored Contributor III
419 Views

I managed to find a further discussion on the RealSense forums about this subject by searching for 1280x720 instead of 720p. Somebody else had the same problem in May 2017 with not being able to achieve 60 fps in 720p mode with Unity. Intel support staff member Yermi investigated and could not get 720p mode to work either.

0 Kudos
Reply