-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
camera layer problem #940
Comments
Hi @tirbo |
Я сейчас на работе. Тяжело объяснить в письме. Тут нужно сделать видео. Но все же попробую объяснить. Для примера. Нарисуйте любой объект в левом верхнем углу рабочего пространства. Далее перейдите в слой камеры. Добавьте 10 кадр, тут переместите объект в нижний левый угол. Добавьте 20 кадр... И так по периметру верните объект на место. Сохраните проект. Закройте программу. Откройте программу и проект. Пока все работает корректно. Теперь снова работаем в слое камеры. Переходим на 10 кадр и изменяем масштаб объекта. Переходим на 30 кадр и снова изменяем масштаб объекта (за счет приближения камеры). Смотрим получившуюся анимацию. |
@chchwy One thing I noticed when I did my own test was that when I added a keyframe inbetween two existing keyframes, the "path" of motion would change slightly, particularly when there was zooming. However the motion that follows the "perimeter" was saved properly in my own test. @tirbo If possible can you upload and share the last file you made in the video to see if it opens properly on Windows but not in Linux? |
проблема не будет исправлена? |
@tirbo Hi. It's not that the problem won't be fixed, however all the current developers are volunteers and work when they can. Also they have either windows or mac so they would need to test a linux distro to reproduce your specific issue. There are also a lot of bug fixes in the queue but rest assured this will be fixed eventually and when it is I'll message you again, it will just take time. With that said If you know someone who can code in C++ and want to help the project please send them here, even if it's just to fix this issue, otherwise we have to be patient while we wait for most fixes to be done. If you require a way to handle your camera animation, maybe try to combine your Pencil2D animation with Synfig ( http://synfig.org) It's a program for 2D animation and has a lot of effects. since their developers speak russian you can surely get proper support in your native language meanwhile Pencil2D gets this problem fixed. 🙂 |
I tried this on my Ubuntu 18-04, which is very stable. The one I use for coding. |
I have tried to install a regular Pencil2D install in Ubuntu 18.04. It generates the same errors as @tirbo shows us. |
Sounds like a Linux specific issue. What version of Qt are you using? @davidlamhauge |
@chchwy I use Qt Creator 4.8.0 based on Qt 5.12.0 on both Ubuntu 18.04 and macBook. I mostly code on Ubuntu. |
@chchwy Here is a video that shows what happens, and the content of the *.pclx https://youtu.be/jeqdVGN5SwQ |
@davidlamhauge what happens if you change the scaling separator back to ".", save and retry? |
@candyface I tried but I couldn't. It's a zipped filed, and I wasn't allowed to do that. |
Given that we know it's a zip container, you can just rename .pclx to .zip and unpackage it. Then do the same in reverse to change it to .pclx format again ;) As for comma instead of dot, yeah that could definitely cause problems... it should be possible to force english locale on xml files to avoid this. |
It seems like we have to set a global LC_NUMERIC to English like here: http://www.cplusplus.com/reference/clocale/setlocale/ |
I finally had time to test your suggestion @candyface . I changed the scaling-separator to '.' (period) and everything worked fine. I also had to change the x and y positions since they are floats or doubles, so every number with decimals must be with period as separator. |
#940 - Fix XML fields corrupting because of locale decimal types.
@tirbo this should be fixed in latest nightly build, please check it out. |
The issue seems to happen only on Linux. I have switched to many different locales on Windows but didn't see the comma decimal separator. |
@chchwy @davidlamhauge @candyface Hey guys, quick update just happened to see that @tirbo posted a video on his youtube channel. Maybe to report this, but the bug is still NOT fixed in ubuntu 18.04.2 LTS. Honestly I don't understand why that keeps happening. He shows that he's using the latest February 19th 2019 APPIMAGE build. https://www.youtube.com/watch?v=sVNiudXmfxQ Edit: It's weird that it happens precisely on zoom, but not with translation. tirbo could you please share the files before and after applying the zoom? |
Hmm... it's possible that the locale is being reset too early.. Maybe it should just be moved down to the bottom of the function... |
Забыл пароль не мог войти. Видео есть. Вот файлы: МояАнимация_008.pclx МояАнимация_009.pclx |
Probably the |
After digging into this issue a few hours, I found there could be no easy way to fix it as it relies on the Qt's XML implementation. I will move this issue to v0.6.4. One possible solution is adopting a 3rd party XML library e.g., pugixml which apparently outstrips QDomDocument in both performance and memory consumption. |
@chchwy If you tested this on mac os, you should know that changing the locale is not enough, mac os has a specific separator option under advanced in "Language and region" that handle this. I forgot to answer but I tested a week ago my attempt to fix it and it didn't. So this is not resolved. |
Mmm..I don't get it. Is QDoubleSpinbox related to the decimal separator of an xml file? |
Oh I didn't know the issue is from a QDoubleSpinbox. |
Agh... I didn't think that through, yeah no of course we don't use qdoublespinboxes for the hand tool. What I meant is that you should be able to see the output value change based no the locale you have. So if you set the number separator to "," then it should show that in the debug log too. I just tried again though but I can't seem to replicate the bug anymore. @tirbo can you reproduce the problem in the latest release? (0.6.3) |
I've just tested 0.6.3 on Ubuntu 18.04, and the problem persist. Unfortunately. |
Ubuntu 16.04
Любая ночная сборка.
При работе со слоем камеры. Если использовать одновременно сдвиг и масштаб то сохранения работают некорректно.
Any night build.
When working with the camera layer. If you use both the shift and the scale, then the save does not work correctly.
The text was updated successfully, but these errors were encountered: