Author Topic: Problem with animation model  (Read 452 times)

Offline Jamiro

  • byte
  • *
  • Posts: 19
    • View Profile
Problem with animation model
« on: January 25, 2018, 08:19:30 pm »
Hello,

I've been playing around with the vertex animation in the models, and I've noticed a non deterministic problem with it as shown below:



and more detailed:



this happens sometimes in the middle of the animation and only for 1 frame, it's a random behaviour, and I can't figur what is causing it. Could it be any kind of synchronization issue between the animation calculation and the rearragement of the vertices? Compatibility isuses? I can't find out what it could be.

Regards,
Jamiro

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11853
    • View Profile
    • http://www.jpct.net
Re: Problem with animation model
« Reply #1 on: January 25, 2018, 08:51:47 pm »
Are these grey areas holes? Strange...are you doing the animation calls in a thread different from the rendering thread.

Offline Jamiro

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Problem with animation model
« Reply #2 on: January 25, 2018, 09:34:03 pm »
Yeah they are, I thought they could be artifacts but they are just spaces between each other vertices. And no, everything is being processed in the same thread.

Offline Jamiro

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Problem with animation model
« Reply #3 on: January 25, 2018, 09:37:53 pm »
Have you or anyone here ever experienced it before? If not, can you give me any kind of idea, based on your experience where to look at or debug this? Mainly because the animation is a black box, and I can't look at it.

Offline AGP

  • quad
  • ******
  • Posts: 1575
    • View Profile
Re: Problem with animation model
« Reply #4 on: January 27, 2018, 06:29:26 am »
Any chance they're texture transparencies and the problem is a UV problem (perhaps caused by your animation)?

Offline Jamiro

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Problem with animation model
« Reply #5 on: January 27, 2018, 07:53:15 am »
Nope, not using any kind of transparency whatsoever. Just a plain, compiled, one-layered textured model.
And it only happens once in a while, and not throughout all the animation.

Offline Jamiro

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Problem with animation model
« Reply #6 on: January 28, 2018, 08:59:48 am »
Kinda Solved it.

Ok, so it seems that this occurs only on compiled mode, so I managed to use the compile options to set a bigger value for "bathSize",  for around 10.000, and it did the trick, but, now I have another problem. It seems that low values lead to that, how should I know which graphics cards can withstand such value?

is that correlated to the animation object itself by any way?

and BTW, what does .compile(true) do? Does it hava a predefined BatchSize value or uses the Config one?

Thanks

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11853
    • View Profile
    • http://www.jpct.net
Re: Problem with animation model
« Reply #7 on: January 28, 2018, 05:00:05 pm »
I'm not sure what that is that I'm seeing there. Batch size should have to impact on this unless it's a driver thing. On which machine/OS/GPU are you running this on? Have you tried a different one?

Offline Jamiro

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Problem with animation model
« Reply #8 on: January 29, 2018, 07:37:25 am »
I've only tried to tweak this values because I read your comment on the compile which said that low values of Batch size could lead to missing poligons, which was kinda the case.

Currently, I'm running this in:

- OS:    Win 8.1 / 64x
- MEM: 12 GB ram
- GPU:  Geforce 840m
- Driver:333.02
- CPU:  i7-4510U 2.00GHz
- java:  1.7.0_10

I will try on a different one just to be sure, but this change did the trick.