3DModel,

In this article, I introduce how to reduce the file size of an asset in case it is too large to upload to STYLY.

Check the size of an asset

The Snowman object(You can download it from UnityAssetStore for free.)

The recommended size is less than 20MB to upload to STYLY. ※As of September 2018.
You will see an error as shown below if you try to upload to STYLY an asset with the file size over this limit.

The warning for a large file.

Firstly check the size of the Prefab to upload when the error shown above popped up.

Right-click the Prefab and select STYLY > “Check File Size”.

Check the file size #1

It’s 16MB. Now let’s reduce it.

Check the file size #2

Reduce the size of the asset

In a 3D object, textures occupy most of the file size.
To reduce the file size, it is effective to make each texture coarse.

Find “Texture” folder in the Project window.
Once you expand the Texture folder, the list of the textures used in the project will be displayed.

The list of the textures

We identify the textures that are used in the corresponding object.
As you click each file in the Hierarchy window, the corresponding texture is displayed as shown below (The area surrounded by the red box on the right).
It is the texture used in the object.

Identify the texture used.

As the corresponding texture turned out “Snowman_Albedo_01(A Smoothness)”, we now make it coarse.

Select the texture, “Snowman_Albedo_01(A Smoothness)”, in the Project window.
Then, the information of the texture is shown in the Inspector window.

Select the texture

“Max size” has been set to 2048 in the Default section.
Click the number to open the list of sizes. Select “256” and press the “APPLY” button on the bottom-right.

This operation reduces the size of the texture.

Change the size

Copy the mesh and texture to the Scene

Next, paste the mesh, which is the shape of the object, and the texture reduced in size above.

Find where the mesh of the corresponding object is.

As you find the file with the corresponding texture, you can find the mesh of the corresponding object, at the “Mesh” box in the Inspector window.

Select the “Snowman_LOD0” mesh and then the mesh is highlighted in the Project window as shown below.

Find the corresponding mesh.

Drag and drop the highlighted mesh to the Scene.

Add the mesh to the Scene.

Add “Snowman_LOD1” and “Snowman_LOD2” to the Scene in the same way.

The meshes have been added to the Scene.

To avoid confusion, delete the original object.
In the Hierarchy window, delete the files that form the original object.

Delete the original object.

The original object has been deleted.

Next, assign the texture to the meshes added.
There are three meshes(It’s hard to see in the image below but you realize three meshes in the Hierarchy window). As they take the same texture, “Snowman_Albedo_01(A Smoothness)”, drag and drop it to all three meshes.

Assign the texture to the meshes

The texture reduced in size has been assigned to the meshes.

The image with the texture reduced in size.

Check the size and upload to STYLY

Put the objects with the coarse texture together.
Create a new Game Object by “Create Empty” in the Hierarchy window and store the objects with the coarse texture in it.

Put the objects together.

Drag and drop the object to the Project window to translate them into a Prefab. Right-click the Prefab created and select STYLY > Check File Size to check the size.

Check the file size.

It ‘s 5MB now.
The data reduction is successful as it was 16MB!

The data reduction is completed.

All you have to do is to upload to STYLY.

Upload it to STYLY.

Congratulations!
That is all you need to slim down an asset with large file size by making its textures coarse and upload it to STYLY.

yuriesky

大学3年です。普段はAdobe PremiereProとAfterEffectsを使った動画制作をやっていて、今はVRの勉強もしています。 ↓Twitter↓ https://twitter.com/Hitori_Hara ↓YouTube↓ https://www.youtube.com/channel/UC0bKcaSRqufMRAbHq2lCb-Q?view_as=subscriber

Share this article

Shares
Facebook Twitter Google+ Pinterest hatebu

About STYLY

STYLY is a cloud-based service for creating high quality,beautiful VR spaces that doesn’t require any coding. By using STYLY, creators can express their imaginations indefinitely and build a variety of virtual spaces. Through these spaces, we can share experiences that are unachievable in the real world.