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.
- Blender 3.6
-
RMG v0.2.4: Download
RMG-Portable-Windows64-v0.2.4.zip
-
Latest GLideN64-SceneRipper plugin: Download
GLideN64-xxxxxxx-Windows-Mupen64Plus-Qt-x64.zip
-
Latest GLR Importer addon: Download
io_import_glr-latest.zip
- ROM of your favorite game
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.
-
Unzip
RMG-Portable-Windows64-v0.2.4.zip
into a folder. -
Open
GLideN64-xxxxxxx-Windows-Mupen64Plus-Qt-x64.zip
and extract the .dll and .ini file inside it into thePlugins/GFX
folder located inside your RMG folder. -
Run
RMG.exe
located in your RMG folder. Open the settings from the menu bar by selecting Options ‣ Settings. -
Under the Plugins tab, change the Video Plugin to "GLideN64 SceneRipper". Then press OK.
-
Open the graphics settings from the menu bar by selecting Options ‣ Graphics Settings.
-
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. -
Under the Scene Ripping tab, enable the Enable Scene Ripping option.
-
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.
-
Finally, press the Save and Close button.
-
Do any other normal setup you would when using an emulator, eg. configure your controller from Options ‣ Input Settings, etc.
-
Open your ROM file with File ‣ Open ROM.
-
Play the game to where you want to rip.
-
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".
-
Press F (or your chosen hotkey) to rip the current scene. You should see the message "Scene Ripped!".
-
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.
-
Open Blender, then open the Preferences window from the menu bar by selecting Edit ‣ Preferences.
-
Under the Add-ons, tab, click on the Install button.
-
Select the location where you saved
io_import_glr-latest.zip
. Press Install Add-on. -
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.
-
Within Blender, call the importer by selecting File ‣ Import ‣ GLideN64 Rip (.glr).
-
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
. -
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. -
Share and enjoy
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 View ‣ Frame 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.
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 Mesh ‣ Attributes 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.
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.