[SOLVED]crowd.c ( GPU bone anm ) + shadeC material ?

Posted By: rayp

[SOLVED]crowd.c ( GPU bone anm ) + shadeC material ? - 04/25/18 19:59

Hi Friends.

After a long time of building Proton packs i cant resist to work with my old love...ACKNEX.


I faced the old prob...framerate. Found out that in every of my Projects ent_animate is causing the framerate issues, no matter which models.

I wanted to use GPU for ent_animate.
I opened crowd.c in the sample Folder and thought "damn its a shader".

Of course i have latest shadec EVO included.


And this is the Problem...can somebody combine me the shadeC material with the GPU boneanm material from crowd.c ?


I really reached my limits of knowledge here cause iam a shader noob, and i will die as a shader noob.

Thanks in advance for all help!
Greets


edit:
Reason for this:
I added one(!) model three times. If ent_animate playes three times the same anm and Frames, framerate is around +90.
When saying this, for example:
my.animation_frame = random (100);
or using two different anim sets, framerate drops down to 30.
I already faced this prob with other models...but normally i needed some more models to see this ent_animate framerate kill process.

Converted to vertex Animation. Then i got 70fps. But hey...this cant be true i Need bones man ( i dont wanna miss dozens of feats like ant_animatefrom and vertex animations eating your Nexus faster than you can say FUCK ).
Posted By: txesmi

Re: crowd.c ( GPU bone anm ) + shadeC material ? - 04/25/18 21:15

welcome again!

look at this
Posted By: rayp

Re: crowd.c ( GPU bone anm ) + shadeC material ? - 04/25/18 21:30

Sry...i see this seams what iam looking for. But i dont get the point. Can somebody help my brain take the given Information please laugh

Is it only adding the line #degine BONES in the right file?
edit2:
wow...even Setting max_bones to 1 brought around 10-15 Frames already...

edit3:
Wow. It seams to be a huge difference. Placed the model 7 times now with more or less stable 45 fps. Not bad indeed.

Thanks for that info...Standing in my own thread grin
Thanks, txesmi! wink

Mutant dogs entering ShadeC test scene grin


Why is this working? Is in shadeC some GPU anm included ?
Posted By: rayp

Re: crowd.c ( GPU bone anm ) + shadeC material ? - 04/25/18 22:23

Mhhhm...

After testing around it still Looks like if the animations are too different ( hard to explain ) the framerate still drops.

But this might be caused by sun and dynamic light shadows at once in the testscene. With only one "shadow-source" it goes up to +-50 fps.

edit: Ok its better with this mod but still hard to Keep fps up i realized.

So is it really only adding those lines to have shadeC models GPU animated? Iam confused now.

edit:
Heres how it works laugh
I cant believe...Setting #define BONES in the material of the enemys boostet the framerate to 160 fps !!! AMAZING

This is mighty cool.
© 2024 lite-C Forums