Jump to content

Image of the Day

BL00DG0R3
#screenshotsaturday #gamedev #indiedev https://t.co/SytiLEa4G5
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Texture transition

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Vanderry   Members   

252
Like
0Likes
Like

Posted 26 May 2011 - 11:40 AM

Hey people !

I'm looking for a way to smoothly transition from one texture to another, not like a gradient but rather like fading from one to the other over a time interval. I would also like to use the fixed pipeline. Should I use use blending, render one texture first and then render the other on top using some particular blend func? I haven't figured out how to use those with a fine precision value yet.

Thanks in advance !

- Dave

#2 haegarr   Members   

7327
Like
1Likes
Like

Posted 26 May 2011 - 12:02 PM

Blending yes, but not necessarily on the render target. Have a look at texture combiners.

#3 Vanderry   Members   

252
Like
0Likes
Like

Posted 26 May 2011 - 12:35 PM

Blending yes, but not necessarily on the render target. Have a look at texture combiners.


Interesting... Although when I try out the "Blend tex0 and tex1 based on a blending factor you supply", all my polygons turn out mono-colored and the lighting is gone. Did I mess up or miss some render state change?

#4 Vanderry   Members   

252
Like
0Likes
Like

Posted 26 May 2011 - 02:20 PM

Guess I should use glMultiTexCoord2f() instead. Now to fix that darn lighting... :P




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.