News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Aircraft rotations and the automatic rendering script

Started by jamespetts, April 27, 2014, 02:08:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

I have been working with Giuseppe (Milko) recently on some aircraft, particularly with respect to liveries and rendering. What we noticed was that the automatic rendering script did not correctly align aircraft. Aircraft need to be in the middle of the tile, so the "vehicle" rendering preset does not work. However, using the "normal" preset gives rise to at least one anomalous rotation:



See the rightmost render on this graphic. Giuseppe's (manually) corrected version is:



Does anyone have any idea why the automatic renderer is giving an anomalous graphic? Is it, perhaps, that the "normal" version of the script was intended only for buildings with four (cardinal) rotations, and therefore that the ordinal directions (of which the rightmost image is one) were not all adjusted?

It would be very helpful to be able to automate aircraft rendering - the misalignment of the rightmost image is noticeable when the aircraft is on the taxiway, which is unfortunate. If aircraft rendering could be automated fully, the speed of aircraft production could be increased, and it would be easier to add multiple liveries (which I am planning to do with Giuseppe's help to some of the existing aircraft at some point, as well as possibly assisting Giuseppe with liveries and rendering for new aircraft).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

No idea - Is that the SW image (as labelled in the blender output)? Of course you could just add an offset to the dat files, but the solution would be to track down the orientation and fix the camera location in the python script. Unfortunately I can't remember how I worked out the camera locations right now...

jamespetts

The image is North-West rather than South-West. Do you remember whether you modified all of the ordinal directions when adapting my adapted version of Zeno's script to the "normal" rotations, differentiating the "vehicle" rotations?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

It was the "vehicle" alignments that I added. The "normal" alignments were the old ones inherited from Zeno's script.

jamespetts

Hmm - perhaps Zeno could assist us; is he still around, do you know?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

jamespetts

With Zeno's assistance, I think that I have managed to fix that: here is the latest version of the script, with a corrected alignment for aircraft.

Example here of a correctly aligned aircraft graphic produced with the modified script:



Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

Great. Is that a new plane or a new livery for an existing one?

jamespetts

This is the 707-120 (we currently have a 707-420) in Dan Air livery. This is my attempt at altering the model, but Guiseppe is working on a better version with more accurate wing shapes and scale, so I suggest waiting for that.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.