DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Odd shading mystery

Started by Dr PR, February 15, 2016, 12:03:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DrollTroll

Well, when planes are part of a solid, the fact that they have neighbors often gives a useful clue as to their proper orientation, regardless of point order. When they're just standalone plane entities, it's not necessarily clear which way they should be facing, as there's no "inside" or "outside" orientation to be determined.

That said, I really don't know why moving them in one way would cause them to shade differently than moving them by a different means.

25 years with DesignCAD

Dr PR

One thing I haven't checked yet is whether those funny planes cast shadows in the wrong direction. I'll bet they do. When they do the shadows may appear on upper surfaces a long way from the planes that are causing them, and it can be very hard to find the offending surface.

The stray shadows ruin images that are to be used for illustrations.

Phil
DesignCAD user since 1987

DrollTroll

Hey Phil,

I just 'fixed' your door using the new normal-flipping tools in the 2017 Alpha. How well does this version stand up to scrutiny with all the surfaces properly oriented?
25 years with DesignCAD

Dr PR

#18
V26.1x64 beta 6
Win 7 Pro 64

DT,

I opened your "fixed" file in V26.1x64 and shaded it. In all instances the light source was to the upper right.

Note: These are screen capture images.

In the first Gouraud shaded image notice that the shaded side of the rectangular "bumps" on the door are light on the right side and darker on the left as you would expect. But in the mirrored X copy the shading is reversed.

In the Phong image of the same view the shading and shadows are correct on both the original and mirrored copy.

Then I selected both copies and mirrored them on the Z axis.

In the Gouraud image in both copies the shading on the rectangular "bumps" is upside down for the upper and lower surfaces. Also, one of the facets at the top of the door is now dark - reversed normal.

Again, in the Phong image the shading and shadows are correct and the reversed normal facet shades correctly.

That file is hexed!

Phil
DesignCAD user since 1987

Dr PR

#19
V27.0x64 alpha 6
Win 7 Pro 64

I opened the modified "fixed" file from V26.1x64 in V27.0x64 alpha 6 and looked at it in Gouraud and Normals view.

The Gouraud views were the same as with V26.1x64 in the earlier post.

In the Normals view the mirrored X copy had all the normals reversed.

The Mirrored Z copies had normals reversed from the original and mirrored X version. So any mirroring operation is reversing all normals.

What is strange here is that the odd reversed shading seen in the Gouraud images posted earlier do not appear as reversed normals. Also, the dark facet at the top/bottom of the door seen in the mirrored Z images in the earlier post do not appear as reversed normals.

So if it isn't reversed normals that is causing the weird Gouraud shading, what is???

I have attached the edited file.

Phil
DesignCAD user since 1987

DrollTroll

I'll follow up in the beta forum.
25 years with DesignCAD