Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Normalmap flip problem [Re: pesseba] #167120
11/15/07 20:12
11/15/07 20:12
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
I dont have any specific dll for this.. i do it in my SPhere Engine dll


Sphere Engine--the premier A6 graphics plugin.
Re: Normalmap flip problem [Re: pesseba] #167121
11/15/07 20:44
11/15/07 20:44
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
The coordinate was added to the engine:
V7.05.1b beta - released 6-Aug-2007

So, I am sad to say that you are out of luck with A6.

I don't call createTangents... So I do this to the FX file.

Global declare:
float3x3 matTangent;

Change the vertex input struct:
float4 tangent : TEXCOORD2;


Then this code in the shader:
tbnMatrix[0] = mul(IN.tangent.xyz, matWorld);
tbnMatrix[1] = mul(cross(IN.tangent.xyz, IN.normal), matWorld)* IN.tangent.w;
tbnMatrix[2] = mul(IN.normal, matWorld);

Eric

Page 2 of 2 1 2

Moderated by  Blink, Hummel, Superku 

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