#archived-hdrp

1 messages · Page 72 of 1

turbid matrix
#

so This does not include support for the specific "grass texture details". Please use instanced mesh details for grass instead, which should be more flexible with good performance on most platforms. We plan to provide grass samples in an upcoming version of the terrain tools samples.

eager fractal
#

After 2021 update I have this problem and I can't deal with it at all

glad tartan
#

Shadows work fine. You might want to turn up the shadow opacity to 1 (Enable Additional Properties to see this) and make sure the clouds and sun angle actually match up to make the shadows display at your location. Also make sure they are thick enough to cast shadows/shadows dark enough for you to notice.

weary fog
#

that worked

#

thanks

#

no idea why it's set to 0.5 by default

eager fractal
#

Ok I got grass working in 2021 version

#

But, it's very dark until I turn off light layer support.

#

And can't even figure out what light layer the grass is on and how to control it?

dawn sorrel
#

Isn't it weird how with all this graphics work nobody is even putting replacing the old occlusion culling from a dead company on the roadmap.

#

Like come on, at least give us hardware occlusion query support in the command buffers, I gotta write a native plugin for it otherwise ☹️

jolly fjord
#

how can you make a volume only affect one camera? I want one of the volumes affecting only the main camera and the other volume affecting an overlay camera (URP)

dawn sorrel
#

@jolly fjord it has to be non global and use a different layer.

jolly fjord
#

i want it to be global-like

dawn sorrel
#

Yeah.

#

I had to parent it to the camera.

jolly fjord
dawn sorrel
#

Yes.

jolly fjord
#

k

dawn sorrel
#

Well. Whichever camera needs it.

jolly fjord
#

doesnt work

#

volume still applies to everything

nocturne nimbus
dawn sorrel
#

@jolly fjord it has to be on the layer that only one of they cameras recognize.

winter geode
#

Hello, is there any official devoloper could tell me that whether the latest Unity has exposed a way or API to config multiple hit groups or shader binding table of DXR/Raytracing?

I'm building a custom RP with available DXR APIs and want to execute different closest hit shader by tracing new reflection rays inside primary closest hit shader. It should be pretty easy by using the index parameters of TraceRay function, but I cannot find any document or forum post that instructs how to config multiple closest hit shaders.

royal tusk
#

anyone work with multidisplay? I assign a render texture to display 1's cam but it keeps defaulting to display 2 on readpixel when display2 never has a render texture assigned to it ever

#

this is only on build not in editor

prisma widget
#

Hi guys, does anyone know hot to get rid of this ugly shadows? I'm using standard render pipeline

turbid matrix
#

@prisma widget higher resolution shadow maps, lower shadow distance, soft shadows, different shadow fit or just... use 3rd party shadow filtering (PCSS etc)

#

I'd go with NGSS on built-in renderer

#

it's paid asset but very affordable

jolly fjord
#

i had everything on default layer

#

except

#

something that i wanted different effects on

#

that was in a different layer

#

i had the main camera that wasn't able the layer with volume mask to one of the volume's layer

#

then an overlay camera that could only see the other objects and with volume mask to the other volume's layer

#

but the volume that wasnt on the default layer still affected objects in the default layer

cold veldt
#

Hello, Ive been messing around with URP scriptable render passes for some post processing and reached a point where I want to use multiple RenderTargetHandle inputs for a single shader, what would be the correct way of doing so? (so far Ive used _MainTex as input in shader and Blit to do all my renders)

eager fractal
#

Screen space GI in 2021 HDRP is so dark, completely obscures all sky lighting. Am I missing something?

woeful widget
#

Hey, I have a problem, so "Others" category in profiler uses like 80% of my CPU usage

#

and I dont really know why

dawn sorrel
#

.

glad tartan
# nocturne nimbus wait im so stupid i made a reflection probe, all the rendering settings were off...

In your case you don't need the reflection probe setup as well. Just the first option but reverse the Volume Profiles so you have the dark sky as the main (Visible sky) and another sky with the ambient lighting you want as the secondary sky (Ambient Sky)
From what you wrote you wanted a Black Sky (Simulate Space) but having it produce ambient lighting so the objects in the scene facing away from the main light isn't dark. This will give you that result.

patent sun
#

Don't know why but shadow On Enable update don't seem to be working with point light on 2021.1.1f1

#

Any ideas?

nocturne nimbus
#

i put the vp in the profile slot in environment

#

when I set it as the actual sky, there was ambient light, but for some reason its not working now

#

this is the actual sky

sterile cairn
#

Is there an alternative to the 2d shadow caster that you guys would recommend? Or should I just make my own?

#

It's alright, but it's not 100% what I'm after

unborn juniper
#

Im using URP and im trying to light the surroundings but for some reason it only lights up unlit sprites. I want to have light affect a sprite where I can see the sprite
Like I want the user to see the floor
But also have light brighten the part she is standing on

glad tartan
modern dawn
#

If I'm making a 3D game with sprites, should I still use the URP 2D renderer?

#

As in... the game is entirely SpriteRenderer and LineRenderer based, but I'm rotating them around in 3D space.

#

And I'll probably have a few flat meshes in the mix too.

prisma widget
turbid matrix
#

@prisma widget NGSS should work on all unity platforms but if uncertain, you can ask the dev itself, he has support discord. I can DM you a link if you want

iron flame
#

CoreUtils.DrawRendererList(renderContext, cmd, RendererList.Create(renderListDesc));

it seems RendererList.Create() has been removed in HDRP 12. Is there any way to use Digital human NormalBufferBlurPass.cs in HDRP 12?

sterile cairn
#

So...

#

claims "fixed in 2019.3", but

#

the floor is using a MASSIVELY stretched version of the chain normal map for some reason?

#

I'm giving the floor a normal map anyway, but this is just silly lmao

whole fossil
#

guys, is there a way to exclude some material, object or whatever from being processed by the TAA in HDRP? I have a decal that uses some fine lines and it is being discarded when camera is not moving at all or when I change antialias mode on camera to anything different than TAA. on regular lit shaders there is an option to select after post process rendering path that solves this issue, but there is no such option for decal materials

amber anchor
#

this question may be a bit stupid, but here goes. im using urp with 2d renderer. its mentioned as being experimental. is it production ready? is it likely to evolve out of the experimental fase?

outer carbon
#

Experimental technically means it's not production ready. But sometimes it's good enough to start with.

#

And yes, it will eventually reach the point where it's production ready officially.

spice sparrow
#

not exactly sure where to ask this but whats up with these lines that move along my screen as i move

#

theyre hard to spot unless you look closely

#

it looks like a bright spot moving along the red line as i move

#

you might have to fullscreen to see it

#

i turned up the bloom intensity a lot to make it more obvious

nocturne nimbus
marble copper
#

Hey should HDRP Billboards work? i have some speedtree models from asset store, converted all the materials to hdrp but billboard is not rendering. What shader am i suppose to use?

warm coral
#

Hey, How do I update HDRI Sky with On Demand update mode? I can't seem to find it in the docs or through google

warm coral
#

I tried calling RequestSkyEnvironmentUpdate but it doesn't seem to effect anything

amber anchor
#

hi guys, im a bit new to unity. i updated to urp and 2d renderer for the lighting options. but im having troubles and seeing its experimental im not sure about this direction and i want to change it early in. so my question is two fold. 1. whatbis the best render pipeline or set up for a straight up 2d platformer. 2. can i go back to the standard renderer and how do i go about it (changing materials?) thanks in advance

#

also, nr 3. what lighting alter ative is recommended, im looking at 2ddl and some others but its hard tonsay which is the most usable. i want it to be reliable and easy to use. i also really want shadows, so i dont have to bake them all by hand.

inland halo
#

thought it might be worth asking here, is there any ways to allow psbs to be affected by 3d light?

tepid cobalt
#

after importing the unity particle pack it looks like my ambient occlusion disapeared

#

this is after

dawn sorrel
#

In an almost empty level with just a light and a cube, how does HDRP's performance compare to UE4's?

keen glen
weary fog
#

anyone know how to get transparent particles to show up in ssr in hdrp

turbid matrix
#

transparent SSR enabled?

#

@weary fog

#

that being said, I think those should show up in ssr regardless of that setting since it's on screenspace already

#

transparent SSR is for getting reflections shown on transparent materials itself

weary fog
weary fog
#

set the particles to opaque, they show up
set them to additive, they aren't there

turbid matrix
#

you have SSR flag enabled on the particle material itself?

weary fog
#

same goes for just normal meshes that are set to alpha transparent

#

let me check

turbid matrix
#

or I think the flag is more for disabling SSR but still, worth checking it's state

#

it's essentially writing a bit to stencil buffer if you opt-out of SSR for the material

#

no idea how all this goes with vfx graph though

#

old shuriken particles are using hdrp shader graphs at least so they should have it

waxen lantern
# amber anchor this question may be a bit stupid, but here goes. im using urp with 2d renderer....

