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 / Bug : Loadobjectwithchildren & setobjectlightmode

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 21st Apr 2018 09:34
Hi

Inthe last version, itseems there is a bugwith animated object.
If i use Loadobjectwithchildren () and setobjectlightmode (objid, 0), I have an error message (shader error).

Cheers
AGK2 tier1 - http://www.dracaena-studio.com
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 23rd Apr 2018 14:31
I just tried the BoneAnimation example that comes with AppGameKit and added the line SetObjectLightMode( 1, 0 ), but it worked as expected.
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 23rd Apr 2018 17:41
Perhaps it works with a .x and not a .dae.
I have use a dae and it doesnt work (on windows8.1).

I can send to you a file to test.
AGK2 tier1 - http://www.dracaena-studio.com
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 24th Apr 2018 07:39 Edited at: 24th Apr 2018 07:59
Hi

I have found how to reproduce the bug :

it's with :
LoadObjectWithChildren(1, "soldier1.x")
SetObjectLightMode(1,0)
SetSunActive(1)




With this code, you can see the bug , even with the soldier (.x) in the bone example :

AGK2 tier1 - http://www.dracaena-studio.com
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th Apr 2018 14:11
Thanks, fixed for the next version. The cause was the combination of SetObjectLightMode(1,0), SetFogMode(1), and an animated object.

Login to post a reply

Server time is: 2024-04-19 19:53:31
Your offset time is: 2024-04-19 19:53:31