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 / Plains turn out white

Author
Message
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:05
I have been fiddling with some plains, no matter what I do they keep being white and sometimes grey, oh I managed to color the object red with the color object command but I cannot get the texture to appear :-( I attached a picture



The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Feb 2012 13:15 Edited at: 16th Feb 2012 13:18
Are you sure that your textures are loading properly?

Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:16
Which interger might that be Pincho?

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Feb 2012 13:19
Quote: "Which interger might that be Pincho?"


Yeah I just noticed that all of your integers are in the Function, so it must be the textures not loading properly.

Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:22
But I use one of the images from one of my sprites as a temporary texture to rule out that possibility

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Feb 2012 13:26 Edited at: 16th Feb 2012 13:29
make object plain tile_number,1,1

What's with the scale 1,1? The scale should match the image size in pixels. Well that's what I do anyway... 32*32.

Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:29
oh, I thought there was a difference in 3D units and pixels, just a sec

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:35
I changed the plains to 32x32, that just made some bigger white plains

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Feb 2012 13:38 Edited at: 16th Feb 2012 13:41
Oh. The only other idea I have is that you might delete the image and forgot, or you jump to the function before you load the image, or you are using the sprite number instead of the image number.

Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:42
Nope, no deletion, I load the images at the start of my program, and I use the image number, not the sprite number

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Feb 2012 13:43
I'm out of ideas, it always works for me.

CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Feb 2012 13:46
Also, if an image is asked to be loaded, for example:



And it can't find the image, DarkBasic can sometimes just pass over the error and an "invisible" image gets created that doesn't actually work...


Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:46
WOW WOW WOW WAIT A MINUTE! It suddenly hit me, I was not totally sure that I was loading the images before map creation, and I did not! Thank you Pincho!

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Feb 2012 13:47
Thank you CumQuaT, also nice to know Pincho have solved it

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...

Login to post a reply

Server time is: 2026-07-09 21:19:36
Your offset time is: 2026-07-09 21:19:36