this explains Experimental, Pre-release and Released phases https://blog.unity.com/technology/a-new-package-manager-experience-in-unity-20211 note that as a general consideration "Experimental packages can be deprecated without being released." but in this case, the URP 12.0 (Unity 2021.2) changelog shows "Moved all 2D APIs out of experimental namespace." meaning this particular feature has at least reached Pre-release, confirming that it will be Released and supported. (URP 2D Renderer is not its own package, it's part of URP --but the same basic expectations around development phases apply.)
https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/changelog/CHANGELOG.html

weary fog
#

not seeing a setting for toggling ssr on the shader

#

this is for vfx graph particles btw

turbid matrix
#

maybe they don't have that flag then, I wouldn't know 🙂 I guess the workaround could be using mesh emitters somehow there or whatever lets you hook in regular HDRP SG's to the meshes on vfx graph side

#

I'm total vfx graph noob 😄

waxen lantern
turbid matrix
#

yeah I was just writing about that, but I don't even know how that works 😄

#

worth checking that one out too if it 2021.2 is an option

waxen lantern
loud leaf
#

I think that's what the "Ultra Performance" setting in Unity is currently doing (with a wrong label?)

dawn sorrel
#

@turbid matrix hey, sorry for tagging you directly but I know you're the local expert. What do use for occlusion culling? Hardware occlusion queries? PVS?

turbid matrix
#

@dawn sorrel I'm afraid that's not my area of expertise

dawn sorrel
#

Hm, your games didn't need it?

next crystal
#

i re-baked the lighting in the scene and it seems to have fixed thonk

tough halo
#

my editor is spewing these out whenever i try to set up an emissive texture for my model in hdrp

#

can anyone tell why?

#

oh it's not even when trying to set it up it just does this whenever it's loaded in the editor i think

#

when i delete it the errors stop

#

here's the full error if that helps

#

for some reason only generates these errors with the texture opened in the inspector window

#

but the emissive texture also doesn't work

#

yep can confirm this is a substance plugin issue

#

still can't get emissive to work tho pepecry

tough halo
#

ok i got it to work by plugging the textures into shader graph instead of using material

waxen lantern
# dawn sorrel Hm, your games didn't need it?

many let the engine and/or render pipeline take care of all culling automatically / implicitly. there's a limited number of cases where you need custom culling optimizations. and beyond custom cpu side culling (like unity's umbra / occlusion areas) for specific use cases it's not always the bottleneck or worth the effort, sometimes you need gpu culling or something else to make a significant difference. theres limited api and hardware support for things like gpu compute culling and early gpu side culling. but it's not unheard of. in any case --i suggest to share the context of your use case and project requirements / goals, maybe even performance profiler statistics for someone to be able to provide effective advice on what you should or shouldn't pursue in this area of potential optimization.

dawn sorrel
#

@waxen lantern tbh I was hoping to yoink a working hardware query implementation from someone so I don't have to write a native plugin myself 😄

#

And well there is kinda no callback for shadow casting in URP so it's impossible to cull separately for shadow perspective as well.

#

Well. I have a small desert city in mind with high verticality in mind and some interiors.

#

I got distance culling implemented for now.

#

And I was wondering how other people do their culling.

#

Cause with the lack of per shadow caster culling callback I can't do even do shadow aware frustum culling let alone occlusion culling.

#

And it seems the asset store assets have the same problems judging from reviews.

#

And it almost seems like I should do grid based PVS like Eastshade since it's the only solution that works with no custom culling callback.

#

Rn with just distance culling it looks like I can handle 4 million shadow casting triangles no problem.

#

At 80 FPS on a 1050 Ti.

#

But will that stay this way when I build the city, I am not sure.

#

Also my own occlusion culling would be kinda cool for a portfolio 👀

#

And I only read bad things about Umbra.

tranquil beacon
#

can someone simply explain why this plane is so much different.. between Built in vs URP.. the urp one looks broken to me.. the lighting works on quad or a cube or something..
is it just a unity thing with planes and the way it lights them.. or vertex numbers.. and what main settings do i need to tweak to get the URP working well for a scene like this..
The Built In:

true zealot
#

Did you make this plane manually? It's probably an issue with the normals

tranquil beacon
#

i did

#

it was created at runtime..

tranquil beacon
#

its created thru script

true zealot
#

The normals should all point upwards

tranquil beacon
#

ill look into the normals of it.. i only tested with this script plane

#

a quad works fine tho

true zealot
#

Or you can call RecalculateNormals and it might be fine

tranquil beacon
#

ill try that

hallow hare
#

Anyone know what causes this?

#

ive been sitting here for the 20 minutes wondering if i should just force-close unity or if there is another way

tranquil beacon
#

so its just the generated plane.. this (first one) that does this.. i tried Recalculating normals to no avail

hallow hare
subtle oxide
#

what a unity moment

inland gazelle
#

apparently i am changing my render pipeline from built in into urp. and all textures now turn purple how to return it into original color?

light spade
#

AFAIR, you need to convert your materials to URP format
Something like that (image might be outdated, but you should find the right menu option)

#

For me it's Edit > Rendering > Materials > Convert All Built-in Materials to URP

sweet vault
#

How can i use on render image in urp?

#

i want to use compute shaders to display their render texture using a render feature but idk how to

#

i dont want to set the render image to a ui raw image because its slower

idle knot
#

I don't think if this fits here but:

I did configure a single camera for my character with the body being fully visible, but the head did clip, so I did remove the head from the culling mask of the camera. It worked, but shadows from the head also disappeared.

I'm working with URP and so instead thought of removing the head from the layer mask of the Forward Renderer. While it works with shadows, now I'm not able to see my character's head through Scene view. While I could live with it, still annoys me out. Any idea on this? Is Forward Renderer the wrong component to accomplish this?

hollow frigate
#

anyone got any tips for debugging random HDRP lag spikes?

#

I'll occasionally get some HDRP random process that takes several hundred ms and I can't ever seem to find what they actually do or why it's happening

indigo summit
#

wait this function are removed in beta2?
RendererListDesc

turbid matrix
#

normally you could check that from release notes 😅

idle knot
# idle knot I don't think if this fits here but: I did configure a single camera for my cha...

I did create another Forward Renderer and set main camera's renderer to it, so that way Scene view uses the default Forward Renderer and shows the head correctly while camera uses modified one. I believe this is acceptable way of solving it, any ideas on it? Only thing I'm worrying about now is Main Camera window in Scene view doesn't match with actual camera, but does it really matter?

indigo summit
lavish geyser
#

Is it possible with the 2D renderer to have a „shadow“ Layer and then set the opacity on it separately?

#

I want something like:

  • tile maps
  • shadows
  • sprites
#

Is there something around for that? Can’t find good resources on that yet

#

i don’t want multiple shadows to stack and create black zones, that’s why I think that the layer approach makes sense.. i guess?

#

Maybe a shader that merges all the shadows with max alpha on an exclusive render target then render that with the correct sorting layer and opacity?

#

And by shadows I essentially use y flipped black sprites of my sprites with alpha value correctly positioned under my models

keen pivot
#

not sure if this is HDRP specific or not. why would a shadow appear to pass through solid objects? using HDRP/Lit Shaders

#

hmm,m it maybe my expectations on behaviour are not actually the same as Unity

#

the light mesh there doesnt cast shadows, i guess that means it doesnt block them either

hollow frigate
#

This is probably a really stupid question but why do my reflections seem to only appear in shadows?

#

actually scratch that, they only appear a certain distance away from the camera

lavish vault
#

anyone know what the deal with realtime GI is with HDRP

#

I thought I read something about enlighten going away, and then them not actually implementing a replacement so it's sort of back

waxen lantern
indigo summit
#

@turbid matrix well the release notes are up now, but there no mention about RendererListDesc removal or anything

indigo summit
#

probe volume is not release yet?

dawn sorrel
#

@waxen lanternunity team should concider buying bakery asset

#

best gi baking for unity

turbid matrix
#

nvidia only though

hidden flax
#

Hey, I am getting this error:
Assertion failed on expression: 'SUCCEEDED(hr)'
While the Shadow map (HDRP) is enabled thorugh the (only) directional light I have in the scene, any idea why?

#

I tried reading the logs but there is nothing but this error, I searched online but found nothing useful

#

I tried messing with the settings and even creating a new directional light in-case I didn't set the setting correctly, but again no luck

hidden flax
#

Update - It seems that no matter what model I use, the errors come up even when not in play mode, I just need to zoom in/out on any model.

#

I opened a new project in Unity with HDRP (same version) and it doesn't seem to reproduce, I tried copying all settings, turning off all scripts I had (again, happens even in edit mode)

stone wedge
#

Hey, does anyone know what this error means? UniversalRenderPipelineAsset_Renderer is missing RendererFeatures This could be due to missing scripts or compile error. And how would i go about resolving this?

keen pivot
#

using HDRP, i have a night scene with 15 streetlamps visible from above, and a static camera in the sky. when i choose shadowmask and bake the lighting, only 6 of them light up. anyone have any hints what this may be? not using distance shadowmask.

#

they are all mixed lights from the same prefab

#

lights sources are all static

eternal laurel
#

Check your lightoverlap scene mode

#

I think a max of 6 static lights are allowed to overlap in the shadowmask

hollow frigate
#

Does anyone know why the Unity profiler rendering tab says I'm only using about 1 gb of VRAM but windows task manager says I'm using all 2 gb?

