Question about texture mapping

Started by
4 comments, last by yasmin_bd 11 years, 3 months ago

I am a bit new in OpenGl. I have a curved shell-like cylindrical surface which has been defined in obj file format. Originally obj file does not have texture. I have a jpeg image file which I would like to map to the interior of the curved surface.The purpose is when inside the curve surface, it will exactly give the view of the 2D image. I want some suggestion how the following can be performed:

mapping the image to that surface;

when mapped into the interior 3D shell, giving the same effect of 2D image, i,e, it would look alike.

Please give me some suggestion.

Advertisement
Am I correct in assuming, that this is related to the 3D reconstruction post? In that case the 2D image would be a picture that you want to project onto the geometry? If thats true, look into light sources with projected textures and recycle the "texture projection" aspect.

Yes, I am looking for some options which would suit my project the best. Could you explain what you refer by "look into light sources with projected textures and recycle the texture projection" aspect"? Is it some posting in the gamedev forum?

I have attached three pictures. First one shows a part of the model. The second image shows the original texture. The third one shows whether texture can be mapped from outside to inside along the depth of the model to get the similar effect. Please let me know whether this kind of texture manipulation can be done.

No, I wasn't referring to a forum post. Just google for "projected textures" and check the images to see what I'm referring to. It's basically a technique in CG for light sources, where you can have a spot light project an image onto the scene, similarly to how a LCD projector can be used in the real world to project an image onto an arbitrary object.

My idea was to place such an projector in your scene at the very position, from which the image was taken and have it project that image onto the scene. It will probably get a bit tricky when you do this with multiple images/projectors, but you should first check with a single image, wether this approach works out for you.

Is it possible to map texture along the depth where texture image can be divided into contours and those contour images can be mapped along the depth of a cylindrical shell as I have tried to explain by the attached figure.

This topic is closed to new replies.

Advertisement