Gamestudio Links
Zorro Links
Newest Posts
long time to load data
by qin. 12/29/25 14:06
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
ZorroFix. ini /data and /log path
by Martin_HH. 12/19/25 21:02
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (vicknick, bigsmack), 3,191 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
MATERIAL TANGENT #385128
10/13/11 11:17
10/13/11 11:17
Joined: Oct 2005
Posts: 57
P
picoder Offline OP
Junior Member
picoder  Offline OP
Junior Member
P

Joined: Oct 2005
Posts: 57
In the manual:

TANGENT
Calculates the u tangents for the 3rd texture coordinate set (TEXCOORD2). This has the same effect as defining matTangent in a shader, and allows shaders to convert vectors to tangent space. The binormal vector (v tangent) can be calculated by the vertex shader from the cross product of the vertex normal and the u tangent. On animated models the tangents need to be recalculated every frame, affecting the frame rate, so don't use this flag unnecessarily.

So, do the models which are animated by GPU bones shader need to be recalculated every frame too?

Re: MATERIAL TANGENT [Re: picoder] #385130
10/13/11 11:19
10/13/11 11:19
Joined: Jul 2000
Posts: 28,044
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,044
Frankfurt
No. The CPU does not animate the model in that case and does not recalculate the tangents. They are anyway only calculated when it is really necessary.

Re: MATERIAL TANGENT [Re: jcl] #385131
10/13/11 11:30
10/13/11 11:30
Joined: Oct 2005
Posts: 57
P
picoder Offline OP
Junior Member
picoder  Offline OP
Junior Member
P

Joined: Oct 2005
Posts: 57
OK. Thanks for your answer.


Moderated by  old_bill, Tobias 

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