#

this is what the rendering tab looks like

#

Are there hidden vram uses and if so is there a way to view them?

waxen lantern
next crystal
#

I followed the FPS Game Rendering and Graphics video to the letter, and even went and copied over the exact settings from the project on github, but for some reason my player objects dont receive or cast shadows to the rest of the scene

#

Am i missing something?

#

oh i found that in my overlay camera i have to set the culling mask to everything to have shadows; that doesnt right, does it?

#

The player objects clip through scene objects then thonk

fringe oak
#

Hello I launched my project this morning and it gave me errors with HDRP, I clicked on fix dans now everything is pink I don't know what happened

#

I just realised there is this running, maybe it'll work after it' done

#

it didn't fix it

sand cape
#

U have the default material shader on your stuff. You need to change to a hdrp material. There is a button that will do it for u. Google to see where it is. Some materials will fail changing and u need to assign them manualy

#

The default material shader u should use is hdrp/lit

#

@fringe oak

fringe oak
#

okk i'll loot that up

fringe oak
#

I'm lost lol, the thing is I was using custom shaders, so I need to change it to a hdrp anyway ?

#

ok i think i got it

sand cape
#

Yeah

fringe oak
#

I've put my Scriptable RenderPipeline Setting Back to URP High Quality, as it was in the beggining, but everything is white now x)

#

It was full white because the intensity of my lights went to 100000 wth

waxen lantern
# fringe oak It was full white because the intensity of my lights went to 100000 wth

if it's a directional light for the sun 100,000 lux would actually be correct and you should instead adjust the camera exposure or use exposure values (EV). Physically based lighting and exposure is more scientific and exact, uses large numbers that match up with the real world. My guess is when the SRP Asset got changed to HDRP and settings were "fixed" to be what HDRP uses, the light intensity properties were changed. https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@11.0/manual/Physical-Light-Units.html

turbid matrix
#

they finally are getting this functionality further

#

well, the gif preview doesn't really work on small size 😄

#

haven't checked where they are with similar functionality on camera settings atm, there's been issues with that in past when both pipelines have been in the same project

#

I kinda wish they would have just put separate section for URP and HDRP specific things on the light component though but this is still way better than how it used to be

#

with this new setup, you still have to go swap between pipelines to see the right light component values

turbid matrix
#

currently testing this + other x-pipeline branch for volumes. There's still on-going issue with HDRP exposure messing up URP which doesn't understand the concept

#

you'd think URP wouldn't care as it doesn't do exposure same way but there's something that just doesn't quite play ball, if I keep HDRP exposure to 0 and just adjust the light values without high intensity emission, SRP swap seems to work ok'ish now

#

there's still issues like difficulty to tell which SRP each volume component belong to (if already in scene) since the current setup doesn't really give any clue. best I can think of today is to just put URP and HDRP volumes separately to the same scene

#

basically due to this, we can atm get into situations like this:

#

one of these is for HDRP and other is for URP

#

also some minor issues still remain like while swapping to HDRP, it loses reference to URP's skybox material, so one has to restore that every time quality setting has been set back to URP

dreamy fox
low summit
#

Hey, I wanted to ask, does the QualitySettings api matter dependent on the render pipeline you are using?

What I mean is, if I have a URP project, should QualitySettings.shadows or QualitySettings.masterTextureLimit work, regardless of the render pipeline I am using?

turbid matrix
#

@low summitno idea which settings URP uses from that but in general, if the quality settings are listed on the project settings->quality UI and work there, the scripting API for similar things should be functional too

low summit
#

Thanks for the information! I will continue reading more into the API then. Cheers mate

delicate yoke
#

Hi,
So i have this model of a cloud. When the camera enters the cloud i want a very dense fog to appear that limits the cameras viewing distance. I tried using density volumes but those only work with box shapes and not with the actual geometry. How do I get this to work?
Im using HDRP

turbid matrix
#

@woven sonnet I was just looking into custom pass depth bake thing as I remembered that last time I tested it had some weird object popping in the final depth RT at times. I did notice however that you did add some fixes to the sample (aspect ratio) on the custom pass repo for 2021.2. I did also notice that the API is changed too, is this new api already some branch in the public github or will it arrive later? would love to give it a spin 🙂

#

I've only tested the thing with 2021.2 beta 2's version which obviously wasn't compatible

mental kindle
#

Hey there, does anyone have a good starting place or tutorial for creating/writing Custom Full Screen Passes for HDRP? I'm looking to create a simple color "offset" effect using post-processing and thought to ask here.

turbid matrix
#

@mental kindleofficial docs have starter guide for that

woven sonnet
# turbid matrix <@!242992549755748352> I was just looking into custom pass depth bake thing as I...

Right now nothing has landed yet. The API I've added allows you to override the current camera inside a custom pass, you can see the details here: https://github.com/Unity-Technologies/Graphics/pull/5016/files#diff-6e65410811a400c4f873bca66dd86a78a95f966661e8b219012b5949a3997fe5

And in the custom pass repo, there is the 2021.2 branch that uses these new functions: https://github.com/alelievr/HDRP-Custom-Passes/blob/2021.2/Assets/Scenes/CameraDepthBaking/CameraDepthBake.cs#L43 (they also handle correctly aspect ratio of the render texture).

But it's a bit of a mess right now because this branch doesn't compile without the new API + the fix of the RenderList API (it was deleted without being deprecated thus breaking all the custom passes)

turbid matrix
#

yeah, that's exactly the branch I was looking at (from custom passes -repo) 🙂

#

I'll try that expose branch from graphics repo, thanks 🙂

mental kindle
#

Thanks @turbid matrix, but when I'm trying to follow the documentation I get an error that the property I'm trying to create in the Fullscreen Shader is not recognized

#

undeclared identifier '_Color'

#

And when I assign the Fullscreen Shader to a material is just appears as the "default broken pink" color

turbid matrix
#

@mental kindle yeah, pink is expected if there's error with shader

#

pretty sure the example on docs should work as is, at least it did when I did some HDRP PP work last time

#

I'd first implement the exact tutorial on the docs and then try to start modifying it after seeing it's functional

#

also make sure you follow the docs from HDRP version you are using yourself (in case the API has changed)

mental kindle
#

I was able to figure it out, basically I neglected to add the float4 from the properties that I made

analog meteor
# delicate yoke Hi, So i have this model of a cloud. When the camera enters the cloud i want a v...

In this Unity multiplayer game devlog I make it possible to see underwater and add some water fade and water fog effects.
Join the community on Discord: https://tomweiland.net/discord

⮞ Unity's video about Renderer Features: https://youtu.be/5AmI2yOx0Nc
⮞ Roadmap on Trello: https://trello.com/b/vJwk0iwS/pirate-game
⮞ Watch my other devlogs: htt...

▶ Play video
#

hopefully this helps?

mental kindle
#

But I'm having this other issue, when I create a a Custom Pass Volume and switch my HDRP settings to Forward Only on my Lit Shader mode it brings the FPS down to basically 0 and makes the rest of my PC crawl...

#

Also, none of the Layer Masks work, even when I add custom layer masks...

analog meteor
#

is it supposed to take this long? its been like 10 minutes

#

i use an ssd

mental kindle
#

Even out of game mode Unity is using the CPU at 500+ms...

analog meteor
#

it is still installing wow

#

dont think any other installation has taken this long before

#

oh i dont think ive ever seen this before

heavy ice
#

Is Lex4rt on discord?

turbid matrix
#

not that I'm aware of

#

he's very active on the forums though

#

@heavy ice

heavy ice
#

kk i posted the stuff on the forum the, thanks @turbid matrix

turbid matrix
#

@woven sonnetI gave the new api a go, depth capture seems to work nicely now even on custom pass doing ortho capture while main camera is perspective mode 🙂

#

I didn't notice similar popping on depth as before but I didn't do very extensive testing, no funny business so far though

mental kindle
#

Does anyone know why trying to use custom render passes would create such huge CPU spikes?

I feel like I accidentally created some kind of memory leak in Unity...

heavy ice
analog meteor
#

oooh

analog meteor
#

i updated my project to the newest unity beta (with a backup of course) and for some reason shader graph is completely not working

#

all graphs are just normal files, and i cant even create graphs

#

they dont show up in the create menu

#

shadergraph is installed in package manager though

analog meteor
#

nvm i fixed it

#

where did ssao render feature go?

#

(also when is urp 12 set to release?)

woven sonnet
dawn sorrel
#

@heavy icehow to have it ?

slender urchin
#

can anyone help my lighting doesnt work

waxen lantern
analog meteor
#

ohh

waxen lantern
analog meteor
#

that fixes ssao?

#

the new beta

waxen lantern
# analog meteor that fixes ssao?

you can check the release notes, linked here. and you can "watch" this thread to get alerts via email everytime a new alpha or beta is released.. (though the title of the email will always be of the previous version i think because of the order they update the title and the thread) https://forum.unity.com/threads/unity-2021-2-0-beta-2-is-now-available.1059575/#post-7292698

analog meteor
#

oh got it

#

thanks!

#

oh yeah uhh what’s screen space shadows? i saw it in the render features tab

