-
Notifications
You must be signed in to change notification settings - Fork 56
How to change the background? #40
Comments
Tanner, |
The latest version of the project in the master branch uses a new method for instantiating background objects. Please have a look at this page for an overview on how the new project works. It is less complex and easier to customize than before. In short, SynthDet's backgrounds are created in two steps. First, a bunch of primitive shapes are created, and then the textures and hue offsets of those shapes are randomized. If you look at the object named "Scenario" in the "SynthDet" Scene, you will see a list of Randomizers, each of which is tasked with randomizing one or more aspects of the environment. The two Randomizers expanded below are the ones that create and then texture the background objects. To remove the background, you can just disable the first one, named BackgroundObjectPlacementRandomizer. To put different textures on the background objects, you can modify the list of textures in TextureRandomizer. Similarly, the Randomizer named ForegroundObjectPlacementRandomizer is the one responsible for creating and placing foreground objects, so that is where would use the 3D models you used. Make sure you convert your models to Prefabs before adding them to the Randomizer though. Hope that was helpful. Please keep us updated on your progress. |
I added my own 3d models as described in CreatingAssets.md. Now I want to change the background images and remove the background objects. I tried setting the BackgroundObjectResourcesDirectory attribute to "" and set the BackgroundImageResourcesDirectory to a folder with some background images inside, but now the background is just blue and there sometimes are also some objects in the background.
The text was updated successfully, but these errors were encountered: