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 / This still doesn't work! post patch2

Author
Message
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 22nd Oct 2002 02:00
This still doesn't work! am i doing something wrong here? has something changed in the way 'set matrix tile' works or is 'prepare matrix texture' still knackered?



i give up!
What the flame does not consume, consumes the flame.
----------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Pro
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 22nd Oct 2002 02:02
BTW this works fine in DB v1.13

What the flame does not consume, consumes the flame.
----------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Pro
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 22nd Oct 2002 02:47
According to your code you have a single BMP file (test.bmp) that has 2500 induvidual textures on it - is this right?

Why do I assume this? Because you use:

prepare matrix texture 1,1,TILE_SIZE,TILE_SIZE

Where TILE_SIZE is set to 50. That means you're expecting to find 50 images across and down in your test.bmp which should be chopped up into the tiles for texturing. Now either this is correct and you really have done it like this, in which case I cannot test this without you sending (or posting) the test.bmp file - or you're thinking that 50 equals the size in pixels of each tile, this isn't the case.

More info needed please.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
xtom
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 22nd Oct 2002 02:48
Prepare matrix texture seems to have it's tile numbers mixed up now.
xtom
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 22nd Oct 2002 02:50
Here's my code Rich, I seem to be getting jumbled tiles.


sync on : sync rate 0

rem Create matrix
load image "face.bmp",1
make matrix 1,200,200,4,4
position matrix 1,-50,20,-50
prepare matrix texture 1,1,4,4
for z=3 to 0 step -1
for x=0 to 3
inc t
set matrix tile 1,x,z,t
next x
next z
update matrix 1

rem Setup camera
position camera 50,170,50
point camera 50,0,50

do
sync
loop

Login to post a reply

Server time is: 2024-04-19 08:01:17
Your offset time is: 2024-04-19 08:01:17