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.
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?
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.
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.
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
@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
@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