Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 08:27

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 17.02.2012, 16:03 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
I've modified model.shader to add a clamp mode to the albedo sampler to test something (I was seeing texture seams on objects).

Anyway, when I set clamp mode, I'm seeing streaks of texture across the face of the geometry, where as I was expecting the textures to be pretty much the same, aside from fixing my seam issues.

So, maybe I'm confused, but shouldnt the clamp mode actually just clamp texture address ranges outside the 0..1 space? As far as I know all my texcoords are within 0..1 so they really shouldnt be a problem. Actually, I doubt the clamp would have any effect on the problem now I think of it.

But still, what is making "clamp" geometry streaky instead of properly textured?


Top
 Profile  
Reply with quote  
PostPosted: 18.02.2012, 11:08 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
You are likely getting these streaks because the texture v coordinate is getting mirrored in the model shader, so that (compressed) dds textures which use the D3D coordinate system conventions work properly with OpenGL.

If you get texture seems, you could try using Point filtering for comparison to see how bilinear filtering affects them.


Top
 Profile  
Reply with quote  
PostPosted: 21.02.2012, 14:09 
Offline

Joined: 24.03.2010, 10:17
Posts: 55
Yes, we had the same issue lately.
For this particular case we changed the model.shader's texcoord mirroring (at several places) from
Code:
newCoords.t *= -1.0;
to
Code:
newCoords.t = 1.0-newCoords.t;
This fixed our problem.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 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