Git Product home page Git Product logo

xre-bridge-unity-export's Introduction

Unity-to-XREngine Exporter

Built-in export pipeline for Unity to https://github.com/XRFoundation/XREngine

Usage

System Requirements

NodeJS >12.0

Unity >2020

Bakery Lightmapper (optional)

Getting Started

Run the applicable 'init-pipeline' script from the root project directory.

Export any Unity scene as a GLB with menu item XREngine->Export Scene. This will bring up an export configuration window.

Export Parameters

Name: name of the GLTF and GLB files. Enter without file extension.

Set Output Directory: By default, the scene will be exported into the /Outputs/GLB/ folder in the project.

Export Colliders: Toggles whether collider data will be included in export. Currently only box and mesh colliders are supported.

Export: Begins an export. Note that if you have a gameobject selected in editor, then only the selection is exported.

Supported Components

Lights: point and direction light are currently supported.

Cameras:

Lightmaps:

BAKE_COMBINED: lightmaps are automatically combined with the diffuse channel and reprojected onto the mesh's uv0, then exported as an unlit material. Note that this will cause issues with instanced geometry.

BAKE_SEPARATE: lightmaps are exported as-is and loaded into the lightmap in the standard mesh material. Mesh uv2s are adjusted to apply lightmap scale and offset.

Colliders: box and mesh colliders are automatically configured and exported in XREngine compatible format.

LODs: LOD Groups in Unity are automatically configured and exported.

Spawn Points: Spawn points are exported by adding the Spawn Point script onto transforms in the scene.

Instancing: Any Gameobjects which share the same mesh and material will be instanced by default. Currently only meshes with one material are supported. As previously noted, baking lightmaps onto Gameobjects that share the same mesh and material will break instancing.

Skybox: If the scene has a skybox with a valid cubemap, then it is exported into the project. Currently only supports one cubemap per XRE project.

Known Issues

Materials Black After Error During Export

In general, exceptions thrown during the SeinJS export will result in all materials in the scene being black. Quickly fix this after it occurs by selecting menu item SeinJS->Restore Materials.

No Default Materials Allowed

Every material in the scene must be a project asset that resides somewhere within the Assets folder. Materials from unity's default asset registry will cause the exporter to fail.

xre-bridge-unity-export's People

Contributors

mrhegemon avatar renovate-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.