Hej ! Thanks, I did it in the second option: I first feed the vectors (0,0,0), (0,0,-1) and (0,1,0) to the inverse of the modelview matrix of the camera, and got a camera position, a target, and an up position which I could then interpolate using a cam node, a target node and a second target node for the up vector.
Afterwards, I just extract the interpolated values, feed them to gluLookAt (up replaces roll) and voila ! a nice camera track .-) Created nodes for the camera position, a target and > If i'm correct, the first option is faster than the second option.I don't > know about the third option. > I have a number of OpenGL modelview matrices that describe a number of > cameras, and would like to interpolate between the camera views along > a time track using Lib3DS - which approach would you recommend: > .) Creating camera objects and everything needed for it > .) Simple objects, and transforming the matrices into position and > rotation tracks ? (or is that needed above, too ?) > .) only use lib3ds' quaternions and their slerp function, do the rest > myself > > glad for any hints you can give me :-) > > Servus, > Gernot > > -- > T----------------------------W-E-L-C-O-M-E------------------------------T > O The Austria <=> Sweden <=> Germany <=> Netherlands connection..... H > | http://www.mpi-sb.mpg.de/~gziegler | http://www.lysator.liu.se/~gz E > \-----------------------------F-U-T-U-R-E-------------------------------/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > lib3ds-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lib3ds-devel > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > lib3ds-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lib3ds-devel > Servus, Gernot -- T----------------------------W-E-L-C-O-M-E------------------------------T O The Austria <=> Sweden <=> Germany <=> Netherlands connection..... H | http://www.mpi-sb.mpg.de/~gziegler | http://www.lysator.liu.se/~gz E \-----------------------------F-U-T-U-R-E-------------------------------/ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ lib3ds-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
