Hello!
I am kinda new to this topic and seem to be a little bit stuck.
I am currently trying to build a mobile app, where i can load one or more pictures, and use those as a texture for an 3D Object. I created the Object in Blender and unwrapped it.
What i am trying to do is, managing those multiple pictures kinda like ‘layers’ in photoshop, and when i click a Button, i want them to be put together on one ‘layer’ (would be a texture then) and to use the created texture as texture of the object.
This works fine for a single picture, because all i have to do is load the pic as texture and place it on my object. But for multiple layers i don’t know how to do this.
I tried different things.
My first approach: I created a Shader that is capale of loading multiple textures and loads in the layers by a naming convention. This works ok, but doesn’t really cover the layer hierarchy because it just overlays the textures.
My second approach: Using a camera output as render texture. Making a ‘Snapshot’ of it and putting the snapshot on the object. The problem with this is, that setting up the correct parameters of the cameras viewrect is pretty painfull, because i have to keep the aspect ratios and size exactly the same as the texture i take a picture of, otherwise it won’t fit to the unwrap of my model! Since i want to be able to do this with multiple different models and textures i would like to get this to work dynamically so i don’t think this is of any good…
Does anyone have tried something like this before? Any ideas on what would be the best practise to achieve what i am trying to do?
Any help would be highly appreciated!
Thanks in Advance
Bob