Import an original Blender asset
An original asset is a scene you made in Blender, not one exported from the game. The Blender add-on exports it. Studio imports every surface it can encode and lists the rest by name.
Before you start
- Install the Blender add-on. See Edit an asset in Blender.
- Use PNG images, one UV set, repeat wrapping and backface culling in your materials.
- For cut-out leaves or fences, set the material’s blend mode to alpha clip, so it exports as an alpha mask. Alpha blending has no import path.
Export from Blender
- Select the objects to export. With nothing selected, the whole scene is exported.
- Choose File > Export > Sunrise original asset.
- Pick a folder and a name.
The add-on writes two files side by side. Keep them together.
| file | holds |
|---|---|
<name>.glb | meshes, UVs, normals, materials, images, skins, morph targets and animations, Y-up |
<name>.sunrise-original.json | every particle system, because glTF cannot hold particles |
The export refuses a scene with no mesh.
Import into Studio
- Open a project.
- Open All other assets in the browser, press its New icon and choose Static prop.
- Set Source to Original Blender asset.
- Press Browse next to Mesh file and pick
<name>.glb. - Read the Surfaces list. Each surface is marked Ready, Absent or Unsupported. Its first line counts the ready and unsupported surfaces. Hover a surface for the detail.
- If a surface is Unsupported, set Skip unsupported surfaces to Yes: import the supported surfaces only.
- Type a Name and an unused Package ID.
- Press Create.
Without Skip, Create stays disabled while a surface is unsupported, so nothing is dropped silently.
Which surfaces import
| surface | imported |
|---|---|
| mesh geometry | triangle primitives; one static part per primitive |
| UVs | the first UV set |
| normals | yes; missing normals are generated from the faces |
| tangents | generated from the UVs; authored tangents have no encoder |
| textures | PNG images, as BC7 or BC4 2D textures with a full mip chain |
| materials | base color, metallic, roughness, tangent normals, emission and alpha masks |
| vertex colors | yes, the first color set; they multiply the base color |
| skin weights | no; use Replace a skinned model |
| skeleton, animations, morph targets, particles | no |
With Skip, a skinned mesh imports at its node transform, a morphed mesh imports as its base shape, and point and line primitives are dropped.
How materials convert
Studio clones one of three checked game materials for each glTF material:
| glTF material | game material |
|---|---|
| opaque, on a primitive without vertex colors | opaque: color, surface and normal textures, and emission |
| opaque, on a primitive with vertex colors | vertex color: color and normal textures, times the vertex color |
| alpha mode MASK | alpha test: color, mask and normal textures, and its own shadow caster |
A material used on primitives with and without vertex colors becomes two game materials.
| glTF input | game input |
|---|---|
| base color texture and factor | the color texture |
| base color alpha and factor | the mask texture, for an alpha-masked material |
| alpha cutoff | the cutoff the mask and its shadow test against; 0.5 by default |
| metallic texture and factor | surface texture red, opaque only |
| roughness texture and factor | surface texture green, as smoothness, opaque only |
| emissive factor and texture | the emission color, masked by the largest channel of the texture, opaque only |
| normal texture and scale | the normal texture |
| no normal texture | a flat normal |
These are refused, or omitted with Skip:
- alpha blending
- emission on an alpha-masked material
- occlusion textures
- double-sided shading
- extra UV sets, texture transforms and texture extensions
- nearest filtering and non-repeat wrapping
- material extensions
- images other than PNG
The vertex color material reads no metallic or roughness input. Whether each game material shows its inputs as Blender does is unverified in game.
Native authoring profiles has the exact conversion.
What you get
One model with one part per primitive. Parts of one game material kind share one buffer group. Each part keeps its own material, casts a shadow and draws at every level of detail. Each material brings its textures, and the opaque and vertex color ones a constant buffer. The model has the same limits as a static prop. See Add a static prop.