keijiro / Rsvfx

An example that shows how to connect RealSense depth camera to Unity VFX Graph
Other
734 stars 111 forks source link

doesn't work with D435i #11

Closed phields closed 5 years ago

phields commented 5 years ago

pic435i Depth camera is on, but it's output nothing. (Unity Version2019.1.0b10,everything is default)

keijiro commented 5 years ago

Thanks for reporting the issue.

phields commented 5 years ago

@keijiro Thanks for reply. There is no any console view(0 message), it looks like 2019.1.0f1 failed just like 2019.1.0b10.

phields commented 5 years ago

I think the reason is there is no render texture output(color and position). But the RealSenseSDK2.0's demo worked normal..

keijiro commented 5 years ago

How about decreasing the framerate in the Rs Device profile to 30? D415 supports 60 fps but I don't know if D435 supports it.

phields commented 5 years ago

@keijiro I tried, 30 or 60fps both working in RealSenseSDK demo, but still no rendering in the Rsvfx. Dkvfx is work for me, so that might be not the HDRP and VFX Graph's problem.

phields commented 5 years ago

https://github.com/IntelRealSense/librealsense/issues/2455 https://github.com/IntelRealSense/librealsense/issues/3474 I found something useful. It looks like the color and depth frame is not align on D435i ?(with same width&height)

bdaver commented 5 years ago

Try changing regional settings on your pc. Especially date and number format to united states.

I spent days to understand why vfx rendering stops. It cripples the shader ehen you compile. It is a rarely known bug on unity. Timeline animations suffer from the same problem as well. When you try to rotate game objects, it goes to billions in degrees.

On 13 Apr 2019, at 10:44, phields notifications@github.com wrote:

IntelRealSense/librealsense#2455 IntelRealSense/librealsense#3474 I found something useful. It looks like the color and depth frame is not align on D435i ?(with same width&height)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

phields commented 5 years ago

Try changing regional settings on your pc. Especially date and number format to united states. I spent days to understand why vfx rendering stops. It cripples the shader ehen you compile. It is a rarely known bug on unity. Timeline animations suffer from the same problem as well. When you try to rotate game objects, it goes to billions in degrees. On 13 Apr 2019, at 10:44, phields @.***> wrote: IntelRealSense/librealsense#2455 IntelRealSense/librealsense#3474 I found something useful. It looks like the color and depth frame is not align on D435i ?(with same width&height) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

I tried. Still not working:( vfx rendering nothing because PointCloudBaker doesn't output textures

phields commented 5 years ago

图片

keijiro commented 5 years ago

How about upgrading the firmware? I hardly think it helps but should be tried once.

phields commented 5 years ago

How about upgrading the firmware? I hardly think it helps but should be tried once.

Tried, I decided to return the D435i to Amazon.

kromond commented 5 years ago

Hi, I have the D435 (not with the i) and also is not working. The console says this

ExternalException: rs2_pipeline_start_with_config(pipe:000001A2A40CE5B0, config:000001A2A40CFC90)
Rethrow as Exception: Couldn't resolve requests
Intel.RealSense.ErrorMarshaler.MarshalNativeToManaged (System.IntPtr pNativeData) (at <39ff202c67d64a63acbba4ae542e7167>:0)
Intel.RealSense.Pipeline.Start (Intel.RealSense.Config cfg) (at <39ff202c67d64a63acbba4ae542e7167>:0)
RsDevice.OnEnable () (at Assets/RealSenseSDK2.0/Scripts/RsDevice.cs:71)

For the T265 I see similar

ExternalException: rs2_pipeline_start_with_config(pipe:000001A2A28AA030, config:000001A2A28AA1D0)
Rethrow as Exception: No device connected

D415 works as expected. For all three I'm getting the Serial number from the realsense viewer and putting it into Requested Serial Number. Are there any other steps required?

keijiro commented 5 years ago

@kromond Regarding T265, it has to be activated before the other RealSense devices.

https://github.com/IntelRealSense/librealsense/issues/3734

To do this with Capture.unity example, please try the following steps:

  1. Stop playing.
  2. Deactivate RealSenseVGA60 game object.
  3. Start playing.
  4. Activate RealSenseVGA60 game object.

I'm trying to find a better solution to this issue.

kromond commented 5 years ago

thank you @keijiro, T265 example working now. Also D435 works fine when I create a new RsDevice

keijiro commented 5 years ago

Finally I bought a D435i device and confirmed that it works without any problem on my side.

I'm closing this issue now. Please feel free to reopen if it still reproduces.

antoniohof commented 4 years ago

Probably you just need to rebuild all VFX graphs before pressing play. (Edit->Visual Effect-> Rebuild)

mhkim0720 commented 2 years ago

It's simple. Change the color and depth frame rate to 30 and the 435i will work as well.