Tutorial - scurest/blender-import-glr GitHub Wiki

This tutorial will teach you how to rip N64 models from an emulator by using a special video plugin, and then import those rips into Blender.

What You'll Need

The plugin has been tested with RMG v0.2.4. Please use RMG version 0.2.4 exactly. Newer versions will not work because of incompatible Qt versions.

The import addon has been tested with Blender versions 3.5, 3.6, 4.0, and 4.1. Feel free to use whichever you like. This tutorial uses 3.6. Versions below 3.5 will not work.

Setup Emulator

  1. Unzip RMG-Portable-Windows64-v0.2.4.zip into a folder.

  2. Open GLideN64-xxxxxxx-Windows-Mupen64Plus-Qt-x64.zip and extract the .dll and .ini file inside it into the Plugins/GFX folder located inside your RMG folder.

  3. Run RMG.exe located in your RMG folder. Open the settings from the menu bar by selecting OptionsSettings.

  4. Under the Plugins tab, change the Video Plugin to "GLideN64 SceneRipper". Then press OK.

  5. Open the graphics settings from the menu bar by selecting OptionsGraphics Settings.

  6. Under the Texture enhancement tab, enable the Use texture pack and Generate scene rip textures options.

    Also take note of the Texture dump path. This is where scene rip files will go. By default this is Cache/texture_dump inside of your RMG folder.

  7. Under the Scene Ripping tab, enable the Enable Scene Ripping option.

  8. Under the Hotkey tab, enable and assign keys to both the Toggle textures dump and Perform scene rip actions. I'm using T to toggle texture dumping and F for ripping.

  9. Finally, press the Save and Close button.

  10. Do any other normal setup you would when using an emulator, eg. configure your controller from OptionsInput Settings, etc.

Rip Scene

  1. Open your ROM file with FileOpen ROM.

  2. Play the game to where you want to rip.

  3. Press T (or your chosen hotkey) to enable texture dumping. Scenes can only be ripped when texture dumping is on. You should see the message "Texture dump - ON".

  4. Press F (or your chosen hotkey) to rip the current scene. You should see the message "Scene Ripped!".

Setup Blender

  1. Install Blender if you don't have it. You can get a portable version or use an installer. See Blender's installation instructions if you need help.

  2. Open Blender, then open the Preferences window from the menu bar by selecting EditPreferences.

  3. Under the Add-ons, tab, click on the Install button.

  4. Select the location where you saved io_import_glr-latest.zip. Press Install Add-on.

  5. The addon "Import-Export: GLideN64 Rip (GLR) Importer" should be shown in the addon list. Click the checkbox next to it's name to enable it.

Import Rip

  1. Within Blender, call the importer by selecting FileImportGLideN64 Rip (.glr).

  2. The rip files are located inside your RMG folder at (RMG FOLDER)/Cache/texture_dump/(GAME NAME)/GLideNHQ/scene_rips. Look for the name of the game you ripped in (RMG FOLDER)/Cache/texture_dump.

  3. The rip files are named sequentially as n64_scene.glr, n64_scene.0.glr, n64_scene.1.glr, etc. Select one or more files you want to import, and press Import GLR.

  4. Share and enjoy

Centering the Model

If you can't see the scene after import, you may need to move the camera around to find it. To frame everything in view, pick ViewFrame All from the menu in the 3D view (or move your mouse over the 3D View and press Home).

If the view zooms way out, but the model still doesn't appear, the model is probably too big. In that case you can scale the model down by changing the object scale in the Properties editor (0.01 is a good place to start). Then do Frame All again to refit the view.

Disabling Fog

Scenes with fog import with the fog effect baked in.

The fog level at each vertex is controlled by a "Fog Level" mesh attribute. To remove the fog, go to the MeshAttributes panel in the Properties editor, and delete the "Fog Level" attribute.

You can also disable fog at import time by turning off the Enable Fog import option.

Exporting to other formats

Shaders will not export to OBJ/DAE/FBX/glTF by default, since the shaders are designed to be N64-accurate, instead of export-compatible. You can run this script after import to convert the shaders to an exportable form. Paste the script into the text editor, ensure the objects you want to change are selected, and hit the Run Script button.

It works by simply picking one texture to become the diffuse texture and ignoring everything else, which is highly lossy. How much it damages the appearance will depend on the game.

⚠️ **GitHub.com Fallback** ⚠️