Author Topic: Reduce size GLB Keyshot 10  (Read 3706 times)

0 Members and 1 Guest are viewing this topic.

Offline SpaceMonkey

Reduce size GLB Keyshot 10
« on: April 22, 2021, 05:11:55 pm »
Hi all.
I am trying to upload a GLB as an NFT. 
The problem is that the file needs to be less than 100 MB.  With materials, the GLB exports at 140 MB.                         
Since I work in Rhino and part of the model is a SUB D, the file all started as quite a large file. I have managed to reduce it by extracting the render mesh only.  I export it to keyshot using the rhino plugin.   
It comes into keyshot with rhino materials. I tried exporting it like this to GLB, and it some out at 45MBb.
At this point, I add material.  Red axalta, some emissive, an area light, chrome and a couple of mould tech materials. (It's a tricycle, so it has wheels and all. )
See attached. I dont have any labels on them. Export size. 135MB
I have tried changing both the DPI  and the number of samples. Neither effect export size, only rendering time. Export size. 135MB
So clearly  135 MB - 45 MB =  90 MB. Is 90 MB acceptable for
I am not sure which material is "heavy" Is there a way to see the MB taken by any individual material?
How do I reduce GLB size further. Thanks !!
Keyshot 10 Windows.

Offline INNEO_MWo

  • Hero Member
  • *****
  • Posts: 1327
  • Total likes: 85
  • Senior Technical Consultant @ INNEO (Germany)
    • german KeyShot page from INNEO Solutions
Re: Reduce size GLB Keyshot 10
« Reply #1 on: April 22, 2021, 10:02:58 pm »
If you follow the KISS principle (keep it smart and simple) you’ll find a way. The glb size depends on the poly count and textures. Does every part need to thickened? Does the glb need to see inner parts. Is it necessary to use bump maps that causes extra normal textures?

So if the file size is critical, then it needs extra work on the scene. BTW area and emissive lights aren’t support for glb.

Offline SpaceMonkey

Re: Reduce size GLB Keyshot 10
« Reply #2 on: May 04, 2021, 01:53:17 pm »
This worked thank you.

Offline DerekCicero

Re: Reduce size GLB Keyshot 10
« Reply #3 on: May 07, 2021, 09:04:53 am »
KeyShot 10.2 has a new Mesh Simplification tool to help reduce file sizes. You can see my experiments with GLB here:

What’s New Guide - KeyShot 10.2

If you have time, please try and beta and let us know what you think

Offline SpaceMonkey

Re: Reduce size GLB Keyshot 10
« Reply #4 on: May 08, 2021, 05:15:41 pm »
Hi Derek, your timing was impeccable.  I was actually about to download the Draco compressor on Github when I saw this reply!

It turns out that I had to reduce the GLB to less than 40 MB.  The original GLB was 145 MB.
Following INNEO_MWo advice, I simplified the materials down to 45 MB

I downloaded KS 10.2 and tried the Draco reducer at export.
I extracted a render mesh from rhino and used the plugin to sync rhino and KS.
I assigned colours and directly exported the glb ticked Draco compression at export.
The file corrupted, the file size was at 0 KB.
I eventually exported the Nurbs model from rhino and re-tesselated and simplified each mesh individually.
I got the mesh down to 15 MB but left the rims as Nurbs. They did not look great at a 50% reduction so I left them as is.
The Mesh simplification tool works very well, thank you for that.
The only issue is the Rhino plugin. It's pretty awfull in 10.2
Every time I "update" the plugi in rhino a new instance of Key Shot opens up. I have to wait for it to open up and then close down the said new instance. I then needed to right-click on the KS instance I am trying to update. At that point, it begins to update the geometry. At 3 separate points the axis flipped 90 °

Offline DerekCicero

Re: Reduce size GLB Keyshot 10
« Reply #5 on: May 10, 2021, 10:44:16 am »
Ok great we will have a look at the rhino issues and we if we can reproduce. Can you send the actual file you were using to get the 0KB output to us via WeTransfer?

Offline Francisco

Re: Reduce size GLB Keyshot 10
« Reply #6 on: May 10, 2021, 03:11:02 pm »
Hello SpaceMonkey,

When you try and use the Rhino 7 plugin would you be able to give me a screenshot of the button you are using for updating to KeyShot 10.2? I have made a simple Mesh and was able to send it to KeyShot 10.2 then went and made some changes to the Mesh model and updated them in KeyShot and they came through without opening up a window.

Offline SpaceMonkey

Re: Reduce size GLB Keyshot 10
« Reply #7 on: May 13, 2021, 12:28:00 pm »
Hi guys
I think it might have been an issue with my antivirus.  I tried to replicate the above issue and it's no longer a problem.

I do a little bit of optimisation for my GPU and changed a few settings earlier this week. I have no idea what the bug was but it seems to have disappeared. I do however still have issues with the import not allows updating on the correct axis. 
I'll send the file over but beware I have made it into a NFT and it will be worth millions $$$$ one day.  :)   ;)