Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-30-2004, 09:29 PM   #1
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Texture matrix transforms on on multi texture?

Is it possible to do an eqiv' "set matrix to texture matrix" and use glRotate glScale and glTranslate when using multitexturing? I mean, is it possible to do such transformations on each different layer in multitexturing?

thanks in advance
Old 08-30-2004, 11:22 PM   #2
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
I haven't done much with multitexturing myself, but looking at the spec it says that there is a matrix for each texture unit. It sounds like the texture matrix that is affected by matrix operations depends on which unit is selected by glActiveTextureARB... so I'm assuming you could do something like so:

// do transformations for TEXTURE0_ARB's stack

glMatrixMode(GL_TEXTURE);  // Not sure if this is necessary, but wouldn't hurt
// do transformations for TEXTURE1_ARB's stack
Note: I'm reading this from an old spec I printed out long ago, and since the multitexturing is part of the core OpenGL 1.2 functions, the ARB extensions probably aren't necesarily needed anymore...
Old 08-31-2004, 11:36 PM   #3
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Thanks. I'll try that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flickering Texture tariqzi Linux - Hardware 0 10-24-2005 04:28 AM
How to render a window to a GL texture SilverEagle Programming 1 03-20-2005 11:03 AM
DDS texture Loading BenRichards Programming 0 11-04-2004 03:37 PM
OpenGL texture matrix rotation The_Nerd Programming 3 09-03-2004 03:11 PM
extracting and creating .wad texture files qwijibow Linux - Software 7 01-12-2004 04:24 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration