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 / I think there's a bug in Prepare Matrix Texture

Author
Message
Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 17th Mar 2003 02:48
I've patched DBPro to 3.1 and have had some 'fun' trying to get the Limit Rush demo to work (Rob K knows ).

The LoadMatrix code which the demo uses, in which the Prepare Matrix Texture command is used to slice up the bitmap, doesn't appear to slice it up into 128x128 tiles but rather a percentage size smaller than what the user asks for with the command.

This appears to be held out when I shrank the used in the demo to 300x300 (it was orignally 384x384) and hard-coded into the LoadMatrix routine a set of numbers rather than using the values from the .mdf file which contained the terrain data, and the same thing happened again.

Anybody got a workaround for this or am I going crazy and doing something really odd (which I don't think I'm doing this time!
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Mar 2003 02:56
TDK man asked me to update my drivers and try a 512 x 512 image as the texture.

I still get these errors but cant verify its my code or a bug.

here is a screenshot of the lines i get in my matrix if its similar to your problem.



Necrym
23
Years of Service
User Offline
Joined: 4th Sep 2002
Location: Australia
Posted: 17th Mar 2003 09:58
Yes there is and it is now fixed in patch 4 due out soonish.

Watch the bouncing cursor - now in 3d
Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 17th Mar 2003 20:20
Thanks Necrym.

It was beginning to really annoy me last night as I tried all different ways to get it to work and in the end gave up and decided to post it here just in case anybody else knew about it.
Muddleglum
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: New Zealand
Posted: 18th Mar 2003 02:27
if it is not in fact fixed in patch 4, the alternative is a small program which redraws the original bitmap to another bitmap , to which the textures are then assigned. In a for/next loop you 'copy' the FULL area of each original tile to a slightly smaller area on the new bitmap, (each new tile centered on the proper position )
It made a greatimprovement- especially when cutting up a really detailed image into many tiles.

cheers.
Necrym
23
Years of Service
User Offline
Joined: 4th Sep 2002
Location: Australia
Posted: 18th Mar 2003 03:07
It is fixed in patch 4 ive tested it so you wont hav that problem again

Watch the bouncing cursor - now in 3d
Muddleglum
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: New Zealand
Posted: 18th Mar 2003 06:04
thanks Necrym.

Login to post a reply

Server time is: 2026-07-11 12:01:08
Your offset time is: 2026-07-11 12:01:08