Path: chuka.playstation.co.uk!news From: "CRAIG GRAHAM" Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: TOMB RAIDER Date: 8 Dec 1997 14:33:56 GMT Organization: Intelligent Research Ltd Lines: 34 Message-ID: <01bd03e7$4706d240$6c0b0a0a@newcastle.twowaytv.co.uk> References: <3481B157.27CA@earthlink.net> <34831B6A.6201@peace.co.nz> NNTP-Posting-Host: 194.131.235.3 X-Newsreader: Microsoft Internet News 4.70.1161 James Russell wrote in article <34831B6A.6201@peace.co.nz>... > Linda J. Hodge wrote: > > > > has someone done any 3d animation while moving? > > If you mean adjusting the 3D model's vertices on the fly, then yes, it's > very simple. Once you load the TMD into memory, figure out where the > vertices are (use the TMD format file) and just adjust them as necessary. > I used this to do some morphing on a logo. > > If you want the lighting to be correct, you'll have to recalculate the > normals too, but if the movement is slight, it doesn't make much > difference. > ==James.Russell@peace.co.nz - 64(9)3730400 -Fax 64(9)3730401 There is a gotcha to watch for there - if you adjust a vertex to heavily, you may end up altering the clockwise/anticlockwise ordering of the points after translation - so your polygon will become a backface and wont be displayed. Easy to demonstrate, write a quick 'bounce-the-triangle' demo, where each of the three vertexs bounces of the sides of the bounding box on it's own path. The triangle will disappear at certain positions unless you create a second triangle with the vertexs in the opposite order. Craig.