Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 959 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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