Jump to content
  • Advertisement
Sign in to follow this  
yasmin_bd

OpenGL Question about texture mapping

This topic is 2074 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!