Search Unity

Can't get Alembic pointcloud cache to render in Game View

Discussion in 'Asset Importing & Exporting' started by Ohmydumbledear, Apr 27, 2021.

  1. Ohmydumbledear

    Ohmydumbledear

    Joined:
    May 16, 2017
    Posts:
    7
    Hi guys

    I am working on a project where we have a bunch of sand simulations. At the moment, our Houdini artist is exporting Pointcloud caches in Alembic, so that we can import them into Unity via the Alembic importer, and spawn meshes on the points of the cloud within Unity, using the native components (Alembic Point Cloud and Alembic Points Renderer) rather than him exporting all the mesh, which would be SUPER heavy.

    Following the instructions of the Alembic package, it all seems pretty easy, except that right now, I've only managed to make this "render" in 2019.1.14 (the project is in 2020.2.2 & 2020.3.3). Basically, by default, a "DefaultPoint" material will be assigned to the mesh via the Alembic Pointcloud Renderer component, but it doesn't actually render anything in the Game View. I can only see the MotionVector material in the scene view. This "DefaultPoint" material is made with a shader that comes from the Alembic package. I've tried making different materials, but nothing seems to work. I also get this random cube that appears automatically, but that's not my priority right now

    In 2019.1.14, the default material seems to work, the camera can see it, it reacts to the light, it's just very limited. But we're not working in 2019.1.14, so I still need a fix...

    Do any of you guys have any insight into rendering Alembic pointclouds into Unity? Here are some screenshots of the 2020.2.3 project. Settings for the 2019.1.14 project are the same, I've included a screenshot as well (last one) of what it looks like when it's "working".

    upload_2021-4-27_16-23-35.png upload_2021-4-27_16-25-49.png
    upload_2021-4-27_16-24-30.png
     
  2. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    Hello,

    Thanks for the post.
    I just checked that it worked on 2021.2 Legacy render pipeline.
    Unfortunately the instanced point materials are not compatible with HDRP (or SRP) :(
    This was not requested since the interest in alembic point clouds is not terrible.

    I will try to add it on our radar and see what can be done.
     
    Ohmydumbledear likes this.
  3. Ohmydumbledear

    Ohmydumbledear

    Joined:
    May 16, 2017
    Posts:
    7
    Thanks for the fast reply! I'm at least glad that I'm not the one who was missing out on a setting somewhere.
    Thank you very much! I'll be keeping an eye out for it
     
  4. Ohmydumbledear

    Ohmydumbledear

    Joined:
    May 16, 2017
    Posts:
    7
    Actually, replying again. Do you have any suggestions and/or workarounds for this type of situation? Is there another way to transfer this kind of simulation from Houdini to Unity that you know of?
     
  5. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    Hey,

    Unfortunately the most straight forward, but crazy inefficient, way would be to expose your sand as a mesh.
    Alternatively, Houdini offers a Unity plugin. I have never used myself. https://www.sidefx.com/docs/unity/_instancing.html
     
    Ohmydumbledear likes this.
  6. Ohmydumbledear

    Ohmydumbledear

    Joined:
    May 16, 2017
    Posts:
    7
    Thanks again, we'll check it out tomorrow.
     
  7. Johnny-Ow

    Johnny-Ow

    Joined:
    Mar 3, 2015
    Posts:
    11
    Is HDRP support on the radar?
     
  8. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    Thanks for your message.
    We are in the process of planning the features for 2022.2 and this is one of the items.
    Unfortunately I do not have any more info on the matter.

    If I may ask, what sort of alembic point cloud data are you trying to render inside HDRP ?
     
  9. Johnny-Ow

    Johnny-Ow

    Joined:
    Mar 3, 2015
    Posts:
    11
    Glad to hear it even if 2022.2 seems far away. I'm trying to take simulation output into Unity.
     
  10. jooyoung_Kwak

    jooyoung_Kwak

    Joined:
    May 17, 2022
    Posts:
    1
    any update regarding this issues?