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 / 3DMATHS void dbViewMatrix4 ( int Matrix4result )

Author
Message
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 17th Jun 2008 19:39
I want to set up a viewmatrix. Is this the correct way?

dbMakeMatrix4 ( 1 );
dbViewMatrix4 ( 1 );


After doing this and

dbTransformVector4 ( 1, 0, 1 );

it seems as if matrix 1 is still a zero matrix because vector 1 ends up all 0.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 17th Jun 2008 20:46
Wuh?

If you can do any models for FW, reply to the FleetWars thread.

Click here!
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 17th Jun 2008 20:49
what is it you dont understand?
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 17th Jun 2008 20:51
A lot of things. Why is my avatar Beavis... why I'm so smart yet still so stupid, why I can figure out "advanced" trigonometry, yet not simple things like this.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 17th Jun 2008 20:53
cant help you there, sorry
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 17th Jun 2008 20:55 Edited at: 17th Jun 2008 20:56
No one can. I'm an idiot who learns on his own.

You can't really expect me to know this, anyway... I'm not even in high school yet.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 17th Jun 2008 20:56
Great. So can you help me please?
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 17th Jun 2008 21:35
I had used a Vector4 to hold the coordinates. It works with a vector3:

Great.
Now I can position an object at a fix position relative to the camera. That took some time...

Login to post a reply

Server time is: 2024-11-20 13:28:36
Your offset time is: 2024-11-20 13:28:36