View Full Version : GLSL UVW mapping
04-29-2011, 08:55 AM
how to implement texture mapping using u, v, w coordinates.
05-03-2011, 11:57 AM
What do you mean? Please be more specific!
3D texture coordinate specification? 3D texture lookup?
GLSL has support for 3D textures, and you can specify
3D texture coordinates as vertex attributes or texcoords
in OpenGL. The component naming convention for a vec3
of texcoords in GLSL is s,t,p, not u,v,w, but that is
a minor detail.
If you want to generate texcoords, you really need to
provide more detail if you want anyone to understand
05-03-2011, 12:07 PM
This is basically a continuation of this thread (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Main=57147&Number=2965 03). He's gotten his hands on a model from... somewhere, but he doesn't know what the texture coordinates actually mean or how they were intended to be used.
Or, to put it another way, he can't be more specific.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.