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.

Bug Reports / Matrix4 and Vector

Author
Message
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 10th Apr 2006 17:41
These are totally local in some cases. They don't work between functions or even gosubs sometimes. Too bad too as I could really use some global versions of these commands at bare minimum they need to work between gosubs. Getting distances from vetors is many time faster than sqrt. But when you have to create them each test it is a little slower than sqrt.

Why does the vector3 work with this code:


And not in this code (warning this code requires the DKShop plugin (http://forum.thegamecreators.com/?m=forum_view&t=67196&b=5)as DBP doesn't have a way to extract matrix4 elment data. Also uses the media from the advanced terrain demo. You can just copy the code overthe example 1 demo.



And I know this is a feature request but it would be nice to have a function to actually get the matrix4 element values like this by Dmitry K:



Instead of having to use a 3rd party plugin for such.

If nothing else it needs to be added to the help files that these commands are totally local.

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 10th Apr 2006 18:09
Found out why. I had 1 matrix4 numbered 1 and one vector3 number 1. Change the vector3 to number 1 and it works. Now why can't matrix4 and vector3 have the same number? This may also need to be added to the help files.

spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 10th Apr 2006 18:28
From bottom of U6 release notes;

Quote: "
It it vital that when specifying vector and matrix indexes, that they be unique. Using an index of one for a vector and a matrix will overwrite the former, and create confusing results. Ensure you treat these indexes like resources to be used individually, perhaps assigning them to constant declarations.
"


Was already posted as a bug recently, can't remember who though.

Boo!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 10th Apr 2006 18:33
LOL I read that too. I also ran a search for matrix and vector, yet found nothing. I need some sleep, but I have to stay up another 16 hours or so lol. This can be rejected with a hopeful addition to the request board/thread/list for when we do requests about the global(if possible) and the ability to get matrix4 data.

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Apr 2006 19:29
Wish I'd looked at all the posts before wading through the code! (Perhaps I'd better get on with digging the garden after all...)
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 10th Apr 2006 19:32
I never pass up a chance to look at code.

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Apr 2006 19:36
Me too! Now I really must get out there and dig before it gets dark. Perhaps I could just look at one more bug report first ...

Login to post a reply

Server time is: 2024-03-19 04:09:19
Your offset time is: 2024-03-19 04:09:19