Rendering incomplete portions of textures

Started by
1 comment, last by Scribe 18 years, 7 months ago
Hi guys, was hoping someone could clue me in here. I have a game, where it renders a map, above this it renders a box that contains pictures and text. I have recently added a scroller function so that more can be fit in the box, my issue is that when i scroll, images stay above the box instead of disappear as they partially go off the box screen. Now, i can't simply place the text a layer below because the map still needs to show around the box above the text. I cant simply adjust the image size because the texture is squashed. Does anyone have any ideas how i can just render parts of the images instead of the whole image? [Edited by - Scribe on September 11, 2005 9:02:14 AM]
Advertisement
adjust your texture coordinates...

they go from 0.0 to 1.0, no reason you have to use the whole range.
[size="1"]
i was using ints, you'd think they should go up2 10 or sumthin in that case :P cheers m8

This topic is closed to new replies.

Advertisement