Jump to content
Sign in to follow this  
Guest Firestriker

GMAX lines

Recommended Posts

>Anyway, it may be that there is a combination of things needed>in order to get a gMax-drawn line to display, but it is>certain that without a Map Modifier, you will not see it in>the game.It is NOT a game - it is a sim! LOL


P3D SpacePort Team

Share this post


Link to post
Share on other sites

That's what they all say, Misho, but I cannot help but notice the big smile on your face!Best regards.Luis

Share this post


Link to post
Share on other sites

I am guessing a bit here but it could be filesystem related. Do you have some non-ready drives like an empty CD-ROM drive etc. ? Maybe have a look at your gmax.ini file and check the various pathes it lists that they all exist.Now to my question :-), with these lines, as you get closer to them, they appear as single pixel lines. Can these be made to look like filled polygons ? I guess I would have to use elements with filled polygons instead of lines ?Regards,Siggy


Siggy Schwarz

Share this post


Link to post
Share on other sites
Guest Firestriker

Gmax lines work fine, but you MUST give them thickness under the Mesh Settings. This is built outwardly from the "line" you draw. A thickness of 0.041' would be about a 1" cable, 0.083'=2", 0.5'=1' and so on. Set the number of sides to 3 (the minimum) for small diameters and increase the number of sides to suit your needs as you increase the thickness. Check off the Display Mesh so you can see what you are working with. Angle rotates the mesh around the center "line". Under Interpolation, you can set how many cross-sections there will be between each of your drawn points and how smooth curves are if any. You can change the way the points handle curves in the Modify Panel > Point Subobject mode by right clicking on a point and selecting Bezier Corner, Bezier, Smooth or Corner. When you have it the way you want it, convert to an editable mesh. Color or texture it as you like just as any other e-poly or e-mesh object. It doesn't have to have any modifier applied to it to use it just as a colored line, simply set its default color in the objects properties.Lou

Share this post


Link to post
Share on other sites

Thanks for the reply. It was related to disk space.Shez


Shez Ansari

Windows 11; CPU: Intel Core i7-8700K; GPU: EVGA GEFORCE GTX 1080Ti 11GB; MB: Gigabyte Z370 AORUS Gaming 5; RAM: 16GB; HD: Samsung 960 Pro 512GB SSD, Samsung 850 Pro 256GB SSD; Display: ASUS 4K 28", Asus UHD 26"

Share this post


Link to post
Share on other sites

Hello Lou,Thanks very much for your comments; it is always good to get an expert opinion.I wonder if you are not avoiding the problem that the rest of us are getting by converting your lines to mesh. This is a sensible solution, but you are not displaying lines in Flight Simulator at all, but mesh.Anyway, your remarks made me take another look at this problem, a little more in-depth although not covering all possibilities.I drew a line, any line:http://forums.avsim.net/user_files/134769.jpgDon't ask me what it is - I was just in an Escher frame of mind.Please notice the Mesh settings. I assume that they are only for display in gMax, and that the object remains a line as far as geometry goes, although I am probably completely wrong.I then tried exporting this scene and this is what I got:http://forums.avsim.net/user_files/134770.jpgA MakeMDL error! I have seen reports of this error before in the forum, but never really paid much attention as I had never gotten one. Until now.What is the cause of this error? Obviously, the path to MakeMDL is not missing, so it is rather that MakeMDL is not finding anything to export, I assume. Perhaps the FS graphics engine only displays meshes, so MakeMDL does not bother with lines (until they have been converted to mesh as you do, perhaps.) Only the FS Team can give the correct explanation, however, and I am only guessing. Probably incorrectly.So, as before, I went back and added a Map Modifier:http://forums.avsim.net/user_files/134771.jpgThis is the only change I made. No Material applied, no conversion to mesh, no Mesh Modifier. And voil

Share this post


Link to post
Share on other sites
Guest Firestriker

Luis,I know that drawing just a line will be fruitless, because by definition a line is made up of nothing but 2 points and has no volume or mass or surface, how ever you want to look at it. The drawing code that makemdl produces, "DrwTri", is based on 3 points and 3 edges to define a minium surface. The simple act of adding the UVW Map modifier gave the line editable mesh properties and is based on the mesh and interpolation settings that were last applied to the line. You DO need to have the "Display Mesh" option turned on or you will end up with just a string of points. You should be getting the Normals Mismatch error when you try to export just a line even with the modifier applied with out the mesh being displayed. I used the UV Unwrap modifier and I surmise that there are several modifiers that would have the same affect. You see this if you go one step farther after adding the modifier and then collapse the stack, as happens when exporting. Then WYSIWYG!Aircraft designers many times use tiny 3 sided cylinders to portray control cables or antenna wires which has the same result as drawing a line with 3 sides converted to an e-mesh. Something that we did not have before gMax and was used in FSDS a lot. FSDS also could produce the code to make lines based on the edges of a poly, and that was handy but a lot of times you might have an edge left over when you only need 2 edges of the poly for your antenna wires. This trick is now attempted with the line_ material in gMax but it doesn't work well in my opinion.Lou

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...