Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Vertex shader failed to compile

Author
Message
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 28th Nov 2015 21:48
Hi,
when trying to load a simple 3D model with bone animation , I get the following message: "Vertex shader failed to compile: ERROR: 0:31: 'agk_ViewProj': undeclared identifier.
I have created the model with MilkShape and exported into ms3d and .X format, the results are the same.
I am using the default shader, I suppose. The model without animations works perfectly (loaded with LoadObject). If I use LoadObjectWithChildren(), I get the error.
During the game, I get the trivial error "Tried to draw a shader that is not valid".
I suppose there is some bug in the default shader. Would you pls check and let me know?
Thanks.
Preben
AGK Studio Developer
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 29th Nov 2015 00:35
Hi,

Its a bug, just use SetObjectLightMode(animobject,1) , and it will work , the problem is currently you can turn light off when using animated objects.

best regards Preben Eriksen,
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 29th Nov 2015 10:19
Thanks a lot, very right piece of advice, you are a (game)guru!!!

Login to post a reply

Server time is: 2024-04-25 10:43:15
Your offset time is: 2024-04-25 10:43:15