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 / Plain Texturing - Size?

Author
Message
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 4th Nov 2013 16:40
Hello,
if i create a plain object with the size of 1, what is the "perfect" texture size, so the texture doesnt get stretched or something?

dbMakeObjectPlain(X,1);
dbTextureObject(X,Y);

Image Size? Or Texture Mode? How does it work?
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 4th Nov 2013 20:38 Edited at: 4th Nov 2013 20:55


That is what i mean. Left side is the texture size 32x32, then 64x64, 128x128.
How can i set the texture to not be "blurred" resized? i want it to be pixel style :/

Texture Flag "1" on LoadImage doesnt change anything...
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 5th Nov 2013 03:11
Okay got it working.
With dbSetObjectFilter(iFloorObject, 0);

granarout
11
Years of Service
User Offline
Joined: 2nd Jan 2013
Location:
Posted: 7th Nov 2013 12:32
Shaders can be used quite easily to do this, set Min/Mag/Mipfilter to NONE on the sampler2D.

Login to post a reply

Server time is: 2024-03-29 08:55:54
Your offset time is: 2024-03-29 08:55:54