kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.55k stars 549 forks source link

Feature request: add colors to meshes #233

Open Lucas-C opened 2 years ago

Lucas-C commented 2 years ago

Initial need I want to be able to take a screenshot of some 3D models with one or several meshes being colored to "stand out".

Describe the solution you'd like In the Meshes navigator, add an icon/button for every mesh listed, that allows to give it a custom color, in similar way as the selected mesh "highlight" effect.

This icon/button could also be provided in the mesh righ-click menu.

UI Mockup

Online3DViewer-MeshColorPicker-mockup

Icon There are 2 candidate icons from the Noun Project: color & format color. I guess it would have to be added to O3DVIcons.woff. With what tool could that be done? Did you use FontCreator?

Implementation I had a look at the code and it seems to me that most of what we need to implement this is already present:

Questions

kovacsv commented 2 years ago

Hey, sorry for the late answer. I definitely should write an architectural documentation of the code to answer all your questions. I've created an issue for that: #245.

The proposed solution raises a lot of questions, and I'm wondering if it's the best way to achieve your goals. To understand it better could you please explain the workflow in more details?

I understand that you would like to highlight some parts to stand out. What will happen after that? Who is the target audience? What will be the tool they are checking the result? What happens after they've checked it?

Lucas-C commented 2 years ago

Thank you for your answer.

I understand that you would like to highlight some parts to stand out. What will happen after that?

I plan to simply take a screenshot of it.

Who is the target audience?

I plan to generate 2d illustrations out of some video game levels 3D models. Those illustrations would then be part of a PDF I am crafting, so the audienc would be readers of this PDF.

What will be the tool they are checking the result?

A PDF viewer, to visualize the 2D screenshot made taken from Online3DViewer.