Gamestudio Links
Zorro Links
Newest Posts
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 1,458 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Modify matWorldViewProj #339782
08/29/10 10:18
08/29/10 10:18
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline OP
Expert
Puppeteer  Offline OP
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
I am currently working on wii VR headtracking and in order to simulate it correctly i have to mutiply the projection matrix with an additional matrix i created in order to create the final projection matrix.

But i have no idea how to do it or if that is even possible.
Has anyone any hints ideas or does even now a solution?

Thanks


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: Modify matWorldViewProj [Re: Puppeteer] #340140
09/01/10 08:46
09/01/10 08:46
Joined: Jul 2007
Posts: 53
Germany
Henning Offline
Junior Member
Henning  Offline
Junior Member

Joined: Jul 2007
Posts: 53
Germany
Hello Puppeteer,

it is possible, but the number of columns of the left matrix need to be the same than the number of rows at the right one. Or you can use
mat_multiply(float* matrix1,float* matrix2).

look here:
http://de.wikipedia.org/wiki/Matrix_%28Mathematik%29#Matrizenmultiplikation (german)

or here:
http://en.wikipedia.org/wiki/Matrix_%28mathematics%29#Matrix_multiplication.2C_linear_equations_and_linear_transformations
(english)

Re: Modify matWorldViewProj [Re: Henning] #340215
09/01/10 22:15
09/01/10 22:15
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline OP
Expert
Puppeteer  Offline OP
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Thank you.
My question more directed into "how do i access the projection matrix?" because the only method i could think of before was using a shader. But i already found a better solution:
Use a material for the view with an event that modifies the matProj with the help of the functions inluded with the d3d9.h and set the material flag ENABLE_RENDER
The event will be called right after the matrices are calculated so i can change them.

[Problem solved]


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1