View Full Version : 2 questions, one about gltexsubimage2d, and one about keyframe modeling?
01-10-2002, 12:43 PM
Ok here goes, can someone give me an example useing gltexsubimage2d? I wish to use it to create a morphing effect from one texture to another, but my book dosnt go into detail. Suggestions, as well as code, and psdo code is always welcome. Now for keyframe modeling? If i use milkshape to create a man, then export the verticies, texture info, and keyframe info to a file, how do I use the keyframe info in a time based sequence. I want to use time intervals because of frame/sec variations. Any suggestions????
PLEASE help.// thank you
The glTexSubImage2D question is answered in the other thread you started.
I supposed the key frames has a time assiciated to it. Just interpolate the vertices according to the amount of time passed since last keyframe, and the total distance between the two keyframes. Example, if you have a keyframe n at 4 second, and next, n+1, at 7 seconds. The current time is 5 seconds. That means you are 33% from key n to n+1. Then interpolate between the two keyframes. v[n]*(1-0.33) + v[n+1]*0.33.
P.S. Don't ask two completely different questions in the same post. The threads tends to get quite messy when there's two discussions going on in the same time. Ask two separate questions instead.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.