allenai / ai2thor

An open-source platform for Visual AI.
http://ai2thor.allenai.org
Apache License 2.0
1.15k stars 215 forks source link

Is it possible to customize the texture of objects? #459

Open FutureXiang opened 4 years ago

FutureXiang commented 4 years ago

Hello,

I wonder if I can customize / change the texture of objects (e.g. add an image patch on the wall / change the appearance of a vase) ?

Thank you!

winthos commented 4 years ago

We don't currently have an action that can customize the texture of an object. There is an undocumented action called ChangeColorOfMaterials you can use to randomize the color of all objects in the scene, however the ability to swap or replace textures is not exposed via the API.

event = controller.step('ChangeColorOfMaterials')

This action is experimental and is not guaranteed to work with the latest version of iTHOR, so please use it with discretion.

If you truly wanted to customize the texture of an object or set of objects, you could change them yourself via the Unity Editor, but you would then need to make a local build of the framework after making any edits you want.

FutureXiang commented 4 years ago

@winthos Got it, thank you!