Board index FlightGear Development Aircraft

Texrotate of a rectangle

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Texrotate of a rectangle

Postby wlbragg » Mon May 28, 2018 12:06 am

Can you use texrotate on a rectangular texture?
I'm having trouble getting it to work correctly.
In this example texture, would the center point (green) for the texrotate animation be x =.25 and y =.50 assuming i want to rotate the red dial?
I am animating the red circle as if it were a number dial like for the ALT. The black squarish object (lower left) would be the window object that the red number texture rotates through.
Image

This used to be a square texture 1024x1024 and the red dial would have been in the lower left quadrant. Its center point was x = .25 and y = .25 and it worked correctly. What I don't understand is that for this new 1024x512 texture x = .5 by y = .5, while still wrong, actually appears to be closer to the correct uv coordinates than what I thought it should be at x = .25 by y = .5.

Any suggestions as to what I am doing wrong or not understanding?
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7609
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 8 guests