odd texture error causing wrap around?

Started by lawless_c, February 28, 2014, 01:13:08 AM

Previous topic - Next topic

lawless_c

I've run into this odd quirk with a texture i loaded, to demonstrate it i have replaced the texture with one a bit more simple. when i view the textures in an editor they look fine, however loading them into jpct causes the a chunk of the left side to be cut of and moved to the right side.

Here is the texture

Here it is being rendered.



If you are wondering about the fuzziness it's because i haven't got shaders set up entirely correctly yet.

EgonOlsen

#1
What am i seeing there? What is this texture being used for in the final image? Is it a kind of backdrop? About the fuzziness...looks like as if the texture coordinates are perturbed by some shader...does your shader apply an offset to coordinates?`That would also explain the shift to the left.


lawless_c

final text is intended to be planet ring, however i swapped it out with the red and white one to make it easier to perceive the problem.

EgonOlsen

Quote from: lawless_c on February 28, 2014, 09:55:30 AM
It's the shader from this demo.
And that's the reason...that shader modifies the texture coordinates based on a normal and a height map. If it's a planet ring, i see no point in using this shader for it at all. I wouldn't use any special shader for it and rely on the default shaders and it should be fine.

lawless_c

Yup, that was it, functions perfectly now.