Horde3D
http://horde3d.org/forums/

Deferred Rendering Pipeline Issues
http://horde3d.org/forums/viewtopic.php?f=2&t=1522
Page 1 of 1

Author:  Orm [ 05.05.2011, 17:59 ]
Post subject:  Deferred Rendering Pipeline Issues

The best way to describe the problem is with a screenshot.
I am using the stock deferred pipeline that is currently in the SVN, no modifications whatsoever. And if my memory serves me well, I am having this problem on both machines that I work with. This one currently has an Intel GMA 4500HD chipset and my other machine has an nVidia 470 GTX. Both machines render the scene in the same way.

Here is the log dump. Please note that the invalid resource handle error is part of a separately processed structure that has nothing to do with the scene currently being rendered:

Code:
0.000    Initializing GL2 backend using OpenGL driver '2.1.0 - Build 6.14.10.5303' by 'Intel' on 'Mobile Intel(R) 4 Series Express Chipset Family'
0.001    Renderer: No multisampling for render targets available
0.166    Invalid resource handle in h3dAddNodes
0.553    Loading resource 'Mengin/pipelines/forward.pipeline.xml'
0.555    Loading resource 'Mengin/pipelines/deferred.pipeline.xml'
0.556    Loading resource 'Stages/C_Maze/graph'
0.557    Loading resource 'pipelines/globalSettings.material.xml'
0.559    Loading resource 'materials/light.material.xml'
0.560    Loading resource 'Mengin/models/skybox/skybox.geo'
0.562    Loading resource 'Mengin/models/skybox/skybox.material.xml'
0.563    Loading resource 'Mengin/models/platform/platform.geo'
0.565    Loading resource 'Mengin/models/platform/stones.material.xml'
0.567    Loading resource 'textures/ambientMap.dds'
0.571    Loading resource 'shaders/deferredLighting.shader'
0.571    ---- C O M P I L I N G  . S H A D E R . shaders/deferredLighting.shader@COPY_DEPTH[0] ----
0.577    Shader resource 'shaders/deferredLighting.shader': ShaderLog: [Linking]
No errors.
0.579    Loading resource 'shaders/skybox.shader'
0.582    Loading resource 'models/skybox/skybox.dds'
0.586    Loading resource 'shaders/model.shader'
0.588    Loading resource 'textures/models/layingrock.jpg'
0.701    Loading resource 'textures/models/layingrockBump.tga'
0.802    Loading resource 'shaders/utilityLib/fragDeferredRead.glsl'
0.802    ---- C O M P I L I N G  . S H A D E R . shaders/deferredLighting.shader@AMBIENT[0] ----
0.809    Shader resource 'shaders/deferredLighting.shader': ShaderLog: [Linking]
No errors.
0.815    Loading resource 'shaders/utilityLib/fragLighting.glsl'
0.815    ---- C O M P I L I N G  . S H A D E R . shaders/deferredLighting.shader@LIGHTING[0] ----
0.885    Shader resource 'shaders/deferredLighting.shader': ShaderLog: [Linking]
No errors.
0.887    Loading resource 'shaders/utilityLib/vertCommon.glsl'
0.887    ---- C O M P I L I N G  . S H A D E R . shaders/skybox.shader@AMBIENT[0] ----
0.898    Shader resource 'shaders/skybox.shader': ShaderLog: [Linking]
No errors.
0.900    Loading resource 'shaders/utilityLib/fragDeferredWrite.glsl'
0.900    ---- C O M P I L I N G  . S H A D E R . shaders/skybox.shader@ATTRIBPASS[0] ----
0.911    Shader resource 'shaders/skybox.shader': ShaderLog: [Linking]
No errors.
0.913    Loading resource 'shaders/utilityLib/vertSkinning.glsl'
0.913    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@ATTRIBPASS[4] ----
0.952    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
0.952    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@SHADOWMAP[0] ----
0.964    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
0.964    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@LIGHTING[4] ----
1.005    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
1.005    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@AMBIENT[4] ----
1.047    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
1.049    Loading resource 'textures/common/defnorm.tga'
1.052    Loading resource 'Mengin/models/woodencrate001a.scene.xml'
1.053    Loading resource 'Mengin/models/man/man.scene.xml'
1.055    Loading resource 'Mengin/models/platform/platform.scene.xml'
1.056    Loading resource 'Mengin/models/skybox/skybox.scene.xml'
1.058    Loading resource 'Mengin/models/woodencrate001a.scene.xml'
1.059    Loading resource 'Mengin/models/drum001a.scene.xml'
1.060    Loading resource 'Mengin/models/woodencrate001a.geo'
1.062    Loading resource 'Mengin/materials/woodencrate001a/mat_woodcrate001a.material.xml'
1.064    Loading resource 'models/man/man.geo'
1.067    Loading resource 'models/man/civilian1.material.xml'
1.067    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@ATTRIBPASS[1] ----
1.132    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
1.132    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@SHADOWMAP[1] ----
1.181    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
1.181    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@LIGHTING[1] ----
1.251    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
1.251    ---- C O M P I L I N G  . S H A D E R . shaders/model.shader@AMBIENT[1] ----
1.317    Shader resource 'shaders/model.shader': ShaderLog: [Linking]
No errors.
1.319    Loading resource 'models/platform/platform.geo'
1.320    Loading resource 'models/platform/stones.material.xml'
1.321    Loading resource 'models/skybox/skybox.geo'
1.323    Loading resource 'models/skybox/skybox.material.xml'
1.324    Loading resource 'Mengin/models/drum001a.geo'
1.325    Loading resource 'Mengin/materials/drum001a/mat_drum001a.material.xml'
1.327    Loading resource 'Mengin/shaders/model.shader'
1.327    ---- C O M P I L I N G  . S H A D E R . Mengin/shaders/model.shader@ATTRIBPASS[0] ----
1.348    Shader resource 'Mengin/shaders/model.shader': ShaderLog: [Linking]
No errors.
1.348    ---- C O M P I L I N G  . S H A D E R . Mengin/shaders/model.shader@SHADOWMAP[0] ----
1.361    Shader resource 'Mengin/shaders/model.shader': ShaderLog: [Linking]
No errors.
1.361    ---- C O M P I L I N G  . S H A D E R . Mengin/shaders/model.shader@LIGHTING[0] ----
1.387    Shader resource 'Mengin/shaders/model.shader': ShaderLog: [Linking]
No errors.
1.387    ---- C O M P I L I N G  . S H A D E R . Mengin/shaders/model.shader@AMBIENT[0] ----
1.411         Shader resource 'Mengin/shaders/model.shader': ShaderLog: [Linking]
No errors.
1.413         Loading resource 'models/man/civil01.jpg'


Attachments:
File comment: Deferred renderer. Very dark. The light is not being rendered. Blurry.
h3ddeferredissues.PNG
h3ddeferredissues.PNG [ 267.21 KiB | Viewed 9181 times ]

Author:  Orm [ 11.05.2011, 12:37 ]
Post subject:  Re: Deferred Rendering Pipeline Issues

just so you guys know, i am still interested in getting help with this problem ;)

Author:  Volker [ 11.05.2011, 20:12 ]
Post subject:  Re: Deferred Rendering Pipeline Issues

Since you're using the SVN trunk, can you try to go backwards in the revisions and check if there's a version that does not have this problem?

It seems that you're running the chicago sample in a slitly modified way (no crowd sim?). Can you provide a patch that represents your changes on the chicago sample? Or is also happening with the original sample?

Author:  Orm [ 11.05.2011, 22:07 ]
Post subject:  Re: Deferred Rendering Pipeline Issues

More like heavily modified. this is running in my game engine that I have been developing (will post about at end of quarter, end of may). I've just been using the art horde came with as placeholder art. Nevertheless, the pipeline and shaders are all the same. i'll try going through the revisions and see if that fixes it.

also, off the top of your head, what are some reasons that the output would be blurry? note, the pipeline compiled successfuly.

Author:  worstplayer [ 12.05.2011, 13:10 ]
Post subject:  Re: Deferred Rendering Pipeline Issues

Blurry output: did you ResizePipelineBuffers and set camera's ViewportWidthI and ViewportHeightI?

Author:  Orm [ 21.05.2011, 23:38 ]
Post subject:  Re: Deferred Rendering Pipeline Issues

That was the problem.The pipeline buffers weren't being resized. New problem is that the Deferred renderer is just plain broken. HDR works though, in all its eye-raping glory. :lol:

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/