Horde3D

Next-Generation Graphics Engine
It is currently 21.12.2024, 15:06

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 18.05.2015, 17:35 
Offline

Joined: 21.10.2012, 15:32
Posts: 18
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 22972 times ]
File comment: Figure 1
1.jpg
1.jpg [ 296.9 KiB | Viewed 22972 times ]
Top
 Profile  
Reply with quote  
PostPosted: 19.05.2015, 06:12 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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.


Top
 Profile  
Reply with quote  
PostPosted: 19.05.2015, 06:53 
Offline

Joined: 21.10.2012, 15:32
Posts: 18
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?


Top
 Profile  
Reply with quote  
PostPosted: 19.05.2015, 18:58 
Offline

Joined: 21.10.2012, 15:32
Posts: 18
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 22949 times ]
Top
 Profile  
Reply with quote  
PostPosted: 19.05.2015, 22:02 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group