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 / Possible Bugs in Matrix and Vector functions?

Author
Message
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 18th May 2003 11:21
Hmmm... I wonder does anyone notice about the following bugs in the matrix and vector functions of DBpro.

BUG #1:
=======

DESCRIPTIONS: Make Matrix4 will overwrite the vector that you had created.

EXAMPLE:
result = Make Vector4(1)
Set Vector4 1, 10, 20, 30, 1

result = Make Matrix4(1)
Set Identitiy Matrix4 1

RESULTS:
As you can see, it is obvious that the vector will have value of (10, 20, 30, 1). This is true before the matrix is created. After that, when you check the vector value, you will get the value (1, 0, 0, 0). Strange eh? My guess is the matrix construction had somehow overwritten the value of the vector.


BUG #2:
=======

DESCRIPTIONS: Multiply Matrix4 with a scalar value seems doesn't work.

EXAMPLE:
result = Make Matrix4(1)
Set Identitiy Matrix4 1
Multiply Matrix4 1, 1.5

RESULT:
Technically this is equivalent as calling
Scale Matrix4 1, 1.5, 1.5, 1.5

But it seems that the Multiply Matrix4 command doesn't do anything to the matrix, i.e. the matrix values remain unchange.


Finally, does anybody knows how to check whether a vector or matrix4 already exist or created? Something like the function Object Exist() to check whether the object of the specified index exists or not.


Thanks!
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 19th May 2003 20:17
Silence... hmmm....

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th May 2003 20:27 Edited at: 19th May 2003 20:27
Well, I can confirm the first one, but don't know how to confirm the second.

As far as I know, there isn't a way to check if they already exist, but as you can safely create a vector/matrix that already exists, it doesn't really matter much

Don't forget to email [email protected] so he can fix it for patch 5.

Login to post a reply

Server time is: 2026-07-11 22:24:42
Your offset time is: 2026-07-11 22:24:42