How to create previews of materials dynamically?

ahmbouth
Wed, 27 Dec 2017 11:30:11 +0000
Cinematics & Media

Hi

I’m making an architectural app (blueprints) where it is possible to visit a house or an apartment and change objects materials. To do that there is an UI that shows buttons with the materials preview or thumbnails so user can click the one he wants. But for now i’m using textures i made with Photoshop, and what i want is to be able to make dynamic thumbnails (texture) or materials, because i have hundreds of them now, and i need it to be automatic.

So my question : is it possible to have a camera somewhere in the scene with a sphere or a cube in front of it, and each time i want a preview , i can just apply the material to that mesh and take a '“picture” of it so i can use it as a texture ? or is there any other way to do that ?

thanks

7 posts - 3 participants