lone berry
#

my post proccessing volume isn't working

#

I have URP

lone berry
#

I have a layer with the layer of the volume selected

#

my volume is set to global

#

it should work

analog meteor
#

is pp enabled on the camera

#

are you using the newest urp (12.0.0)? if so you have to also enable it in your forward renderer asset

spice sparrow
#

this error doesnt seem to have any affect on my game but its annoying

#
Dimensions of color surface does not match dimensions of depth surface
UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Camera)
Mirror:UpdateCamera (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Camera) (at Assets/Scripts/Mirror.cs:152)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)```
#

this is the code its referring to

#
    void UpdateCamera(ScriptableRenderContext context, Camera camera)
    {
        if (camera && MirrorCam)
        {
            UniversalRenderPipeline.RenderSingleCamera(context, MirrorCam);
            RenderPipeline.beginCameraRendering -= UpdateCamera;
        }
    }```
#

the if statement in that is a messy fix to another error but it was softlocking my game so its fine

spring heath
#

I'm trying to add a heat vision mode to my game which uses URP and I need to render everything using a replacement shader.

The shaders I intend to use will make use of the normal maps already applied to objects, so I can't use the Render Objects Render Feature to solve this one.

I also intend on using a 3D-painting asset to create bloodstains which will contribute to both the BaseMap (they'll appear red in Normal Vision) and to the Emission Map (with the Emission Color set to black) (and my replacement shader will make any Emission Texture visible)

Maybe it's possible to append a new pass that uses a new LightMode Tag like "Heat" to the URP lit shader, and then use that shader for every single material, and have some way to trigger the rendering of that pass via a render feature.

I don't know the specifics of how to accomplish this without reverse-engineering these shaders, which are kind of difficult to understand as they differ from other shaders in that they consist mostly of references to other libraries and trying to find a part that applies any actual algorithm is kind of a wild goose chase

heavy ice
heavy ice
#

Some more teasing

stark elbow
#

Does anybody know if there was ever a work around for render texture transparency on URP when using post processing? I'm on 2019.4.19f1
Currently it completely ignores the camera clearing and won't allow transparency unless PP is turned off repost from render pipelines

lone berry
mental kindle
#

Does OnRenderImage work with URP?

ripe ivy
#

I had the exact same problem past week, and this is how I solved

stark elbow
#

good shout! I'll give that a shot, thanks

low summit
#

Does anyone know how to change the settings of the URP Asset during runtime?

I am able to manipulate the settings in Project Settings -> Quality.

But when trying to change anything inside the URP Asset. I am unable to. A lot of those URP asset settings are things I would love to manipulate in code during runtime, for an options menu.

ripe ivy
analog meteor
# low summit Does anyone know how to change the settings of the URP Asset during runtime? I...

Consider donating to help me keep this channel and website alive : https://paypal.me/supportTheGameGuy 💖

In this video im gonna show you how to control and change quality settings of your game (Using URP) during runtime using a dropdown menu. We will be creating a simple settings menu to swap between different quality levels using different ren...

▶ Play video
low summit
# analog meteor https://m.youtube.com/watch?v=OvjiJtnlAs8

That tutorial only shows how to change which URP asset is current being used.

I am wondering if there is a way to access a specific URP asset, and change the individual settings within it

For example, I only want to change the AA setting in Quality, or change the Shadow Resolution option. Instead of changing the entire URP asset

analog meteor
#

var urp = (UniversalRenderPipelineAsset)GraphicsSettings.currentRenderPipeline;
urp.renderScale = 0.1f;

#

change render scale to whatever other option you need @low summit

spring heath
#

@low summit possibly through scripting

#

maybe make a monobehaviour script that targets it and see what comes out?

low summit
#

Sounds great, cheers for that! I will try those out!

fair cave
lavish vault
#

I'm in hdrp and I'm wondering what I can do to mitigate this situation

#

first pic is from the outside of the ship

#

things look great

#

get the nice skybox reflections on the metal

#

but from inside

#

I still get skybox reflections

#

anyone have any tips

analog meteor
#

it’s really dark i can’t tell what’s going on in the picture lol

lavish vault
#

yea...

#

lemme swap the skybox

#

so here's an example of what I am talking about

#

the surface is kind of a shiny metal

#

reflects the sunlight nicely

#

takes color from the skybox

#

all good

#

but once I go inside of it

#

it still reflects the skybox

#

so the cieling of everything reflects the brown ground

#

and the floors reflect the blue sky

#

the sun isn't present tho which is good

#

view looking down the interior of the hull

#

where it's just a bunch of reflected skybox

whole fossil
#

Add & bake reflection probe inside the ship

#

And its pretty much unrelated to render pipelines as it is related to every rp afaik

lavish vault
#

So that won't fly

#

I'll just go with no reflections

whole fossil
#

You can instantiate reflection probe and render it on demand (or in realtime, but I dont recommend it due to performance)

lavish vault
#

Yea but then I'd have to figure out where in the hundred thousand blocks I need to place them

#

Hmm

#

Wonder if I could have one on the camera

analog meteor
lavish vault
#

It's not a mesh

#

And upon further diving I'd have to change my rendering approach

#

As the instanced indirect calls don't seem to support reflection probes

fluid totem
#

Hey guys, sorry for the noob question. I started learning Unity and I'm watching a course where I need to import some assets and extract the textures/materials, but when I do so, everything has a blueish tint. I'm using Unity 2020.3 with the URP, can someone give me some pointers?

vast delta
#

Which Unity version are they using in your course?

noble hemlock
#

I have a question, if anyone can help. I'm attempting to show multiple transparent 3D objects layered around each other, and the transparent object ordering seems to get messed up, which is very apparent when the opacity is 1. Is there a way I could manually assign the render order of each object to avoid this?

#

I think I have an idea, to set the rendering queue so the inner layers are rendered last, and update the queue for the components on the end depending on where the camera is. It's a janky solution, but I think it'll work

noble hemlock
#

Hm, reading up it looks like the easiest option might just be to copy the transparent/diffuse shader I'm using and set ZTest LEqual to ZTest Always, then setting the render queue, so everything will always render regardless if it is being covered or not. It might look like the left image all the time, but at least it won't swap between them randomly

fluid totem
# vast delta Which Unity version are they using in your course?

They're using 2017, but I wanted to use the latest. I don't think this is related to the version but rather that Im using the wrong shaders on URP, the same happens when I import textures from other sites like Poliigon.

I guess my question is more of, what shader to use when creating materials from texture images with normal maps and displacements etc. Can someone link me to a resource on how to creating high fidelity materials on URP?

last gull
#

Does anyone know what might cause standard (non-raytraced!) SSGI not to appear in a standard HDRP template in 2020.3? I tried everything I could think of:

  • Used existing scene in template or created a new scene, made sure no lightmapping was enabled in case baked GI interferes
  • Enabled SSGI to DefaultHDRPAsset
  • Enabled SSGI in HDRPHighQuality / HDRPMediumQuality / HDRPLowQuality
  • Removed all Volumes but one Global Volume pointing to a single Volume asset
  • Enabled SSGI in Volume asset used by Global Volume, made sure to override "enabled" bool to on
  • Made sure my Lit materials have a flag to enable SSR/SSGI
  • Validated that Global Volume has effect - changing any other effect in it has visible effect on my screen, but never SSGI

This has no effect whatsoever, for some reason. The manual also specifies enabling SSGI in something called "frame settings on the camera", but I can't for the life of me find anything like that on the camera - maybe the concept of frame settings is from earlier versions of HDRP?

weary fog
#

There's per camera frame settings and default frame settings in the project settings

#

You probably have to enable it there

rotund quiver
#

Does the Stencil Buffer in a URP Camera Stack get cleared between each camera's renders? Seems like it, but maybe I am just doing it wrong.

The original thread about camera stacking seems to claim "stack preserves stencil."

#

I'd also like to manually render the skybox, not just on the base camera. (I need different angles). I hope I am not condemned to using render targets here.

#

Ah, clear depth also clears the stencil.

last gull
shrewd moon
#

@lavish vault I don't know if you fixed your ship interior problem already, but if you can differentiate interior and exterior materials, you could make the interior material have an ambient occlusion map/value that basically removes cubemap reflections

proper haven
#

Do URP/HDRP support box projected reflection probes yet?

analog meteor
#

i think in the newest beta they added it

proper haven
#

and will URP support screen-space reflections at some point?

turbid matrix
#

I don't think it's on the official roadmap, there are 3rd party assets that do that though

#

@proper haven ^

#

and yeah, URP 12 (2021.2) has now box projection on reflection probes. HDRP has had it all along I think

#

Summary
The Box Projection feature allows you to create a reflection cubemap at a finite distance from the probe, thus allowing objects to show different-sized reflections according to their distance from the cubemap’s walls.

Usecase/Intended Outcome
Normally, the reflection cubemap is assumed to be at an infinite distance from an...

vast delta
lavish vault
#

user created/destructible

#

I may be able to in the future

shrewd moon
lavish vault
#

well I'm going to have to do some sort of floodfill algorithm for airtightness

#

but yea users will definitely have choose over the materials

#

they already have full paintability

sterile mesa
#

To get to HDRP, you must make all your materials standard. But when I highlight my 1,400 materials, I can't change them all at once to standard, do I freaking have to do this by hand?

#

For the Love of God, this would take hours, then I still don't have confidence that it'd work

outer carbon
#

There's an option to upgrade project materials to work with HDRP assuming they're not custom shaders.

sterile mesa
#

yeah, I know this

#

But I have 1400 mats+

#

and...

#

They ain't all standard, many custom

#

I just want to BULK change em all to standard

#

But apparently that option does not exist or I cannot find it.

#

If I seem annoyed, it is just because what is seemingly very basic and easily coded functionality is often missing from UNITY3d

#

Like for instance in DOTS, you have to dance through hoops to assign ENTITIES to a script from the scene, when Gameobjects can be hotlinked,e tc

#

Am I supposed to spend hours changing every material to standard by click, drop down, click, close window, go look for another non standard?

#

Cuz I don't have confidence that will even work since UNITY upgrades are finnicky...

#

This is not a rant, just my concern.

#

Is there a way to highlight ALL materials and change shaders? Or maybe a hack to edit system files on windows explorer to jury rig em?

#

When I ctrl+a all the materials in my project, the shader is greyed out. I think the user should have the option to bulk change every shader to standard.

#

the shader drag down box is greyed out

sterile mesa
#

Let's explore the updated workflow of Unity's most powerful High Definition Render Pipeline(HDRP) using Unity 2019.3
We will also learn how to convert your existing project into HDRP project.
👉Note : This video is mainly for Unity 2019.3 or newer. If you are using 2019.2 or previous version please watch this video first : http://bit.ly/2G73caJ
...

▶ Play video
#

I figured a partial solution... I think it doesn't like mixing old versions and HDRP. So select old version in groups, lets you do more than one at a time is not tedius. 🙂

#

I just wish you could sort your asset by shader type, so I don't have to pick and choose, but this is way way way better than one at a time

#

or heck, even sort all assets that have a certain script or script value... But that is a dif story.

#

I should be working high level design and coding in pro capacity, but eh, my political views aren't enjoyed in silicon valley politics so despite being one of the best of best software engineers and designers, no one wants me on their team.

#

Thanks guys, you help often. without you guys, I'd never have my DOTS MMO almost ready

light spade
#

Did someone get following error in latest Betas?

A non-multisampled texture being bound to a multisampled sampler. Disabling in order to avoid undefined behavior. Please enable the bindMS flag on the texture.
I guess it's related to URP which we're using, but I'm not sure.
Everything is OK in 2021.2.0b1, but this error spams the Console in 0b2 and 0b3

#

The moment I add Camera to new Scene it starts spamming

heavy ice
dawn sorrel
#

I am new in pipelines can I get some help? in the beginning I want to make sure i am using a pipeline how do I do that?

eternal laurel
#

You need to get the package you want from the package manager. Create a pipeline asset and put it in the right slot in the graphics tab. Or start a new project and select the urp or hdrp temolates and everything will be configured

dawn sorrel
#

thank you

#

i will download and create since i dont want to redo things in my project

eternal laurel
#

If you started with the default your materials will be broken and you will need to upgrade them. Both hdrp and urp can upgrade standart shaders but custom ones will need some recoding. Keep that in mind

dawn sorrel
#

I have just installed the package ... but i can't find it to put it in the graphics tab where do i find it

eternal laurel
#

Google how to set it up

dawn sorrel
#

I did . they only said to install it.. which i did... then I went to project settings -> graphics.. but i didn't see a URP file to put there

#

oh found my problem

#

sorry and thank oyu

#

is there an automatic way to redo the materials or do i create new ones?

iron halo
# sterile mesa I just want to BULK change em all to standard

or smartly you can write your own script.
you can do it easily if you have hdrp package, but your srp asset in project settings as none.
you can simply write an editor code to do the conversion and after all of em are coverted just simply apply the srp asset and youre good to go

dawn sorrel
#

DONE

#

time for the tutorials

#

thank you again @eternal laurel

shrewd moon
#

Which does work if your thousands of materials use shaders the converter recognizes

#

I would've thought there was some way to filter assets by shader though

wraith blaze
#

Anyone here know hdrp very well,i am having some performance issues and would like some help please

dawn sorrel
#

how do I make a pbr graph file ... i cant see the option, am I watching old videos and it has been renamed to something else? (i did install the shader graph package)

gritty socket
#

Is it possible to fix the weird shinyness on the backfaces?

icy galleon
#

using urp with 4k shadow resolution with soft shadows, and the player's shadow is still noticeably jagged..... and anything below 4k looks absolutely disgusting. can someone help?

#

I have a max shadow distance of 10 btw (and anything lower cuts off the shadows)

#

here's the shadow with 2048 shadow resolution btw..... pretty sure it shouldn't look that bad

analog meteor
#

use cascades

analog meteor
dawn sorrel
analog meteor
#

wdym

#

just click on lit shader graph?

dawn sorrel
#

sorry dudn't; see your message ... i will upload a picture @analog meteor

analog meteor
#

alright sounds good

dawn sorrel
#

can't take a screenshot..

#

but anyway

#

the option " pbr graph" ISN'T THERE

#

I can see blank shader graph

#

unlit shader and about 7 more

#

but none of them is the pbr

wind fox
#

back in Unity 5/Early SRP PBR was still used to denote the difference between the old legacy pipeline and the new snazzy URP one

#

Since Legacy has been phased out, the PBR name was dropped in favour of Lit

dawn sorrel
#

I see .. thank you @wind fox

wind fox
#

You're welcome

#

Custom Renderer Features: I've been toying around with Unity 2021.2 and I tried to use the DrawFullscreenQuad feature, available in the Unity samples; it worked up until Unity 2021.1 but it doesn't work anymore

#

are you aware of any fuck-ups /radical changes that have been pushed into 2021.2

#

?

dawn sorrel
#

me??

#

I am new into all the rendering pipelines

#

😅

shrewd moon
# dawn sorrel

Look under the "Universal Render Pipeline" submenu
Assuming that's the pipeline you're on

shrewd moon
# gritty socket Is it possible to fix the weird shinyness on the backfaces?

The shinyness looks to be ambient reflections that affect the front and backfaces equally
If your material is smooth, it'll reflect its environments by sky or cubemap
If the sky/cubemap is bright below the leaves, the reflections will be bright
An occlusion value/map can be used to control the intensity of ambient reflections, you could add an occlusion map that's darker near the stems of the leaves so the reflections won't be so bright in the crevasses or on the undersides

#

Or you could make the undersides simply have a darker occlusion value

#

To apply different settings to the undersides you'd have to use a shader to check if the face is backfacing, or you can make the leaves one-sided and instead duplicate inverted versions of the leaves in a modeling program, then apply a different material to them

gritty socket
#

@shrewd moon Thank you! I managed to fix it by using a isFrontFace node so when a face isn't front facing, it's shinyness would be 0

sharp scroll
#

Hi guys! Bit of a technical question here, how would you reduce overdraw in a scene with lots of small objects in it in URP? I'm thinking about something like Valheim's building system, where you build out of individual objects. I was wondering about using some sort of depth based occlusion culling system, or is there a solution in unity already / do you know some good assets to use / or perhaps some other interesting solution? 🙂 Thank you in advance!

gritty socket
#

This shader effect looks fine in the editor, however is completely opaque in game

#

Anyone know why?

sharp scroll
#

you may need to enable the depth texture in the render pipeline settings

summer glacier
#

Anyone has experience with cached shadows in HDRP?

#

How do you cache directional light shadows for an entire scene/small terrain?

#

Setting it on enabled seems to only cache a small portion that's in view when it gets enabled and that's it. The majority have no shadows at all

wind fox
#

Opaque items don't cause overdraw

eternal laurel
celest ice
#

anyone know if there's an issue with DrawProceduralIndirect (or maybe the VertexID node) with DX12/Vulkan?

#

it only seems to be working for DX11 to me

#

using HDRP 12 / unity 2021.2.0b3

#

drawing VertexID on a normal mesh looks the same

#

frame debugger looks the same

#

(left is dx11, right is dx12)

#

seems like it's this custom function that doesn't work

struct Vertex
{
    float3 Position;
    float3 Normal;
    float4 Tangent;
    float2 Uv;
};

StructuredBuffer<Vertex> _Vertices;

void GetVertex_float(in uint vertexId, out float3 position, out float3 normal, out float3 tangent, out float2 uv)
{
    Vertex vert = _Vertices[vertexId];
    position = vert.Position;
    normal = vert.Normal;
    tangent = vert.Tangent.xyz/vert.Tangent.w;
    uv = vert.Uv;
} ```
#

maybe an issue with using StructuredBuffer in a vertex shader?

#

err nvm it's not that

#

DrawProceduralIndirect doesn't seem to get that far

#

just using randomized positions for vertices doesn't do anything either

#

(in dx12/vulkan)

wind fox
celest ice
#

dx11 shows

#

that's with the builtin pipeline, so maybe i'm in the wrong room (it's an issue in HDRP too)

#

it works in 2021.1.11f1 😦

#

guess i'll report a bug with 2021.2 unless anyone has a better idea

sharp scroll
shy thorn
#

Hello 🙂
what is the correct way to make URP SimpleLit shader support DrawMeshInstancedIndirect API, with full support of baked/Runtime lights ... ?

lavish vault
#

you have to write the code for taking an instance ID, and looking up your matrix in structured buffer

lavish vault
shy thorn
# lavish vault https://discord.com/channels/489222168727519232/497874081329184799/8537309523749...

sorry i think i should have given more details 🙂
I am creating my own hybrid rendering package based on DOTs + DrawMeshInstancedIndirect API.
I have a very basic knowledge about shaders and hlsl.
I am trying to:

  1. create a hybrid renderer that generically overrides materials properties. support vulkan and openGLES 3.0+ (maximum 4 Compute buffers per stage). (DONE!)
  2. make it support whatever is supported by the URP shader - SimpleLit. (partially done)
    the problem i am facing now now is, how can i apply overriden properties values ( like BakedLightmap, lightProbes ..) that ive got from passed ComputeBuffers to the my custom simpleLit shader ?
lavish vault
#

I'm getting these super weird artifacts?

lavish vault
lavish vault
#

is this some sort of post processing affect here?

lavish vault
#

wow

#

it was motion blur

potent ingot
#

When using Camera Stacking in URP, is it possible to render the image from a specific Base camera including all overlays in its stack into a render texture? So far, I've only been able to get the base image. My use case includes rendering UI to screen + streaming it over WebRTC (1). I found a forum thread asking the same question, but alas OP has yet to receive a response, which leads me to believe I am screwed. https://forum.unity.com/threads/how-to-capture-to-a-render-texture-a-full-camera-stack.1021930/

Workarounds are welcome. So far I thought about the following two:
i. Instead of using camera stacking, render everything into a render texture and then use it both to display stuff on original device and send it over WebRTC (2). The problem here would be input routing, since I need to be able to control the UI from original device (as well as via WebRTC using a proxy).
ii. Use world-space UI. This could be nightmare since I need to support multiple resolutions. I will also be moving to UIElements in the coming months and I am not sure if it even supports world-space UI.

wind fox
frank pewter
#

anyone know how to upgrade from URP to HDRP? I'm having some problems doing so

scarlet hull
frank pewter
#

I'm on 2019.4.9

scarlet hull
frank pewter
#

I'll check that out, thanks. is that what's causing the issue with invisible materials?

scarlet hull
#

Probably

main trellis
#

hello, want to ask, is rtx 3060 good enough or decent for ray tracing in unity?

next crystal
#

is this component used in URP?

turbid matrix
#

@frank pewterthere's no easy upgrade from URP -> HDRP unless all your materials are using Shader Graphs (in which case you can just open your shader graphs and add URP target to them)

#

using SG's for your materials does make it way easier to move between different renderers since you can have all three renderers supported there now, even built-in if you use 2021.2 (still in beta)

#

you still have to config all lights, camera settings and volume settings per pipeline but main pain is from the material setup

turbid matrix
#

you can use raytracing with it for sure, but it will not compare well to 3060 Ti even when it comes to performance

dawn sorrel
#

I need help with materials if anyone is free

long wagon
dawn sorrel
#

yes but i can't see anything

#

like i have the material

#

not so different from the normal material

#

but i dont have name property to work with or anything

scarlet hull
dawn sorrel
#

how do I edit them in code?

main trellis
long wagon
#

@dawn sorrel There, you have _BaseColor instead of _Color

dawn sorrel
long wagon
#

Just _BaseColor one. URP shaders are weird with properties sometimes.

turbid matrix
#

it's entry level RTX card from current lineup, so you can't expect wonders

dawn sorrel
long wagon
next crystal
#

Will this option actually reduce the graphical quality?

dawn sorrel
wind fox
next crystal
#

i dont think im using any color nodes

wind fox
#

That option refers to the Opaque Texture, take it as some sort of screenshot unity takes each frame after drawing the opaque objects and the skybox

next crystal
#

mmh

wind fox
#

that screenshot is not the final texture that gets drawn on the screen, take it as something grabbed on the go

#

it's used when you want to apply distorsion effects, like heatwaves

next crystal
#

gotcha

wind fox
#

If you're not going to use that Texture in your project you can safely turn it off and ignore the downsampling options

next crystal
#

I would like to go for maximum graphic settings

#

and then just downgrade as needed

#

Oh wow why is the ambient occlusion in URP in the forward renderer data!?

next crystal
#

is there no realtime GI in URP?

#

in 2021.1.14

sturdy orchid
#

What are Render Pipelines? What's the default state of a project? is it no Render Pipelines?

next crystal
#

or it should be thonk

#

This is released as alpha in URP 12 (21.2)

iron flame
#

It's about Enlighten GI. Alpha clip is not supported. By Real time changing the alpha clip value in Shader . I was thinking of doing things like the GI effect of doors. it didn't work.

frank pewter
turbid matrix
#

all manual labor

#

unless your write some editor script to do it for you

#

but someone has to write that script too

shrewd moon
next crystal
#

Wait, is there anotehr realtime GI thats as good or better as enlighten right now?

brave wharf
#

hey i have a question

shrewd moon
brave wharf
#

basically im trying to use a spot light with URP but i cant see it

#

like there is no light coming out or some

#

with directional light there is however not with spot light

#

can i use spot light in URP or only directional?

#

bc i want to use a spot light

next crystal
#

@shrewd moon fair enough; guess im waiting for a release

scarlet hull
next crystal
turbid matrix
#

@next crystal Enlighten for HDRP (and URP) requires 2021.2, yes

scarlet hull
#

https://forum.unity.com/threads/update-on-global-illumination-2021.1067015/
Quote :

we will continue to support Enlighten Real-time GI. Our team will maintain Enlighten as-is, without adding any new features, until Unity 2024 LTS ends. As part of this plan, we will add support to URP and will re-enable support for HDRP. Additionally, we will extend the platform reach of Enlighten Real-time GI to Apple Silicon, Sony PlayStation(R) 5 and Microsoft Xbox Series X|S platforms.

next crystal
dawn sorrel
#

Can anyone tell me why are there two render camera pass?

scarlet hull
# dawn sorrel

Do you have a dynamic reflection probe, or a planar reflection probe ?

frank pewter
#

why am I getting this error? I have the HDRP asset already in the SRP settings

turbid matrix
#

do check Window->Rendering->HDRP Wizard

#

or where ever that is on your version

frank pewter
#

yeah, this is what it looks like

scarlet hull
#

Also look at the SRP asset(s) assigned in the different quality levels.

frank pewter
#

the one I have assigned at the moment uses the HDRenderPipelineAsset as well

turbid matrix
#

you don't have to have SRP assets assigned on the quality levels but if you do have URP asset there, it will override it

#

so, should def check that place too

frank pewter
#

I reinstalled the pipeline and uninstalled the URP package from the package manager and that seems to have worked

#

thanks!

keen pivot
#

am i right in assuming the typical 'mesh combine' script used in unity actually works against the SRP batcher in HDRP?

keen pivot
#

it reduces the setpass count, and shadow casters by around 70% but runs 10fps slower at runtime and seems to double the vert count

dawn sorrel
little badger
#

Im using universal render pipeline to add lightining to my 2d game but the light goes through walls or doesnt collide with them, im new to 2d, how could i fix this?

frank pewter
#

how do I reset the HDRP default settings tab?

spring shale
#

I'm trying to use vulkan on linux

#

to use HDRP

#

and my scene looks like this

#

game looks like this

#

seems something is off? with scene for sure

turbid matrix
#

@spring shale your exposure values are off

#

it has nothing to do with Vulkan/Linux

#

do this to get better starting point: run Windows->Rendering->HDRP Wizard (or where ever that HDRP Wizard is on your HDRP version), make sure you get it all green with "fix all"

#

then create a new scene with Unity Editor and pick HDRP outdoor scene templates there (or whatever it's labeled on your version)

#

this will create a new scene for you with volume component and directional light set to have functional values together (light has high intensity and volume has exposure + sky exposure preconfigured for this)

trail flower
#

can any good soul tell me why HDRP needs 5 render targets when I disable all the possible effects/shadows/pp? I understand that the number of RTs during the gbuffer phase changes according the effects using, in fact I can go up to 7 RT, but why I cannot go lower than 5? I have nothing enabled, I literally need just lighting with normal and color, why is the extra unused data computed anyway?

magic raven
#

(using URP) anyone know what this error means, possible causes, and possible fixes?

spring shale
#

is URP ready for use for a beginner?

spring shale
#

instead of trying to upgrade a 3D one to it

proper haven
#

I really hope Unity gets equivalents for Lumen and Nanite. Lumen alone is making me consider swapping to UE5, since procedural games in Unity look like ass without any real-time bounced lighting (and no, ssgi is not a good enough solution)

drowsy cosmos
#

Is there any way to get rid of shadow acne in real time URP lighting? I've tried every solution I've seen online, even in fresh URP project files and nothing has worked. Does Unity have a plan to fix this in future version of URP?

#

Settings I'm using:

shrewd moon
#

It certainly is a tricky thing

icy galleon
shrewd moon
#

@drowsy cosmos What kind of results do you get with depth and normal biases at 1

drowsy cosmos
spring shale
#

is URP worth it for your first 3D game?

#

I've done shaders in glsl

#

I want my game to look nice and modern

#

but I don't want pain

shrewd moon
spring shale
#

when I'm dealing with plenty other pain learning other parts of unity

#

yes

drowsy cosmos
spring shale
#

I don't want extra pain that I could avoid

#

hmmm ok

shrewd moon
#

All of the options are pain
Just different kinds

spring shale
#

yeah

proper haven
spring shale
#

my friend was saying that urp is missing docs

#

ok

proper haven
#

It's very similar but with more options

spring shale
#

that's what I assumed

proper haven
#

And less things that you need to import

spring shale
#

but hard to get simple info like that

#

on the differences

#

I'm going to work with URP today

#

and see if I can make a simple shader or two

proper haven
#

URP comes with more post processing options, better camera settings, etc. It's basically just the 3d pipeline but with a whole bunch of very useful imported packages

spring shale
#

right

proper haven
#

I haven't done much GLSL work, so I can't help you there

#

Though I don't think that will have changed much

spring shale
#

glsl doesn't apply really

#

I was just saying

#

I'm not a complete noob

#

and I like math lol

proper haven
#

If you want, try using HDRP if you're feeling ballsy

spring shale
#

it sounds like that's better if you have a big team

proper haven
#

If you want things like screen space reflections, you need to use it

spring shale
#

I don't have that

proper haven
#

Not really tbh, it's just URP but with even more stuff that you may or may not want to use

spring shale
#

I want my game to look modern but I'm not trying to compete with nanite xD

#

hmm

#

the breckeys video made it sound like overkill

proper haven
#

Also screen space reflections look really, really good on floors and HDRP supports them and URP doesn't.

drowsy cosmos
spring shale
#

that's probably more advanced that I need rn

#

but thanks for sharing about it though

shrewd moon
#

@drowsy cosmos The settings that work for me are option A: both biases at 1
No acne but shadow has holes around fine detail

#

Option B: shadows in small crevasses and details are gone, but no shadow holes

proper haven
# spring shale that's probably more advanced that I need rn

I think brackeys made it seem more daunting than it actually is, because you don't actually lose anything when you move from URP to HDRP (HDRP can be URP if you want it to, but URP cannot be HDRP), but it's probably a good idea to start off with URP otherwise you'll get hit with a whole load of stuff and it might get overwhelming.

#

I mean some stuff in URP isn't in HDRP but for the most part that's true

spring shale
#

yeah trying to keep the overall learning curves as low as possible

#

but high enough to actually learn something useful

#

and just get the first game out there

shrewd moon
spring shale
#

yes

#

that's a good descriptor

shrewd moon
#

Personally I find URP's documentation clearer than built-in RP's
As some parts of the built-in documentation are nearing a decade in age

spring shale
#

small team, first game

#

20 years programming experience enterprise

proper haven
#

I don't think there is a particularly good reason to use built-in RP over HDRP or URP

spring shale
#

and strong math background

shrewd moon
#

But the thing is, if you want to use the graphical features, you'll have to learn them

spring shale
#

for me

#

that's fine

proper haven
#

It really depends on what you intend on making

spring shale
#

I've done graphics programming in c++

#

no problem

proper haven
#

Suit the tech to the game, not the game to the tech

drowsy cosmos
spring shale
#

I mean I figure this chat would be a good place to get help too 🙂

proper haven
#

Also I'm pissed off that enlighten is just dead

drowsy cosmos
#

I'll give those a try and post a picture as soon as it loads back up

proper haven
shrewd moon
proper haven
spring shale
#

love his work

#

very up my alley for sure

proper haven
#

Holy shit I had no idea they brought back enlighten

drowsy cosmos
#

@shrewd moon Depth and normal bias at 1:

shrewd moon
#

Ah that sucks
If you increase depth now, would it get rid of that

drowsy cosmos
proper haven
#

Wait can Enlighten work on procedurally generated scenes or is it only for moving lights in static scenes?

drowsy cosmos
#

Depth at 5.9

shrewd moon
proper haven
#

So it's semi precalculated

#

So I don't think it'll work for a procedurally generated world

shrewd moon
#

I don't know about that

drowsy cosmos
#

This was about the best I could get it, but it seems like even if I get it looking okay for a sec, the sun just moves a little more and it looks bad again

proper haven
# drowsy cosmos This was about the best I could get it, but it seems like even if I get it looki...

"In the Unity Editor, Enlighten Realtime Global Illumination splits the Scene into small surface patches, and determines the degree to which these patches are visible to each other. At runtime, Enlighten Realtime Global Illumination uses this precomputed visibility information to approximate how the Realtime Lights bounce in the Scene, saves the results in a set of lightmaps, and then uses these lightmaps to apply indirect lighting to the Scene."

shrewd moon
#

Unless you have some way to generate static geometry

proper haven
#

So I think I need something like SEGI (which only works for built in RP)

shrewd moon
#

SEGI?

shrewd moon
proper haven
#

If you've played around with Minecraft shaders, you'll have heard of SEUS

#

Sonic Ether made a realtime GI system for unity a while back

drowsy cosmos
proper haven
shrewd moon
drowsy cosmos
proper haven
#

Minecraft is inherently really hard to make look good without Ray tracing

proper haven
#

Assuming you haven't done that yet

drowsy cosmos
proper haven
#

If not then you can use enlighten to solve your problem

drowsy cosmos
#

No, it just has a day night cycle

proper haven
#

Then yeah, Enlighten should work.

#

You just need to wait for 2021.2

#

Or try out the beta which I think is out

drowsy cosmos
#

We're also using netcode though so we're kinda stuck on 2020.3 until netcode has LTS for 2021 versions 😅

proper haven
#

Then you don't really have many options, unfortunately.

drowsy cosmos
#

ikr 😔

proper haven
#

Then, as my father used to say, just sit down, take a deep breath, and give up.

#

Or move to UE5

#

That's what all the cool kids are doing these days

shrewd moon
#

I've always seen some shadow issues but never so much at once as with Rob

drowsy cosmos
proper haven
#

Your indoor areas might look pretty bad, but you should be able to salvage the outdoor scene by screwing with your ambient light colours until it looks somewhat realistic.

#

But yeah large areas that aren't directly lit by the sun won't look brilliant unfortunately

drowsy cosmos
proper haven
#

Without any form of light bounce, shadows will always look very intense unless you have a bright ambient light, since effectively the only lighting is the first bounce from the sun and shadows are otherwise pitch black.

#

You've just kinda gotta make it work with what you have, which unfortunately isn't much.

shrewd moon
#

I can't think of reasons why my scene isn't suffering of the same issues

proper haven
drowsy cosmos
#

That's what gets me about it. It seems like other people aren't experiencing this as badly

proper haven
drowsy cosmos
#

I've had it maxed out for all my screenshots

#

I've tried lowering it too but that doesn't solve it either

shrewd moon
#

Doesn't make a difference on my end either

spring shale
#

@shrewd moon @proper haven @drowsy cosmos so a little info on my game, I can't give the concept away but it is a 3D 3rd-person game, (semi) open world set in cities, to give some context

#

has GTA elements you could say (though is in no way a clone)

proper haven
#

What style of graphics are you going for?

spring shale
#

well, probably not low poly

#

at least sort of decent

#

we have 3d scanning tech

#

check this out

#

that took me about a minute to scan

#

so getting high quality assets is no problem for us

proper haven
#

You should have a mental image of the artstyle you want

#

The most important aspect of a game visually is the artstyle

spring shale
#

see above

drowsy cosmos
spring shale
#

a tree I scanned

#

again, about a minute to do

shrewd moon
#

@drowsy cosmos my "max distance" is 50
How about try that

proper haven
# spring shale see above

Isn't that just a photogrammetry scan? That's not really an artstyle, since depending on how you did the lighting that would heavily change the look of your game.

spring shale
spring shale
#

art style would probably be something close to GTA 5

#

but nowhere near that polished or detailed

drowsy cosmos
proper haven
shrewd moon
spring shale
#

yeah, we probably will be doing something along those lines

#

low-poly and highly stylized I guess, but not suuuuuuuper low poly

proper haven
#

A good example of stylising would be Windwaker or Team Fortress 2. Those games are extremely low poly with fairly plain textures, but hold up extremely well in the present day visually, compared to games from the same era.

shrewd moon
spring shale
#

gotcha

proper haven
#

Another good example of a stylised game is Hades.

spring shale
#

yeah we in the phase of planning this kind of thing

#

for our art

#

we are storyboarding

#

and making assets here and there

drowsy cosmos
spring shale
#

while also experimenting getting the game mechanics made

proper haven
#

If you want your game to stand out, come up with something unique in terms of artstyle. Hades got traction because when people looked at it, they thought "wow, I've never seen a game that looks like that before".

shrewd moon
drowsy cosmos
#

I'll record something real quick

shrewd moon
#

Ah, I can imagine

#

Sawtooth type motion, isn't it

drowsy cosmos
#

Yup

proper haven
#

Also, there's a GDC talk that I can't remember the name of, but it's basically saying: do your art and detailed models AFTER you make basic gameplay mechanics, specifically movement tech. Use temporary art, or even just graybox maps and a capsule for characters, for as long as you want. Artstyle can wait.

drowsy cosmos
#

Still this seem to be at least an improvement from what it was

#

I'm also noticing some partial pop in on the shadows as I get closer to them

#

But only some of them? Which is kinda odd

proper haven
drowsy cosmos
#

Okay I just set the normal bias back to 0 and that seemed to help too. It's actually getting pretty close to passable at runtime now. I had never seen anyone recommend turning down max distance but it's definitely helping so far

proper haven
#

Just fuck with the settings till it looks good

drowsy cosmos
#

Hmmmm. It's not gone, but it is less noticeable than before. It becomes more noticeable at certain times of day as the angle of the sun changes. The trade off seems to be that shadows behave a bit strange as you approach them now.

proper haven
#

That's basically how this entire game dev thing works lmao

drowsy cosmos
#

Yeah the most noticeable issue is the sawtooth movement at the edges at this point I think

proper haven
#

Increase your shadowmap res

drowsy cosmos
#

It's maxed out

proper haven
#

okay then IDK

#

sry

shrewd moon
#

@drowsy cosmos One last thing I'd check is that are your buildings using real world scales of 1 unit = 1 metre?

drowsy cosmos
#

Actually nvm, this particular building isn't even scaled in the scene

shrewd moon
#

Only scene scale matters

spring shale
#

ok, I'm just messing around with stuff right now and I tried to load Windridge City into just the URP template project

#

I know it's an old asset/scene

#

but I got it to load fine in just the 3D template project

drowsy cosmos
spring shale
#

right

#

how do I do that?

#

in mass

#

for something like this

drowsy cosmos
spring shale
#

my guyyyyyyyyy

#

thanks

drowsy cosmos
#

np

spring shale
#

interesting

#

that seemed to get me half way there

drowsy cosmos
#

Yup

#

Unity will upgrade the mats that it's familiar with, but stuff like nature manufacture materials, or other 3rd party materials, it doesn't know what to do with those

spring shale
#

ah

drowsy cosmos
#

So it won't upgrade them

#

So that's where URP compatibility comes in.

spring shale
#

gotcha

#

mostly when using other people's assets?

#

is compat an issue

drowsy cosmos
#

For each broken mat, just check to see if they have a URP version of that asset. If they do you'll wanna use that. If not, you'll need to either upgrade it yourself (not your best bet) or find another mat that works

spring shale
#

and that really only comes up when you use someone else's mats

#

yeah?

drowsy cosmos
#

Yup, for the most part

spring shale
#

yeah, I don't think we plan to do too much of that

#

the team is 2 full time coders and 1 full time 3D modeler / texture artist

spiral timber
#

why rendertocubemap report error ?
[Error : Unity Log] RenderTexture.Create failed: width & height must be larger than 0
The destination of rendertocubemap was created using integer value(4096) as sidelength

next crystal
#

Why can we create this if its empty?

indigo summit
#

is CustomPass with MotionVector still can't work together?

turbid matrix
#

it's merged already

indigo summit
#

is it included in beta3 already?

turbid matrix
#

nope

#

merged 5 days ago

indigo summit
#

welp 🥲

turbid matrix
#

so, give it few weeks

indigo summit
#

yeah i'll wait for the next release then

turbid matrix
#

you can of course merge that change yourself to b3 version

#

if you want to try it out

indigo summit
#

nah i'll wait 😅

spiral timber
#

why rendertocubemap get two exactly same images in stereoscopic mode?

shrewd moon
indigo summit
turbid matrix
#

@indigo summit are you using the fps example from the custom passes -repo?

indigo summit
#

modified version of it

turbid matrix
#

@indigo summit so the issue is that the gun area gets movecs that shouldn't be there, right?

#

in which case, getting access to the readonly movec buffer doesn't really help you at all, what you'd want to do instead is override the movecs that are on that gun area

#

which you can already do with additional movec pass

#

I dunno if you can do that via custom pass but def can do with custom postprocessing pass

#

I wonder if you could do it on the gun render pass too with right settings

indigo summit
#

@turbid matrix
yeah that the only thing which i'm not sure how to handle it yet.
at least i manage to find a work around for the decal issue.
Just the Movecs now

indigo summit
#

kinda lost on this part

turbid matrix
#

you could just write zero value in the shaders movec pass

#

actually, that approach doesn't even require custom pass at all since you can put the queue with shader tag like in that example

indigo summit
#

so it require custom written object shader then?

turbid matrix
#

it requires custom shader yes

#

with wheels, that approach had separate cage mesh for this

#

if you change the weapon fov to be different than main camera fov, you can't just naively do it on regular shader though

#

so, would need some custom pass solution still then

indigo summit
#

interesting, i'll check it out.

#

i do remember in built in RP i do need custom movecs pass for viewModel rendering

turbid matrix
#

the old style movec pass shader still works in HDRP, just need those few changes I mentioned on the forum post

#

but for whatever reason, it's only additive thing

#

you can't use that PR's change to fully override movecs

indigo summit
#

ooh

turbid matrix
#

I dunno why they don't allow that, even as option because it would often be beneficial to be able to spoof the whole thing

sterile mesa
#

How do you get PEAK speed from HDRP? HDRP= 27 FPS in a scene that in Standard Render = 70 FPS

I am bringing HDRP in for soon updates in different levels to be ready, however, it is slowing down all my old zones. So I want to strip all options down to bare minimal to run my old zones as fast as possible to get closer to the Standard Renderer's FPS.

Any tips?

Right now I'm just randomly clicking check marks and making values 0, then running to see if I get any FPS improvement. I got about 1.4 FPS peak more so far doing that. I will continue, but I wonder if there is a list of all check marks to check and stuff to turn it to maximize Frames per second performance. I don't want to revert, my world editor is proud of his work:

#

Starfighter General HDRP, but FPS 1/3 what standard render

turbid matrix
#

sounds about right

sterile mesa
#

I have a beast of a computer and I'm only rendering like 12 objects on the screen

#

Not that scene

#

And its only 27 FPS

#

Is HDRP just not ready for modern computers?

turbid matrix
#

it is, but your scene is horribly heavy if it only runs 70fps on built-in with modern computer

#

HDRP is also a lot heavier out of the box

sterile mesa
#

in editor

turbid matrix
#

you also can't make HDRP run as fast as built-in or URP

sterile mesa
#

Maybe I should see a way of seeing FPS in live game, maybe it is passible

#

HDRP is the future tho right?

#

I'm making a game for the long haul.

#

Olento, this is extremely valuable info

#

We spent about a week porting my game to HDRP

#

I want to see if I keep running with it or revert

turbid matrix
#

yeah, I get that, you can try disabling feats from the HDRP Asset to see if it helps but you will be losing most of the eye candy

#

HDRP also scales down quite badly on weaker hardware

#

so if you run it on say, mid tier laptop, it's a no go

sterile mesa
#

How do yo disable feats from asset? Like every individual asset?

turbid matrix
#

I mean your HDRP Asset(s)

sterile mesa
#

No this is for upper quality desktops, like last 4 years and medium + vid card

#

So I highlight em and disable... K, this is extrodinarily good info

turbid matrix
#

just toggling the feats off from scene itself doesn't stop HDRP from reserving resources for the feats, you have to turn them off from HDRP asset itself or from frame settings

sterile mesa
#

Any easy way to get frames per second via script?

#

Or a hot key to display in game?

#

I wanna see what a standalone looks like...

#

maybe 27 FPS in editor is passable, most people say it scales by 2x

#

Could I calculate by putting a count in update, then waiting for a second to pass, and displaying total?

turbid matrix
#

there are profiling tools that do that, or just use stuff that unity itself reports

#

Time.deltaTime etc

sterile mesa
#

kk ty

#

Every update is a frame right?

#

monobehavior update in one single script

#

I should be good to go. Thanks bro. I learned a lot.

#

If you ever see me making 100s of millions and you find me on the street, don't pull a gun for money, just a pen, and I'll write a check. lol

sterile mesa
#

Already upped my FPS by 7 by changing random menu items

lavish vault
#

you probably won't get from 27 fps to something playable just with settings tweaks

#

see if you have any areas with high overdraw

sterile mesa
#

I got to 35 fps and when it plays it normally 2.5x as many

#

so we good

#

My problem now is skyboxes

#

I need to know how to make an HDRI skybox, or rotate it vertically.

#

Once I get a skybox, I update my game today 🙂

#

Ok I hope someone answers. Gonna go to the grocery store for vegetables and fruits, had mild kidney failure and if you don't treat it fine and recover, you die a painful death, so I treat it serious, so no more burgers,pizza, fries til kidneys fully heal.

#

I'll be back in about 1-2 hours. God bless everyone.

proper haven
proper haven
#

It depends entirely on what you do with it

spring shale
#

some of my animations are messed up after switching to URP

#

hmm

#

ok I fixed it by switching it to "unity model"