On Fri, 2007-03-09 at 15:18 -0500, Jim Wilson wrote: > Hi Everybody, > > > Just to clarify, I wrote the textranslate and texrotate animations (they are > animations) > while doing the displays for the 747. They are for sliding and rotating > texture mappings > on an 3D object, and have nothing per se to do with digits. The first > problem I was trying > to solve was sliding the ASI and Altitude tapes on the PFD. Then it was the > rose animation. > > The problem of producing the alpha and digital displays (it was never > about "numbers") had been dogging me, and in the end I never got > around to really solving the issue. It just so happend that I was > able to use the texture translation for placing numeric values by > creating a texture that had a bunch of digits and sliding it around. > By adding the step parameter I was able to make it either scroll > smoothly like the altitude value or just snap the digit in place as on > most digital displays. IIRC the IAS display also has a sort of > odometer "drum" behavior even though it is a flat electronic display. > Note that the animations were also used for displaying some > alphanumeric NAV data. > > Essentially, I'm saying that Andy was right. Also, there really was > no intention to handle fractional numeric values or digits for that > matter. It just happened that other modelers picked up on the > technique, as there was no other method available, and it went quite > a bit farther than was ever intended. > > In that context, the addition of the bias tag doesn't really make a > whole lot of sense, but if it helps someone out, that's fine. These > functions are a useful way to do all kinds of things with sliding and > rotating textures, but they are a very cumbersome way of doing > alphanumeric data displays. > > > Best, > > Jim
They are very cumbersome for alphanumerics, but they work. In the step animation, <offset> and <factor> are applied post-step. The <bias> act as a pre-step <offset>. So: (step(Property)+offset)*factor Becomes: (step(Property+bias)+offset)*factor I thought that might be a useful tag to have in the textranslate toolbag as well as solving an immediate problem I had. I also had in mind adding a pre-step <factor> tag as well, but never did... That reminds me, I need to update models-howto to add the bias tag... Thanks, Ron ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel