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

MSFS20 Problems with pivot point

Messages
1,843
Country
australia
I have created a concrete bridge with Blender made up of a few different mesh objects some with modifiers such as array and decimate. I have APPLIED all modifiers and then did a JOIN so that I have only one mesh in the collection (see image below which has two collections for the demonstration). I also placed both the origin and 3D cursor at the bottom left of the model so that I could rotate at that point.
I export as an extended gLtf for MSFS and placed the model using MSFS SDK however when I use the rotate gizmo it only rotates in the centre.

In an attempt to try and workl out what is causes the problem in MSFS SDK I then imported the gLtf created into Blender and noted that when I rotate on the Z axis the model appears to rotate on two axis (see image where I have rotated on the Z axis).
In an attempt to work out what I could be doing wrong I created a PLAIN mesh cube, moved the origin and 3D cursor to a bottom corner, exported as extended gLtf and then imported that gLtf (it is the rad colored cube in the image) and it rotates correctly on the Z axis.
In fact when I rotate the bridge on any axis it appears to rotate on multiple axis.
It rotates correctly when I open my Blender file (ie not import the exported gLtf) so I feel that it must have something to do with the export to extended gLtf but I cannot work out what.

Any ideas why my bridge model won't rotate correctly? Note how the bridge has rotated on the Z axis and ALSO tilted over yet the red cube has not.

I have now attached the gLtf and bin file.

windand_bridge_rotate_problem.jpg
 

Attachments

Last edited:
The blend file Is needed to help,
But
Anyway, your bridge Is translated and with scale (look at the transform panel in the upper right in Blender, the reference point of your mesh Is translated from world origin by 140 meters, you want that at 0)

Select All
Tab to go to EDIT mode
Select all
Press G and move your bridge to world origin j Blender (0,0,0 where the x y Z axis Red Green Blue Met)
The Orange dot must be at 0,0,0

Go back to object mode
Select all
Aplly all transform

Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
Not exactly sure what you meant. If you meant to do all that before or after applying all modifiers and Join or after..
Also I understand that the origin (orange dot) needs to be at world origin but was there an easy method to move the bridge to world origin or manually drag on each axis until it was at world origin - is there a 'hot key' to do that automatically?
I have attached the blender file of the bridge after all modifiers have been applied and all meshes Joined.
 

Attachments

You can type in values in the transform panel

The steps i have written in the above post are meant to be applied before "Apply all transform"

(Basically starting from your screenshot)

If you "apply transform" before moving the mesh in edit mode, the Orange dot Will jump right to world origin in Blender (0,0)
(That happens to be in the middle of you bridge)
So when exporting to msfs your pivot point Will be in the middle, and this Is not what you want

Your goal Is to mode that support leg (and so the whole bridge) to world origin
So both Orange dot and the leg Will be at world origin and if you apply transform nothing fancy Will happen


Tonight i can send you the correct Blender file if you still don't manage to solve


3fbc9ca762bf6fa57965067d598c6985.jpg


Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
Thanks. Looks good. I had a 'play' with it just now (moved the bridge and the origin also moved but the 3D cursor remained at world origin so set the origin to 3d cursor) but will do it 100%b tomorrow.
 
I think that I was successful. I set the location and rotation values to zero in the transform panel, ensured the 3D cursor and origin were set to where I wanted them AND were at 0,0 (world origin), did a Ctrl A and selected Location and also Rotation (I also noted ALL) which I have NEVER done before and now realise that they in fact exist and need to be used to 'set in concrete' various things as well as SCALE the only one I had used before. I exported to gLtf and it now rotates correctly.
You have once again brought things to my mind I wasn't aware of before (and perhaps with intuition should have realised).
Thanks again.
 
Last edited:
Back
Top