Entities Invisible with Hybrid Renderer v2

Apologies if this has been covered elsewhere - I found several threads about invisible entities with older versions of these packages, but not much about this specific config:

When I enable Hybrid Renderer v2, my entities no longer render. Here’s my current setup:

Unity: 2020.1.03b6.3521
Installed Packages:

  • Entities: 0.9.1 preview.15
  • Hybrid Renderer: 0.4.2 preview.16
  • High Definition Render Pipeline: 9.0.0 preview.13

I have ENABLE_HYBRID_RENDERER_V2 set in my player defines. I’ve also run through the process of updating all of my project’s materials when installing HDRP (and I had no custom materials in my project).

The entities I want to render all have the following components:

  • BuiltInMaterialPropertyUnity_MatrixPreviousM

  • BuiltInMaterialPropertyUnity_MatrixPreviousMI

  • BuiltInMaterialPropertyUnity_MotionVectorsParams

  • BuiltInMaterialPropertyUnity_RenderingLayer

  • BuiltInMaterialPropertyUnity_WorldTransformParams

  • RenderBounds

  • WorldRenderBounds

  • LocalToWorld

  • WorldToLocal

  • RenderMesh

  • PerInstanceCullingTag

  • HybridChunkInfo

  • ChunkWorldRenderBounds

Switching back to Hybrid Renderer v1 will still render the entities.

Any idea what I should look for here? Having trouble finding info about this. Thank you very much for any pointers.

2 Likes

What’s your shader? Just default?

Yes, just The default material on some spheres.

Performance is great, though. :wink:

Any ideas?

If I create a blank scene, create a basic sphere from the ‘GameObject/3D Object’ menu, and then put a ConvertToEntity component on it, should I expect it to render when I go into play mode?

Just tested, that works fine for me. Creates the sphere with HDRP/lit and appears in scene.

5783644--610363--upload_2020-4-30_9-7-8.png

Thank you for running through that. Do you have the same package versions as I do?

Well, let’s see if Unity will take kindly to me removing, uninstalling, and then reinstalling all of these packages! I read that once you install the HDRP package, there may be issues trying to remove it.

I was in b7 but I had no issues with b6 previously as far as I’m aware.

I did have some issues with HDRP working at all the first time I set it up and had to revert all project settings to get it to actually render anything.

Hmm, I have a feeling the shader conversion process never got a chance to complete. I remember it hanging at around 45% the first time I installed HDRP. I restarted the editor, and clicked a button in the starting menu to manually convert them again, but this seemed to complete instantly. At the time, I thought this was evidence that it actually had completed previously, and that it was the Unity UI which bugged. Now I’m suspicious.

I’m trying this again in a clean project to verify that I can get it to work at all. If I can locate where Unity stores the new shaders it creates during this conversion process, maybe I can delete them and actually have lock restarting that process.

Yep, it’s working in a fresh project. Hope I can track down the location of that data…

Just started a new project with Hybrid Render and HDRP, and I’m running into the same problem. Materials are all converted. Non-converted objects render fine. Converted entities don’t render at all.

No idea what’s up.

1 Like

When I upgraded all the packages to the latest versions, it turned out that none of my materials were rendering because of an error in a custom shader. Wireframe mode was showing my entities just fine though

1 Like

Same for me on URP, blank scene with new cube and attach covert to entity, nothing is rendered, but non etities are

Unity 2020.1.4f1
“com.unity.entities”: “0.14.0-preview.18”,
“com.unity.render-pipelines.universal”: “9.0.0-preview.55”,
“com.unity.rendering.hybrid”: “0.8.0-preview.18”,

Have you enabled V2? And what shader are you using?

@tertle yes, I’ve added ENABLE_HYBRID_RENDERER_V2 under player settings > scripting define symbols and got the activation log message that it was active. Shader is the default Universal Render Pipeline/Lit, same with unlit. If I switch back to V1 entities render

Are you using subscenes? Try closing the subscene.

@elJoel simple new blank scene without subscenes

I have the same problem, but only for “some” objects … The solution is to move them a little bit.

Apparently this is a problemwhere gpu data and cpu data is not aligned correctly, but they are aware of it

@Cell-i-Zenit do you know if there’s an opened issue I can follow?

@Cell-i-Zenit what do you mean by move them a bit? I have a move system that is changing their Translation and those changes are visible in the Entity Debugger

by moving iam talking about moving their position just slightly … for me the objects instantly appear again.

There is no open issue as far as i know