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.

DarkBASIC Professional Discussion / Disable texture smoothing?

Author
Message
jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 13th Sep 2010 18:24
Hi,

In Dark Basic, when texturing an object, the texture gets smoothed. Is there a possibility to turn it off?

Thanks,

Jeff

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 13th Sep 2010 18:37
It's determined by how you load/grab the image.

From the help files:
Quote: "LOAD IMAGE Filename, Image Number, Texture Flag

Texture Flag

Integer
A zero will treat the image as a texture and one will preserve pixel perfect quality, two will load as a cubemap texture and three as a volume"


So if you use the texture flag of 1 like the following code snip to load an image it won't blur.



GET IMAGE has the same texture flag if you use that instead.

jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 13th Sep 2010 19:54
@Grog:

Thanks, but that won't work, because the object is pre-textured in 3DS max. Any other ideas?

Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 13th Sep 2010 22:49
" SET OBJECT FILTER obj_number , 0 "

Login to post a reply

Server time is: 2026-07-22 22:07:27
Your offset time is: 2026-07-22 22:07:27