# HoloLens 2 + Sketchfab

{% hint style="info" %}
Pre-requisites:

Download the following:

* Revit®️ 2020 or later software
* [Lumion® LiveSync® for Autodesk® Revit®](https://apps.autodesk.com/RVT/en/Detail/Index?id=1257010617153832891\&appLang=en\&os=Win64)
* [Blender 3D](https://www.blender.org/)

Create an account in [Sketchfab (free)](https://sketchfab.com/).&#x20;
{% endhint %}

### 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):[ Click here to install](https://apps.autodesk.com/RVT/en/Detail/Index?id=1257010617153832891\&appLang=en\&os=Win64).&#x20;

<figure><img src="/files/HINnYBOmfR48dEWcciX0" alt=""><figcaption></figcaption></figure>

3. Click on "Export" and save it to your desired location.&#x20;

<figure><img src="/files/YvsBv1lJB7M5CkuTHdrU" alt=""><figcaption></figcaption></figure>

### Blender Scripting

4. 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.&#x20;
5. Switch to the Scripting Workspace.&#x20;

<figure><img src="/files/cfQn7wvGhoZXsfKVOvtq" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/5FbY8QRPtxQ4CiR3CJkV" alt=""><figcaption></figcaption></figure>

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

<pre class="language-python"><code class="lang-python"><strong>import bpy
</strong>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
</code></pre>

8. Run the Python script by clicking on the green play button.

<figure><img src="/files/pc8z2M7aqmvZLmsOFH1V" alt=""><figcaption></figcaption></figure>

9. 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.

<figure><img src="/files/PxlFjwZLltuCKEvTiISo" alt=""><figcaption></figcaption></figure>

### Uploading to Sketchfab

10. Upload to Sketchfab. You can use a free account to do this.
11. Open your HoloLens 2 with the Sketchfab app logged into your account.&#x20;
12. Done! All you have to do now is to open your model uploaded and you can see it in augmented reality.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pxl.archbe.org/ar/workflows/hololens-2-+-sketchfab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
