Skip to content

Generate Paintings from an Image

Michel McBride-Charpentier edited this page Sep 29, 2020 · 2 revisions

The Generate Painting Tool in the Unity Modding Project creates all the assets needed for a Mondo Museum painting in one button click.

Menu Item Mondo Museum > Generate Painting from Image

  1. Find a suitable image. The Metropolitan Museum of Art has a database that lets you find Open Access paintings in their collection.
  2. Drag the image into the YourMod/Assets folder. You don't have to worry about any of the Texture Import Settings, as these are set automatically when creating the painting's assets.
  3. Open the Generate Painting Tool (Mondo Museum > Generate Painting from Image), and select your image in the Texture field.
  4. Press the Generate Painting Assets button. You'll see a Material, Mesh, and Prefab have been created in the same folder as your texture. An instance of the prefab will also be instantiated in the Scene.
  5. Your new mesh will appear in the Mesh field below the button. You can also manually select meshes from previously generated assets if you'd like to change the scale later. Using the scene view and maybe comparing its size to other reference items, set the scale to something you're satisfied with.
  6. Paste the Width (X) and Height (Y) values into the Wall Frame Item Dimensions on your exhibit item Scriptable Object (See the Exhibit Items page for more info on the Scriptable Object--just remember Sub Type needs to be set to Wall Frame to see the Wall Frame options).

ℹ️ Painting Wall Frames are automatically created at runtime using Wall Frame Item Dimensions, and the spacing between the frame and edge of the painting is determined by Wall Frame Padding. Mod support for creating new Wall Frame styles will be added soon.

Clone this wiki locally