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.

Dark GDK / db SetEffectConstant commands

Author
Message
Fallout
17
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 3rd May 2012 18:06 Edited at: 3rd May 2012 18:10
Edit: This was a thread about setting vectors, but I'm being a fool. I've used these successfully myself before, so they must work. I must just be doing something wrong. Will continue banging my head against the wall and try and suss it out.

Fallout
17
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 4th May 2012 16:50
For reference, I had created a 4float vector in ID 1 and a 3 float vector in ID 1 also. I believe because these are different types of vector, they have their own ID sequences and therefore this is valid. However, when I was using the dbSetEffectConstantVector command, I wanted to pass my 3 float vector. Instead it was passing my 4 float vector.

Lesson: dbSetEffectConstantVector() only works with 4 float vectors.

Brendy boy
14
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th May 2012 17:18
Quote: " I believe because these are different types of vector, they have their own ID sequences and therefore this is valid."

no, they all use the same sequence, so if you create a vector3 with id 1 and then matrix4 with the same id, matrix will overwrite vector3 and vice versa

Fallout
17
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 4th May 2012 17:49 Edited at: 4th May 2012 17:51
Interesting. Thanks for the clarification. Either way, the problem seemed to be the sending of a 3 float vector. I'll check into that to make sure.

Login to post a reply

Server time is: 2019-11-17 20:15:37
Your offset time is: 2019-11-17 20:15:37