LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-04-2004, 11:26 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Multitexture layer colors


How do I do the equivilent of glColor4f(...); on each layer in multitexturing?
 
Old 09-05-2004, 11:01 AM   #2
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Why is it that no body knows this? Even when I scoured the internet looking for this simple bit of info, I couldn't find anything. Why is it so secret?
 
Old 09-05-2004, 11:07 AM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
There's a bunch of code snippets when mentioning that function and multitexturing on google.
 
Old 09-05-2004, 03:07 PM   #4
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
I haven't done a lot of multi-texturing, but I'm not sure if what you want is possible. The color is not a property of each texture unit, it is separate and gets blended with the textures based on what you have your texture environment setup for. An alternative might be to do a multiple pass technique where you draw multiple polygons in the same space with the appropriate blending setup...
 
Old 09-05-2004, 10:17 PM   #5
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Dang the munkie's head!

Don't make me do multipass...

 
  


Reply



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
DVD Drives - Dual Layer or double layer? Groundhog1248 Linux - Hardware 2 09-23-2009 09:30 PM
Connecting on Layer 2, not Layer 3!!!! mattp Linux - Wireless Networking 3 11-29-2005 10:55 AM
Dual Layer ISO onto 2 Single Layer Medias iammike SUSE / openSUSE 3 05-11-2005 05:15 PM
Keybord layer Getafix Linux - Newbie 0 10-11-2004 08:28 AM
OpenGL multitexture The_Nerd Programming 2 06-14-2004 11:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:31 AM.

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