x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

SceneTexture:CustomStencil emits only zeroes on 4.18.2 Mac Sierra+Metal

I create the following test project with one map "TestMap". I enable depth stencil pass "enabled with stencil" in project settings. I create one large cube, custom depth pass enabled, customdepth 201. I create an infinite extent postprocess volume. I assign it a custom material DebugMaterial, which looks at SceneTexture:CustomStencil and displays green if R is 0 and DebugFloat4Values on the CustomStencil value otherwise. Here is the project:

link text

I test this on two machines.

Machine 1:
Laptop, Windows 10 version 1709 with Unreal Editor 4.18.2. Laptop with "display scaling" enabled. Lists its video card[s] as "Intel(R) HD Graphics 630" and "NVIDIA GeForce GTX 1060".
Result:
Looks good.

alt text

Machine 2:
Mac OS X 10.12.6 (16G29) with Unreal Version: 4.18.2-3794801+++UE4+Release-4.18 . Retina macbook. Lists its video card as "Intel Iris Graphics 6100 1536 MB". I believe the editor runs with Metal because I've seen it in stack traces and when I do standalone mode I see SF_METAL_SM5 in the window title. Result:
I get only green [value 0].

alt text

Another weird thing: If I switch into Buffer Visualizer->Custom Depth mode, then switch back to "Lit", I get a freeze frame of the cube with the debug values printed over it as expected, except that (1) the debug numbers are the nonsensical value "600", and (2) it does not "animate", if I move the camera it remains frozen. I don't know what this means.

alt text

Additional notes:
I have filed a separate bug about "buffer visualization->custom stencil" not working as expected, again on 4.18.2 mac. https://answers.unrealengine.com/questions/739638/buffer-visualization-custom-stencil-does-not-anima.html

Expected behavior:
Custom stencils should work on OS X Metal. This older answer https://answers.unrealengine.com/questions/300521/customstencil-not-working-on-mac.html implies it worked in 4.11.

If for some reason custom stencils don't work on Mac, or don't work with certain video cards or something, this should be clearly documented, and the editor should display whatever helpful warnings are needed when running in Metal mode instead of just emitting garbage values.

Product Version: UE 4.18
Tags:
more ▼

asked Dec 25 '17 at 11:42 PM in Bug Reports

avatar image

mcclure111
86 5 9 15

avatar image DesperateZero Dec 26 '17 at 03:22 AM

The bug I found is bit mask not work on metal or open es.I had reported it but no response.

avatar image sytelus Dec 29 '17 at 01:44 AM

This is causing issue in AirSim as well. Related bug: https://github.com/Microsoft/AirSim/issues/702

avatar image mcclure111 Jan 05 '18 at 05:09 AM

Update: I upgraded to High Sierra 10.13.2 (17C88) (and XCode 9.2). This issue appears to be fixed in High Sierra. I get the same behavior in High Sierra I get on Windows. However, given that this bug appears to affect compiled software, not just the editor, this still seems to be a problem. Shipping games running on Sierra could silently work incorrectly and this could be difficult to debug.

avatar image Jon X ♦♦ STAFF Feb 16 '18 at 04:29 PM

Hello,

We've recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form

Thanks

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question