PixelSpace Lab
  • 👋Welcome!
  • Overview
    • ✨About Us
    • Lab Rules
      • Code of Conduct, Health and Safety
      • Access and Policy Requirements
      • Equipment Usage and Care
    • 🗃️Reservation System
    • Hardware
      • VR/XR Headsets
        • Meta Quest 3
        • Pico 4 Enterprise
          • Factory Reset
        • Mirage Solo Daydream
        • Microsoft HoloLens
        • HTC Vive Pro Eye
      • Phones/Tablets
        • iPhone 15 Pro
        • Samsung S23 FE
        • iPad
      • Lab Computers
    • Software
      • SketchUp
      • Sketchfab
      • Spline 3D
      • Polycam
  • Use cases
    • Architecture
    • Construction Management
  • 🥽Virtual Reality
    • Workflows
      • Unreal Engine
      • Unity 3D
      • Revit
      • Revizto
  • 📱Augmented Reality
    • Workflows
      • HoloLens 2 + Sketchfab
  • 🪄Extended/Mixed Reality
    • Workflows
      • Fologram
  • Web XR
    • Overview
    • Sketchfab
  • 3D Scanning
    • Introduction
    • Software
      • RealityScan
      • Polycam
      • KIRI Engine
      • Scaniverse
      • MakerWorld AI
      • Luma AI
      • iRhino 3D
    • Blender 3D
    • FAQs
Powered by GitBook
On this page
  • Setting Up 3D Model
  • Blender Scripting
  • Uploading to Sketchfab

Was this helpful?

  1. Augmented Reality
  2. Workflows

HoloLens 2 + Sketchfab

PreviousWorkflowsNextWorkflows

Last updated 9 months ago

Was this helpful?

Pre-requisites:

Download the following:

  • Revit®️ 2020 or later software

Create an account in .

Setting Up 3D Model

  1. Have your model ready in Revit then head to the Lumion plugin tab

  2. Use Lumion Plugin's "Export" button to export in COLLADA (.dae):.

  1. Click on "Export" and save it to your desired location.

Blender Scripting

  1. Open Blender 3D and open the exported model. You will see that the model's textures are all black or transparent. We will change that using a code script.

  2. Switch to the Scripting Workspace.

  1. Click the [+ New] button in the text editor to create a new text data-block.

  1. Copy the code from below and paste it into the text editor.

import bpy
for mat in bpy.data.materials:
    if hasattr(mat.node_tree, "nodes"):
        for node in mat.node_tree.nodes:
            if node.type == 'BSDF_PRINCIPLED':
                for input in node.inputs:
                    if input.name == 'Alpha':
                        input.default_value = 1
  1. Run the Python script by clicking on the green play button.

  1. Once Blender is done running the script, the model should show its original colors as seen in Revit. Export to .fbx, .obj, or .dae. Recommend .dae for maintaining textures.

Uploading to Sketchfab

  1. Upload to Sketchfab. You can use a free account to do this.

  2. Open your HoloLens 2 with the Sketchfab app logged into your account.

  3. Done! All you have to do now is to open your model uploaded and you can see it in augmented reality.

📱
Lumion® LiveSync® for Autodesk® Revit®
Blender 3D
Sketchfab (free)
Click here to install