Immediate Mode in HDRP doesn't work (FPS example too)

Avatar
  • updated
  • Fixed

Hi Freya !

So, I'm on an OSX 10.14.3 with a AMD Radeon Pro Vega 64 and Unity 2020.1.17f1 with HDRP mode.

I've issues with the FPS HUD Example ... getting this when loading the scene : 

Image 203

The process I followed : 

* Started a new project from Unity Hub for my Unity version in HDRP, which loads properly and works as expected.

* I installed TMP on the project and added it's resources : TMP Essentials and TMP Examples and Extras : 

* Then I removed (not sure if needed, but I find something related on another thread) the Unity UI package.

* Then I imported Shapes. And it asked for Install dependencies ... (TMP was already there).

Image 204

* During install it prompts HDRP detected ...

Image 205

* And when I open the FPS HUD scene... I see what is shown on the first picture ... pink materials.

If I play the game, i just see all pink ... ?¿ 

* So I updated project Materials to HDRP ... So, no more "pink" everywhere... except for the "player" object. 

Image 207

Image 208


* But when I play I don't see any FPS HUD ?¿ 

Image 209

* During the process I don't get any warnings or errors on the console.

So the question is ... Why I can't see any HUD ? 

 

Reporting a bug? please specify Unity version:
2020.1.17f1
Reporting a bug? please specify Shapes version:
2.3.2
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Fixed

both issues in here have now been fixed in 3.0.0 :)

Avatar
Freya Holmér creator

this is an issue I'm currently working to solve. it's unfortunately more complicated than one would hope, because HDRP renders in a very different way compared to the old render pipeline.

the issue is that immediate mode drawing needs to be called at very specific moments, and HDRP simply doesn't have a good place to do that callback. OnDrawGizmos should still work as expected, but for in-game camera drawing there's currently no good way to do it as far as I know

I'm working on addressing this with the next update, but it has required some substantial restructuring, on top of the documentation that will also need to be updated

tldr: immediate mode in HDRP cameras is hard right now, fix is coming soon!

Avatar
eloi maduell

Thanks for your reply Freya ... I was going totally mad trying stupid things... 

And being stupid myself ... a stupid question : is there any way to make it work under HRDP without immediate mode or whatever mode ? (not sure if my question makes any sense at all)

We are not working on a game at all .. We're working on a simulator for our audiovisual show and I need to draw some lines here and there with your features ... 

Any idea of dates/timming of this update might be alive ?

Avatar
Freya Holmér creator
  • Under Review
Quote from eloi maduell

Thanks for your reply Freya ... I was going totally mad trying stupid things... 

And being stupid myself ... a stupid question : is there any way to make it work under HRDP without immediate mode or whatever mode ? (not sure if my question makes any sense at all)

We are not working on a game at all .. We're working on a simulator for our audiovisual show and I need to draw some lines here and there with your features ... 

Any idea of dates/timming of this update might be alive ?

you can use non-immediate mode! Shapes -> Create -> Line/Disc etc. you can find examples of these in the Shapes gallery

as for timing for a fix for immediate mode - I can't really say. hopefully in December!

Avatar
Freya Holmér creator
  • Answer
  • Fixed

both issues in here have now been fixed in 3.0.0 :)