• 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.

Gp 0.0.58

GHD

Messages
12,244
Country
england
There seems to be a problem using zoom and the horizontal scroll-bar.

These three pics show the position of the texture arrowed at the initial entry followed by a zoom and two scrolls:





 
Don,

Can you please look at the attached files.

The lines shown below have been defined with the same texture but the aspect ratio is completely different on the two lines.



In fact, the spacing on the right was initially the same as that on the left so I doubled the width, but now the one on the right is about twice what it should be and the one on the left is about 1/4 of what it should be.

ADE file, .txt files and textures attached.
 
Last edited:
Re the different spacing, because you are using an undimensioned texture, the vertical strips are brilliant ideas whereas the strips on the left are standard lines on am undimensioned texture. (Brilliant ideas are single segment lines and single segment llines on undimensioned textures are brilliant ideas.)

If you dimension the texture as 28m wide, the results should be more uniform.

Re the zoom/scroll issue:
  • Is the texture offset vertically a result of you moving the object to show where the texture is or did it offset itself during zoom/scroll.
  • When I bring up the line for edit, the texture is center-screen and zoom/scrolls don't seem to affect it. Does the problem only exist on create or do you also get it on edit.

Don
 
Thanks Don, that fixed it (almost) :D



I would need to double the thickness of the line.

Regarding the texture move, it can happen on create or edit. It can also cause a crash if one clicks on "Cancel".

Jon should have a log of one of the crashes.
 
Hi Don,

Yes, I see the same thing with the scroll bars.

It only happens with lines that have more than one segment.

It happens with the horizontal and vertical scroll bars.

It happens with horizontal and vertical lines.

I think it is only a visual issue, since if you click OK and then edit the line, the texture appears to be centered on the line again.

1. Create a textured line. The line will appear in the GP Editor in the middle of the screen, with the texture centered on the line.
2. Zoom in until the texture fills the screen and the scroll bars appear.
3. Move the horizontal or vertical scroll bar to one end or the other. If the line is visible, you will see it move around on the texture.
4. Zoom back out. You will see the texture is no longer centered on the line, and it may have even moved to a different line style.
5. Click OK and then edit the line.
6. All will be back to normal.

PS. Now that we have the line style displayed in the ADE tool tip, it would be great if that same information would be displayed in the GP Editor when editing a line. :)

Hope this helps,
 
PS. Now that we have the line style displayed in the ADE tool tip, it would be great if that same information would be displayed in the GP Editor when editing a line.
Give 'em an inch and they'll take a mile. ;)

Don
 
I've just discovered that, to define the width for a new line, the line must be created as the first ADE_GP operation after ADE is started. I suspect this is something I broke yesterday.

Don

EDIT: It's an initialization problem and only occurs if the previous line was an undimensioned line. Now fixed.
 
Last edited:
Hi Don,

The direction of lines doesn't seem to influence the texture mapping.

Eg. I drew two pairs of lines with the same texture and expected the texture to follow the line direction but, they are all textured the same way :confused:





Does this mean I need to define another texture with the "slant" reversed?
 
Eg. I drew two pairs of lines with the same texture and expected the texture to follow the line direction but, they are all textured the same way
Actually, they are not textured the same way. When you reverse the direction of a line, effectively, you invert the texture - which isn't apparent with the texture you are using.

(On the ADE display, you define a line with two or more points. Once you specify a width, ADE generates a poly(s) with CCW winding. The "anchor vertex" (vertex 0) is always placed to the left. The result is that lines drawn from right to left are inverted.)

So yes, if you want the slashes to go the other way, you'll need an additional texture definition and corresponding addition to the texture sheet.

Now, before you come up with another "brilliant idea" - like controlling texture direction with a lines_def entry - yes, it could be done that way, but don't bother. I want to finish this project someday.

Don
 
So yes, if you want the slashes to go the other way, you'll need an additional texture definition and corresponding addition to the texture sheet.

You obviously don't know your program ;)

Flip works perfectly :D
 
Yes it does.
Only, if you dare to change the length of the line, you are in for trouble.

gppolylinetexturing.jpg
 
Which line are you referring to and what is the trouble caused by changing the line length?

Don
 
Hi,

I use line textures with a fixed size, so they display properly in the editor. So this discussion is about using those "sized" textures. If you are using a line texture where you do not have the sizes fixed in the Texture_Def file, then perhaps you should start doing that?

With single segment lines, the stretching and shortening of line segments works OK for me - they retain their texture proportions no matter how long or short they are. Each foot of line length is textured over a specific part of the texture.

Even when the line has multiple segments and you lengthen or shorten one segment, the Editor will reset the texture so the average length is used as the default size. This should result all segments having the same texture proportion, but it could end up larger or smaller than it should be under a few rare circumstances. I don't see how Don could change this behavior, so you may need to perform a second step in this case - lengthen or shorten the line in the GP Editor to get the same texture proportion (the spacing of your diagonal lines along the runway) as before. Do this with the resize buttons in the Editor.

Hope this helps,
 
Yes it does.
Only, if you dare to change the length of the line, you are in for trouble.

Not at all ;)



At the moment it is using only two "dimensioned" textures with 10 lines to allow for the different "slant" directions.

Edit. It is unfortunate that the size is specified in Texture_Def rather than in Lines_Def. This means the use of multiple textures for different aspect ratios.
 
Last edited:
Yes, you need to group line textures with the same aspect ratios onto the same texture. Any others would need to be on separate textures.
 
Back
Top