Example #1
0
        public override void Initialize(JanusRoom room, GameObject[] rootObjects)
        {
            this.room = room;

            materialScanner = new MaterialScanner(room);
            compExtractor   = new JanusComponentExtractor(room);

            EditorUtility.DisplayProgressBar("Janus VR Exporter", "Brute force scanning for AssetObjects...", 0.0f);

            materialScanner.Initialize();
            for (int i = 0; i < rootObjects.Length; i++)
            {
                GameObject root = rootObjects[i];
                RecursiveSearch(root);
            }

            room.FarPlaneDistance = (int)Math.Max(500, sceneBounds.size.magnitude * 1.3f);
        }
Example #2
0
        public override void Initialize(JanusRoom room, GameObject[] rootObjects)
        {
            this.room = room;

            lightmapIdScanner = new LightmapIDScanner(room);
            compExtractor     = new JanusComponentExtractor(room);

            meshesToExport = new Dictionary <int, PerMaterialMeshExportData>();

            EditorUtility.DisplayProgressBar("Janus VR Exporter", "Per lightmap id scanning for AssetObjects...", 0.0f);
            lightmapIdScanner.Initialize();

            for (int i = 0; i < rootObjects.Length; i++)
            {
                GameObject root = rootObjects[i];
                RecursiveSearch(root);
            }

            room.FarPlaneDistance = (int)Math.Max(500, sceneBounds.size.magnitude * 1.3f);
        }