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

Fix MATERIAL class #954

Open
michal-josef-spacek opened this issue Mar 10, 2024 · 5 comments
Open

Fix MATERIAL class #954

michal-josef-spacek opened this issue Mar 10, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@michal-josef-spacek
Copy link
Contributor

When I compile libredwg without --enable-debug (tested on mingw cross compilation). The conversion of DWG with MATERIAL class to JSON and back is not working. Output DWG file is not possible to open in AutoCAD.

This is partially related to the implementation of MATERIAL class.

@rurban
Copy link
Contributor

rurban commented Mar 10, 2024

MATERIAL.gentexture and several other MATERIAL features are not yet supported. These should be disabled without DEBUG

@michal-josef-spacek
Copy link
Contributor Author

If I understand correctly, we need to stable MATERIAL class and after this, we could remove hacks for roundtripping for MATERIAL (https://github.com/LibreDWG/libredwg/blob/master/src/encode.c#L3277). Am I right?

@rurban
Copy link
Contributor

rurban commented Mar 10, 2024

We won't get procedural Materials stable anytime soon, but the rest would be great. So encode should warn and disable it. Just enable it with enable-debug

@rurban
Copy link
Contributor

rurban commented Jul 6, 2024

renaming IMAGE,WIPEOUT.size to image_size fixed the debug json roundtrip

rurban added a commit that referenced this issue Jul 6, 2024
because of json clashes.
Helps also GH #954
@rurban rurban self-assigned this Jul 6, 2024
@rurban rurban added the bug Something isn't working label Jul 6, 2024
@rurban
Copy link
Contributor

rurban commented Jul 6, 2024

I've re-enabled MATERIAL (and WIPEOUT) in the branch smoke/material. No oda errors with r2000 json roundtrips anymore. But still oda errors with r2004-2018

rurban added a commit that referenced this issue Jul 6, 2024
rurban added a commit that referenced this issue Jul 7, 2024
rurban added a commit that referenced this issue Jul 7, 2024
rurban added a commit that referenced this issue Jul 7, 2024
rurban added a commit that referenced this issue Jul 8, 2024
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 13, 2024
because of json clashes.
Helps also GH #954
rurban added a commit that referenced this issue Jul 27, 2024
disable materials in 3DSOLIDs and all its subtypes.
GH #954
rurban added a commit that referenced this issue Jul 27, 2024
disable materials in 3DSOLIDs and all its subtypes.
GH #954
rurban added a commit that referenced this issue Jul 27, 2024
disable materials in 3DSOLIDs and all its subtypes.
GH #954
rurban added a commit that referenced this issue Jul 27, 2024
disable materials in 3DSOLIDs and all its subtypes.
GH #954
rurban added a commit that referenced this issue Jul 28, 2024
rurban added a commit that referenced this issue Aug 1, 2024
rurban added a commit that referenced this issue Aug 16, 2024
rurban added a commit that referenced this issue Aug 16, 2024
rurban added a commit that referenced this issue Aug 16, 2024
rurban added a commit that referenced this issue Aug 18, 2024
rurban added a commit that referenced this issue Sep 17, 2024
rurban added a commit that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants