Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, Akow, AndrewAMD), 1,505 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Keywords #142312
07/20/07 01:24
07/20/07 01:24
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Anyone know of a complete list of semantics that can be used in GameStudios
shaders?

I am converting some shaders and, I ran across a "WorldInverseTranspose" matrix.
I know about the "matWorldInv" matrix in GS, but how can I use it to create a
transposed matrix for a GS shader?

Any takers?


Not two, not one.
Re: Keywords [Re: Grafton] #142313
07/20/07 02:10
07/20/07 02:10
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
i think you can view it in the 3DGS Manual.

Thanks.

Re: Keywords [Re: ACKNEX007] #142314
07/20/07 03:01
07/20/07 03:01
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Thanks for the suggestion, but I have looked there many times and have not
found a complete list...

Anyway, here are the predefined engine matrices that I am aware of;

float4x4 matWorld;
float4x4 matWorldInv;
float4x4 matWorldView;
float4x4 matWorldViewProj;
float4x4 matView;
float4x4 matViewInv;
float4x4 matProj;
float3x3 matTangent;

Anyone have any ideas on how to transpose the matWorldInv matrix to create a
WorldInverseTranspose matrix, so I can finish my conversion?


Not two, not one.
Re: Keywords [Re: Grafton] #142315
07/20/07 04:01
07/20/07 04:01
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
oh..ok.
Thanks for the reply..

i will post here if i get something. :-)

Re: Keywords [Re: Grafton] #142316
07/20/07 20:56
07/20/07 20:56
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Use the intrinsic function 'transpose(m)' to calculate the transpose of matWorldInv like so :
Code:
 
transpose(matWorldInv);



Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Keywords [Re: frazzle] #142317
07/20/07 22:40
07/20/07 22:40
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Thank you Frazzle! It works fine.


Not two, not one.
Re: Keywords [Re: Grafton] #142318
07/21/07 08:05
07/21/07 08:05
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Quote:

Thank you Frazzle! It works fine.




Np, good luck on converting the shader

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB

Moderated by  Blink, Hummel, Superku 

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