www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Davi on October 28, 2011, 07:08:26 pm

Title: Load md2 model Error: Too many sub-sequences defined
Post by: Davi on October 28, 2011, 07:08:26 pm
when Load md2 model ,the log show:

Loading Texture...
     ... ...
Processing:deathc...
[1319821045737] - ERROR: Too many sub-sequences defined. Modify configuration to allow a higher number.

I want to know how to modify configuration to allow a higher number??? ???please help
Title: Re: Load md2 model Error: Too many sub-sequences defined
Post by: EgonOlsen on October 28, 2011, 10:24:33 pm
That's this setting: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#maxAnimationSubSequences (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#maxAnimationSubSequences)
I've never seen a MD2 exceeding this value though...
Title: Re: Load md2 model Error: Too many sub-sequences defined
Post by: Davi on October 29, 2011, 08:05:14 am
thank you,I have saw that ,then how to set configuration: Config.maxAnimationSubSequences
 in my program?
Title: Re: Load md2 model Error: Too many sub-sequences defined
Post by: EgonOlsen on October 29, 2011, 05:20:02 pm
Well...just do something like

Code: [Select]
Config.maxAnimationSubSequences=40;

at the beginning of your code.
Title: Re: Load md2 model Error: Too many sub-sequences defined
Post by: Davi on October 29, 2011, 05:33:34 pm
Thank you very much,it works fine ;D