Skip to content

Latest commit

 

History

History

UE

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Rhino.Inside.UE

Rhino Inside® technology allows Rhino and Grasshopper to be embedded within other products.

Running Rhino and Grasshopper inside Epic Games' Unreal Engine (4.23)

gif

Samples

  1. Sample 1: This sample runs Rhino inside Unreal Engine using the USharp Library. Check the Unreal Engine console (Window > Developer Tools > Output Log) for the results of a basic operation with RhinoCommon.
  2. Sample 2: This sample builds upon Sample 1 and shows how to pass mesh geometry from Rhino to Unreal Engine. The ASample3Actor class includes methods that return a list of vertices and face ids that are exposed to the Blueprint System.
  3. Sample 3: This sample shows how to pass meshes from Grasshopper to Unreal Engine.

Dependencies

At the time of writing, all samples developed on Windows 10. Besides having Rhino 7 WIP installed, you will need the following:

  • Unreal Engine - The samples were developed with UE 4.23. Requires about 9-10 GB of hard drive space.
  • Visual Studio 2017 - USharp depends on Visual Studio 2017 build tools for the setup.
  • USharp - C# plugin for Unreal Engine 4. Please see the setup section below for preparing the USharp plugin.

Setup

Since Rhino.Inside is based on .NET, the host application should have a .NET API. Unreal Engine has a C++ API. In order to facilitate working with Rhino.Inside, we can use the USharp project, which provides a .NET wrapper around some of UE's C++ API as well as some tools to properly format our assemblies. The USharp setup goes through some steps to compile the source code for some of these tools. We've had to change one variable in the source code to make Grasshopper work within Unreal. In order to skip the compilation steps, we've prepared a compiled version of USharp which you will need to install.

NOTE: This assumes you've already installed Unreal Engine 4.23

  1. Download this zip: USharp Build
  2. Unzip the contents to the C:\Program Files\Epic Games\UE_4.23\Engine\Plugins directory. The contents should unzip into a directory named USharp.
  3. Create a folder %APPDATA%\USharp.
  4. Open the Unreal Engine Editor. When prompted to create a new project, you should now have four project types: C++, Blueprint, Unreal Studio, and C#.

image

  1. Test the installation by creating a new project based on the "2D Side Scroller". Enter a folder and project name, and click Create Project. You will get a popup from USharp asking if you want to build the project with a prompt reading "C# game project isn't compiled. Compile it now?". Click Yes.

image

  1. Play the game! Press the Play button or press ALT+P.

image