Skip to content
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

(Plastic Tool) Inappropriate box mesh #406

Open
Azusapink opened this issue Jun 5, 2016 · 20 comments
Open

(Plastic Tool) Inappropriate box mesh #406

Azusapink opened this issue Jun 5, 2016 · 20 comments
Labels
bug known issue os-mac workaround Known workarounds exist for this issue

Comments

@Azusapink
Copy link

Azusapink commented Jun 5, 2016

Whenever i create the vector in opentoonz or convert my image to vector and then add mesh to it the plastic tool> create mesh button creates a box mesh around the image instead of just the out line.

any ideas on how to remove this box?
screen shot 2016-06-05 at 10 16 09 am


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@animking
Copy link

may be due to minimize raster memory fragmentation is on.

@ghost ghost added the bug label May 22, 2017
@artisteacher
Copy link
Contributor

Looks similar to the overflowing special styles for vector levels #891.

@ghost ghost added this to To Do in Crash and Show Stopping Bugs Aug 17, 2017
@Silencedpulse
Copy link

On Mac Sierra I have the same problem. It even occurs if I draw within OpenToonz and try to create a mesh for plastic binding. I've checked and Minimize Raster Memeory is off. I turned it on and off again but no luck. Any help would be greatly appreciated.

@artisteacher
Copy link
Contributor

I think someone in another issue discussed placing the vector level in a sub-xsheet before adding the mesh as a workaround. It's an extra step but does work.

@Silencedpulse
Copy link

Artisteacher I had read that. The other thing I've done is draw it as a raster, apply the mesh which does work properly, then convert the column to Vector and it works as well.
Thanks for the feedback.

@kbilinski74
Copy link

kbilinski74 commented Jun 22, 2018

Still the same problem OS X (macOS High Sierra). Inaccurate grid (Create mesh). The created grid has the shape of a square. The problem is v1.2.1RC2
zrzut ekranu 2018-06-22 o 16 45 04

@artisteacher
Copy link
Contributor

Yep, there’s been no change. Hopefully this can be fixed in 1.2.2 along with the generated vector styles of #891. Since the drawing outline is ignored in both issues, and a rectangular boundary used instead, hopefully a fix for one will lead to a fix for the other.

@RodneyBaker
Copy link
Collaborator

Part of this was addressed by #2105 but the plastic mesh elements presumably still haven't been resolved (Ref: #2300) Workarounds exist for that particular case which should be detailed.

@artisteacher
Copy link
Contributor

I believe it can’t be reproduced in old versions of OSX but is a problem in recent versions and I’ve experienced this from 10.11 to the latest version of MacOS. If the mesh is applied directly to a vector level, the shape is always rectangular. If the vector level is in a sub-Xsheet & the mesh is applied to the sub-Xsheet, the mesh shape looks as it should.

@RodneyBaker
Copy link
Collaborator

RodneyBaker commented Dec 15, 2018

I can get something akin to this rectangle if and only if I increase the mesh margin(pixels) setting up to over 1000.

This suggests a place to look ESPECIALLY if DPI is a factor that needs to be taken into account.
Do you see any change if you reduce that value to the smallest values possible... which I presume to be the value 1?

@artisteacher
Copy link
Contributor

I can’t get below 2, but there’s still a rectangular mesh shape. It doesn’t seem to matter how high or low the edge length, dpi nor mesh margin is - some settings make the mesh bigger but it’s still a rectangle.

@RodneyBaker RodneyBaker moved this from To Do to Waiting for Review in Crash and Show Stopping Bugs Sep 19, 2019
@RodneyBaker RodneyBaker changed the title Mac w/ Opentoonz creates box mesh Plastic Tool creates box mesh Dec 18, 2019
@artisteacher
Copy link
Contributor

On a 2017 iMac with Intel Iris Plus Graphics 640 1536 MB and a MacBook Air with Intel UHD Graphics 617 1536 MB (both running Mojave), I'm not seeing the box mesh on vector levels. It is still an issue on 2011 iMac's running High Sierra and a 2016 MacBook Pro running Catalina. Perhaps this is only an issue with hardware prior to 2017?

@RodneyBaker RodneyBaker removed this from Open / Unassigned in Crash and Show Stopping Bugs Jan 6, 2020
@RodneyBaker
Copy link
Collaborator

RodneyBaker commented Jan 30, 2020

Tagging as a known issue for specific Mac hardware although exact hardware hasn't been fully pinned down yet. As of this date:

No Plastic Tool box mesh displaying on:

  • 2017 iMac with Intel Iris Plus Graphics 640 1536 MB (Mojave)
  • MacBook Air with Intel UHD Graphics 617 1536 MB (Mojave)
  • In general any hardware 2017 and newer

Still presumed to be an issue on older hardware to include:

  • 2011 iMac's running High Sierra
  • 2016 MacBook Pro running Catalina

Thanks to everyone for investigating!

@anoopalexwork
Copy link

anoopalexwork commented Apr 4, 2021

I am using Ubuntu 20.04 and seeing this box mesh on vector levels currently. I have Opentoonz 1.4. I can only get it working in vector currently by drawing the shape in raster, making a mesh level, pasting the shape into a vector level, then connecting the raster mesh to the vector level using schematics. or the subx creation step mentioned earlier

@RodneyBaker
Copy link
Collaborator

Somewhere else we have mentioned a possible work around for the inappropriate box mesh creation with plastic tool.
I am curious if the workaround works in these cases also.

Workaround
Prior to creating a plastic mesh... turn the target column (even if only a single column) into a subxsheet.
Then create the mesh.

@RodneyBaker
Copy link
Collaborator

If Mac and Linux users can confirm that creating a plastic mesh on a subxsheet still results in a box mesh... or doesn't... that will be appreciated.

@RodneyBaker RodneyBaker changed the title Plastic Tool creates box mesh (Plastic Tool) Inappropriate box mesh Sep 25, 2022
@cattegamer15
Copy link

I am on Debian 11 and having the same issue on opentoonz 1.7.1 i tried to collapse the vector level and create a mesh,It worked but when i create the skeleton and try to animate the drawing and skeleton dissapears and lags a lot

@artisteacher
Copy link
Contributor

I can't trigger the box anymore on my MacBook at home but I think I still get it on occasion on the iMac at school when I'm using a projector. Never have a problem with sub-xsheets though.

@flurick
Copy link
Contributor

flurick commented Jun 15, 2023

I could reproduced this just now in a linux build from a few weeks ago,
not again in a newer ones though. (Even the 1.7.1 flatpak seems to work atm)

@cattegamer15 any change for you, if not which download link did you use?

Non win32 builds are set to use the default opengl settings for vector levels,
which explains why the subscene workaround works. And probably that the issues is weird opengl default settings not.

#if defined(_WIN32)
    ...
  fmt.setAlpha(true);
    ...
  fmt.setStencil(true);
#elif defined(MACOSX)
  fmt = QGLFormat::defaultFormat();

qtofflinegl.cpp

@RodneyBaker RodneyBaker added workaround Known workarounds exist for this issue and removed needs info labels Jun 30, 2023
@RodneyBaker
Copy link
Collaborator

Looking at this report as a candidate for closure.
Opentoonz users still experiencing the problem while using current nightly releases are encouraged to report that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug known issue os-mac workaround Known workarounds exist for this issue
Projects
None yet
Development

No branches or pull requests

10 participants