27th October 2008, 12:39 PM | #1 |
Junior Member
Junior member
Join Date: Jun 2007
Posts: 7
|
Texture clamping and repeating
I'm looking for clarification and/or correction on the clamping of texture and the texrep parameter. In essence, what should the clamping mode be when no texrep parameter is specified? That is, should an image start wrapping around the other side even if the texture coordinates are 1.0?
My question stems from switching from custom OpenGL code to render AC3D models to OpenSceneGraph. Our custom code would set the OpenGL clamping mode to not repeat (CLAMP_TO_EDGE I think) unless there was a texrep line. Well, OSG behaved differently and I'm not sure which one is considered "correct." In this thread on the osg-users list: http://www.mail-archive.com/osg-user.../msg17192.html I have attached an example model (may not have show up on the archives yet). If our custom code behavior is not considered correct, what is the correct way to change the AC3D model? |
Tags |
clamping, texture, texture clamping, texture repeat |
|
|