• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Power tower are 90 degree rotated

Messages
64
Country
italy
Hi Arno,
i'm trying to create power tower with these steps:


# place point POWERTYPE from POINT
HeadingFromNearestLine|FTYPE="POINT" AND power="tower"|power="line"|hdg

# convert points to polygons: only for scenproc v2
PointToPolygon|FTYPE="POINT" AND power="tower"|8;8|hdg|String;PowerPolygon|PowerTower

# create agn for power tower gen_powertower01 in file hazards.bgl

CreateAGNLibObject|PowerPolygon="PowerTower"|{54382ec5-b1bd-4a43-aa1a-4f5f529356c3}



As you can see, i use default gen_powertower01 , and i've this problem:

most of (almost all) power tower (red circle) are 90 degree rotated, like image

Power Tower.jpg


How can i solve problem?

Can i add 90 degree to hdg?
Or i must create a new rotated object and add it to autogen?

Thank you

Chris
 
Hi Chris,

Did you try to check the generated heading values in a GIS program? Then you can see if the heading was calculated wrong. Might be when there are multiple lines for example that the wrong one was picked to calculate the heading.
 
Hi Arno,
yes, i've checked with QGIS, heading was calculated correctly.
If i use same OGR data but compiled with scenproc 1.1 (and old parameter, without PointToPolygon step), points have same rotation angle of polygons, but when converted to agn are 90 degree rotated.

Here with 1.1
1.1.jpg


Here with version 2
2.jpg



Chris
 
So the heading is the same in both versions, but the model is rotated in v2? Sounds like it must be the step that places the agn or the point2polygon step that adds the offset.
 
Hi,

I tried to check in the source code what the difference is between v1.1 and the development release. But too many differences to see where this comes from.

So I'll try to setup a test case to reproduce the problem and work from there.
 
Back
Top