pcb2blender icon indicating copy to clipboard operation
pcb2blender copied to clipboard

How to export glTF 2.0

Open N0cynym opened this issue 1 year ago β€’ 6 comments

I just have a question:

How can I export from my blender project a .glb with rendered surface texture?

I want to create a file for https://modelviewer.dev/editor/

Thanks for this tool πŸ™

N0cynym avatar Jul 05 '23 09:07 N0cynym

That's not easily possible atm, alteast not with the current Cycles shaders. The 3D (deprecated) material mode might work, but won't look nearly as good. Solutions for this have been discussed before in #8 and also #24 kinda.

30350n avatar Jul 06 '23 13:07 30350n

@30350n did you test how it looks like if you render top and bottom image and put it as image texture on the surface of the blank imported glb body?

N0cynym avatar Jul 07 '23 10:07 N0cynym

No, but what your suggesting is more or less a very naive version of texture baking. The problem is that this doesn't really work (or atleast isn't optimal) with the pcb mesh the addon produces. I spent some time on working around this on the baking branch, but don't have time to further persue this atm.

30350n avatar Jul 07 '23 15:07 30350n

Dear @30350n,

I hope you started well into the new year!?

Do you have any news/updates about this feature?

N0cynym avatar Jan 19 '24 07:01 N0cynym

I hope you started well into the new year!?

Yes, thanks, hope you did too.

Do you have any news/updates about this feature?

No, not really and it wouldn't really be the main priority either. The main thing that needs to be done is a rework of all the materials, to improve performance (and visuals). Though this could also atleast simplify the export problem ...

Regardless, I can't really invest the time that would take atm.

30350n avatar Jan 19 '24 14:01 30350n

Thank you very much for your time and for updating this amazing project. πŸ‘

Well for now I'll see how I can embed a VRML export from KiCad to my web presentation. But I think using a glTF 2.0 export with your material finish in a model viewer would be much nicer ☺️

N0cynym avatar Jan 19 '24 14:01 N0cynym