Import: Issue with normals on rotated parts

Ryan Douglas

Administrator
Staff member
legoman and technoid have separately reported anomalies that we believe we recognize (here and starting here). I'm starting a common thread here that will include a suggested workaround.

High-level summary:
We think this is not a new issue, exactly, but has probably always been lying in wait and is only now able to be seen. After some investigation we are currently uncertain of the exact cause and whether it's actually a RealFlight issue. There is a workaround that is a bit annoying but consistently successful.

Details:
Our team put our heads together today to look at the above reports and we think we know what's happening in these cases.

To quote from a previous post:
RealFlight now respects the normals set in your 3D modeling software. Previously, it would attempt to smooth normals by averaging the surrounding faces. This is subtle enough that it wasn't even clear it was happening, and it took some real digging on our part to get to the bottom of it. Knowing what to look for should help.

That alone is enough to potentially lead to differences between earlier versions of RF and DX11-based Evo, depending on how the normals are set in a model. If they are very close to what RealFlight would have generated on its own, then any discrepancy would be difficult to detect. On the other hand, to the degree that they differ, things could look quite different in Evo compared to earlier RF versions. Note that "different" in this case does not mean bad; the new result should be a more accurate representation of your source art in RealFlight. But it definitely could be confusing or alarming if comparing results from different versions.

With that change in place, we have encountered an issue that occurs somewhat regularly with rotated parts of a 3D model. One of our artists, Ted Graves, wrote up the following explanation along with instructions for correcting the problem. @legoman, @technoid, and anyone else making custom content for Evo who encounters this type of issue, please try the following.



The problems in these screenshots look like an xforms normal issue to me.

In the past our fbx import code would completely recalculate the vertex normals of imported objects. We made a change recently to properly import the vertex normals of imported files to give artists more direct control over their work. Naturally, this exposed some preexisting problems that we couldn't see before.

This issue is one we've run into as well that we're still sorting out. It has to do with the way vertex normals are calculated on objects with rotated transforms. It appears in 3ds Max as well, so we theorize that it may be an internal issue with some modelling apps.

Here are the steps to fix it in 3ds Max. We'll use an aileron as an example.
  1. Unparent the affected aileron, and unparent all of it's children.
  2. If the aileron has a custom pivot, create a cube, and use the Align tool to copy the pivot of the aileron to the cube. To do this, enter adjust pivot mode. (Fig.1) Select the cube, click the align tool, then select the aileron. Make sure it's set to the Align tool and not Quick Align. (Fig.2)
  3. In the dialog that pops up, check the X, Y, and Z axis in the Align Orientation (Local) section, then hit ok. (Fig.3)
  4. Select the aileron and reset the XForm by selecting Reset XForm from the Utilities tab, then clicking Reset Selected. (Fig.4)
  5. Select Edit Normals from the drop down menu in the Modify tab. (Fig.5)
  6. Select all the vertex normals for the aileron and then click Reset. (Fig. 6)
  7. Convert the object back into an editable poly again, and transfer the pivot from the box back to the aileron using the Align tool like we did in steps 2 and 3. Delete the box.
  8. Reassign parents and children to the aileron.
  9. Reexport the FBX and reimport to RealFlight.
 

Attachments

  • Fig.1.png
    Fig.1.png
    14.6 KB · Views: 6
  • Fig.2.png
    Fig.2.png
    9.2 KB · Views: 7
  • Fig.3.png
    Fig.3.png
    13.4 KB · Views: 9
  • Fig.4.png
    Fig.4.png
    13 KB · Views: 9
  • Fig.5.png
    Fig.5.png
    28.2 KB · Views: 8
  • Fig.6.png
    Fig.6.png
    22.3 KB · Views: 7
I imported one of my old models into RFE as a test for the rotating parts paint issues, and yes, the landing gear doors do not show any texture\color on them as can be seen in piture-1, so I followed the procedure as in post #1, and the colors are now shown on the landing gear doors, picture #2, picture #3 top view of model.
 

Attachments

  • Vixen gear doors missing-1.jpg
    Vixen gear doors missing-1.jpg
    348.4 KB · Views: 14
  • Vixen gear doors missing-2.jpg
    Vixen gear doors missing-2.jpg
    331.6 KB · Views: 14
  • Vixen gear doors missing-3.jpg
    Vixen gear doors missing-3.jpg
    306.6 KB · Views: 14
Back
Top