Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Material Tangent flag not setting properly #50220
07/25/05 03:20
07/25/05 03:20
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline OP
Expert
Rhuarc  Offline OP
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
I find it hard to believe that I'm the only one getting this, but I've tested it on over 5 systems with nearly any form of shader and level set up, the results are always the same...

When loading a level, if there is a shader, whether loaded via effect_load or added inline into the script via "effect" in the material, the shader will NOT receive any form of tangents from the engine if it is visible immediately upon level load.

For example, I have a simple sphere with a normalmapping shader applied. If I place a camera in the level so that the instant the level is loaded, this object is visible- then it doesn't get anything in the tangent texcoord, (it just gets float3(0,0,0) ). However, if I place the camera in a fasion that the object is not visible upon load, and wait a moment after level load before rotating the camera to see the object- everything works fine. To make matters more confusing, if I place a sleep instruction at the start of the object action to wait before loading the shader- it does nothing for the situation. It seems if the shader is seen in the same frame it is initialized, it does not receive tangents.

I've run this on Win2000, WinXP Home, and WinXP Pro, all the same results.

-Rhuarc


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: Material Tangent flag not setting properly [Re: Rhuarc] #50221
07/25/05 03:35
07/25/05 03:35
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Yes this problem has been noted before i think.. the quick fix is just set my.frame+=1; in the object's action..i dont know why this works but it does.

If this doesnt fix your problem then i dont know...

Re: Material Tangent flag not setting properly [Re: Matt_Aufderheide] #50222
07/25/05 04:15
07/25/05 04:15
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline OP
Expert
Rhuarc  Offline OP
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Very interesting, I will try it

EDIT: Okay, that worked perfectly. I've been beating my head for hours on this upon many occasions... should have said something sooner, haha. Thanks!

-Rhuarc

Last edited by [Rhuarc]; 07/25/05 04:18.

I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: Material Tangent flag not setting properly [Re: Rhuarc] #50223
07/26/05 13:35
07/26/05 13:35
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I confirm this. However it should not happen anymore in the beta version.

Re: Material Tangent flag not setting properly [Re: jcl] #50224
07/26/05 22:46
07/26/05 22:46
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline OP
Expert
Rhuarc  Offline OP
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Great to hear JCL .
Thanks!


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog

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