PDA

View Full Version : Stopping Automatic Texture Generation



Efreet
06-01-2010, 07:30 PM
OpenGL has a neat function to assign texture coordinates automatically with glTexGen. My problem is I want to apply this to only half of my mesh. (or only one side of the mesh) Can anyone tell me how I can do this? Thank you so much in advance.

I'm so sorry for posting this in advanced section, but I already asked beginner section and couldn't find answer anywhere else :( I spent two full days on this with no real solution. Please help ;(

This was the original thread:
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=278478#Post2784 78

Alfonse Reinheart
06-01-2010, 09:03 PM
Automatic texture coordinate generation is not for this kind of texture mapping. For what you're wanting to do, you should get an artist to go and manually determine the texture coordinates. An automated mapping is almost never going to look right (not for 2D textures, at any rate).

Efreet
06-01-2010, 09:28 PM
Thank you for your input Alfonse!
Although this was a no brainer for you, one little saying from a pro programmer can really help a newbie out.
"Automatic texture coordinate generation is not for this kind of texture mapping." <- That one sentence helps me out a ton from frantically searching for the answer for days.

I guess I thought there would be another short function that can stop automatic texture generation kinda like glClipPlane so I was looking for it for days. Now I'm gonna try projective texturing to obtain a cylindrical map, as someone else suggested.


I was just about to delete this post because this doesn't belong here, although I've been desperate. But since this thread got a reply from a pro, I'll just leave it for the moderator to decide its fate.

and Thank you again Alfonse!

ZbuffeR
06-01-2010, 11:51 PM
With Blender, you can quite easily unwrap very complex geometry.
http://www.aktasway.com/blog/2009/03/02/unwrap-in-blender/
http://wiki.blender.org/index.php/Doc:Manual/Textures/UV/Unwrapping_a_Mesh
http://video.google.com/videoplay?docid=4350275175555419734#

Efreet
06-02-2010, 09:21 PM
Wow, that was really cool Zbuffer.
That is pretty much what I needed plus a video demo.
You made a link for my other thread too :eek:

The world is a better place because of the people like you, at very least the 3D world :D
Thank you all!