Horde3D
http://www.horde3d.org/forums/

How to improve the quality of rendering?
http://www.horde3d.org/forums/viewtopic.php?f=1&t=2278
Page 1 of 1

Author:  jacmy [ 18.05.2015, 17:35 ]
Post subject:  How to improve the quality of rendering?

I found that the objects far away from the camera will be vague, as shown in Fig.1.

However, when i move close to the objects, the rendering become normal. (Fig.2).

How to adjust the parameters in H3d to improve the rendering? Thanks.

Attachments:
File comment: Figure 2
2.jpg
2.jpg [ 30.8 KiB | Viewed 13268 times ]
File comment: Figure 1
1.jpg
1.jpg [ 296.9 KiB | Viewed 13268 times ]

Author:  Volker [ 19.05.2015, 06:12 ]
Post subject:  Re: How to improve the quality of rendering?

Looks a bit like Z-fighting. Can it be, that your model has two planes with a very small distance between them?
If yes, you may check if it would be possible to enable backface culling. Another possibility may be to adjust the projection matrix to have a smaller distance between near and far clipping plane. And you may also check the precission of your depth buffer. Make sure it is 32bit.

Author:  jacmy [ 19.05.2015, 06:53 ]
Post subject:  Re: How to improve the quality of rendering?

Volker wrote:
Looks a bit like Z-fighting. Can it be, that your model has two planes with a very small distance between them?
If yes, you may check if it would be possible to enable backface culling. Another possibility may be to adjust the projection matrix to have a smaller distance between near and far clipping plane. And you may also check the precission of your depth buffer. Make sure it is 32bit.


Thanks. there is the phenomenon that two planes with a very small distance between them.

By the way, how to acheive the backface culling or projection matrix adjustment through the pipeline files or other configurations? Could you give me some details?

Author:  jacmy [ 19.05.2015, 18:58 ]
Post subject:  Re: How to improve the quality of rendering?

I try to adjust the pipelines and shaders following "http://www.horde3d.org/wiki/index.php5?title=Shading_Technique_-_Linear_Depth_Buffer"


the z-fighting disappears, however, the following appears as shown in fig.1

Attachments:
1.png
1.png [ 276.47 KiB | Viewed 13245 times ]

Author:  Volker [ 19.05.2015, 22:02 ]
Post subject:  Re: How to improve the quality of rendering?

The distance between near and far clipping plane is configured by the camera scene node.
Regarding culling I'm currently not sure, if we ever had added an engine option for that. You may want to search for GL_CULL_FACE within the engine's source code.

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