Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GL_COMBINE 2 Textures



Hi Alex,

On that note, is there a clever way to interpolate two textures and then modulate by local vertex lighting, in one pass with two texture units, on a Rage128? I ask the list because this is a current question on idevgames. Obviously you can do it with crossbar but that isn't available on all hardware.

I specifically solve this case by using a third tex unit - combine first with the two tex units, use the third to put in the lighting. I needed the third tex unit anyway for some alpha channel ops, so it works ok, but it does cause problems on a lot of 2 TU chipsets like the GF4-MX. :-(


Probably the easier way to do it (only with massive performance hits and game refactoring) would be a multipass algorithm and blending...you really pay for that in framerate though, especially on fill-rate limited hardware.

nvidia drivers only implement GL 1.1 or 1.3, so is it really safe to use TEXTUREn sources? Or must I fool around with texture combiners to be safe?

I always assume it isn't there...would be interesting if it secretly is though. :-)


*cheers*
Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >Re: GL_COMBINE 2 Textures (From: Alex Eddy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.