Jump to content

  • Log In with Google      Sign In   
  • Create Account


Question about texture mapping


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 yasmin_bd   Members   -  Reputation: 121

Like
0Likes
Like

Posted 15 January 2013 - 10:20 PM

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.



Sponsor:

#2 Ohforf sake   Members   -  Reputation: 1664

Like
0Likes
Like

Posted 16 January 2013 - 02:50 PM

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.

#3 yasmin_bd   Members   -  Reputation: 121

Like
0Likes
Like

Posted 16 January 2013 - 03:12 PM

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?



#4 yasmin_bd   Members   -  Reputation: 121

Like
0Likes
Like

Posted 16 January 2013 - 07:01 PM

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.

Attached Thumbnails

  • cylindricalmodel.png
  • texImageOriginal.png
  • texImageOriginal_modified.png


#5 Ohforf sake   Members   -  Reputation: 1664

Like
0Likes
Like

Posted 17 January 2013 - 03:36 AM

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.



#6 yasmin_bd   Members   -  Reputation: 121

Like
0Likes
Like

Posted 17 January 2013 - 09:50 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS