petrbroz / vscode-forge-tools

Visual Studio Code extension for accessing Autodesk Forge services and content.
https://marketplace.visualstudio.com/items?itemName=petrbroz.vscode-forge-tools
MIT License
74 stars 17 forks source link

No Color when downloaded in gltf #16

Closed lookquad closed 4 years ago

lookquad commented 4 years ago

Hi, when we download the derivative in gltf format, there is no color in the model. Is there some way to get the original colors from the dwg file into the gltf or obj file that can be used in on web using libraries like three.js Thank You

petrbroz commented 4 years ago

Hi!

As I mentioned on SO, try the following:

lookquad commented 4 years ago

Thank you for considering this. I saw the values and it is having only two members in "materials" with values [0, 0, 0, 1] and another [1, 1, 1, 1]. I have sent the email with dwg file to the above address. Please have a look.

Thank you

petrbroz commented 4 years ago

Thank you for the additional info, and for providing the sample DWG. Here's what's going on:

I will add support for vertex colors to the library, and then bring the new version into this project.

petrbroz commented 4 years ago

The fix is now in develop branch and is going live with the next release (1.5.1).

lookquad commented 4 years ago

Thank You so much

On Tue, Mar 24, 2020 at 9:02 PM Petr Broz notifications@github.com wrote:

The fix is now in devvelop branch and will go live with the next release.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petrbroz/vscode-forge-tools/issues/16#issuecomment-603309120, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTNSKGFJ5W55ED7NQJ7GJLRJDHBRANCNFSM4LSONXZA .

-- Regards Syed Luqman Quadri Mtech CSE Jamia Hamdard New Delhi. LinkedIn :: https://www.linkedin.com/in/sql Contact: +91 9871327149