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 / GetImage Bug

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 20th Jan 2009 20:42
Hi,
The dbGetImage command has a bug in it. It does not return the size of the image you actually want.

e.g
dbBox(100,100,200,200);
dbGetImage(100,100,200,200);

the image returned should be 100x100 but the image it returns is a different size.

Thanks,
Alex

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 20th Jan 2009 21:46
What texture flag did you use? 1 or 0?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 20th Jan 2009 21:47
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 20th Jan 2009 21:48
You might try a 1.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 20th Jan 2009 21:58 Edited at: 20th Jan 2009 21:59
Yea that works, Thanks! it should default to that flag I dont know why you would want a different size image to the one you asked for

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Jan 2009 14:03
Quote: "I dont know why you would want a different size image to the one you asked for"

Unless you specify otherwise, it rounds sizes up to a power-of-2, which is generally faster when using the image for rendering.

Login to post a reply

Server time is: 2024-11-25 11:37:23
Your offset time is: 2024-11-25 11:37:23