RenderView renders postprocessing effects twice to the main screen
2 replies, posted
Looks like this.
[img_thumb]http://a.imageshack.us/img839/4600/82886223.png[/img_thumb]
Doesn't matter how I use it. And yes, I know how to disable pp effects.
Just tell me how to fix this.
It's just rendering the motion blur weird is all. Easy to fix.
Wrap your renderview like so..
[lua]
RADAR_THING_RENDERING_VIEW = true
render.RenderView( yourview )
RADAR_THING_RENDERING_VIEW = false
--Then add this hook
hook.Add( "GetMotionBlurValues", "Disableblur", function( x, y, fwd, spin )
if RADAR_THING_RENDERING_VIEW then
return 0, 0, 0, 0
end
end )
[/lua]
It should still allow motionblur to function correctly. It just disables the motionblur before it draws the view, then enables it again.
Thanks, I didn't know these hooks exist.
I hope this doesn't only apply for the gmod-intern postprocess-effects, but also for the source-engine motion blur.
Sorry, you need to Log In to post a reply to this thread.