How to map a photo on a 3D surface in PHP?

I am working on customizing a webapp product and I am faced with the problem of matching user uploaded images or texts to complex 3D surfaces on my website. It is easy to apply a simple skew and there are libraries for this, I'm looking for something more powerful. I have photographs of my products, as well as the corresponding 3D models of setting surfaces (for example, a woman’s chest with a chest has a rather complicated surface if I want to show it from different angles).

Is there a good tool for this kind of operation? Either server side (PHP) or client side (HTML5, js) ...

At the moment I am only running Image_3D , but this does not allow texturing.

+4
source share
1 answer

I did something similar with pov-ray, although my use case was simpler (images in 3D books, so my model was basically just a cuboid).

If you define your model in a pov-ray script, then when loading an image in the background, you can use pov-ray to render a model with this image as a texture.

http://www.povray.org/

+2
source

Source: https://habr.com/ru/post/1382348/


All Articles