Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Weird artifact with image on 3D plane objects

Author
Message
DrkTemplar
12
Years of Service
User Offline
Joined: 18th Aug 2011
Location:
Posted: 12th Sep 2011 22:46 Edited at: 13th Sep 2011 00:42
I created a 3D plane object and set the size to 32 x 32.

I then created my own texture that was 32 x 32 to use for the players character in the game.

However when I look at the object in the game, there seems to be a line across the top of the image. I've checked the image many times, and tried to delete these markings even when i didn't see them. However it always shows.

I will continue to try and edit the image file itself in case for some reason there actually is colored there, but I don't see any when I look.

Has anyone else had this issue before? Any ideas?

Thanks


*Edit: I tried changing the TextureWarpMode to clamp and that seem to fix the problem.



However, I don't understand exactly what the iMipMaps param was for. I set to 1, and it seem to work, but not sure how that really affects the texture.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 13th Sep 2011 19:52
Quote: "However, I don't understand exactly what the iMipMaps param was for. I set to 1, and it seem to work, but not sure how that really affects the texture."

I guess that is for enabling/disabling the mipmap mode. If it works like in DBPro, '1' means disabled, that means no texture distortion at all, which is the thing to do for such a tiny 32x32 one.

Login to post a reply

Server time is: 2024-04-20 04:40:29
Your offset time is: 2024-04-20 04:40:29