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"

Material expression custom node crash on mac

I use "SceneTextureLookup(UV, TexIndex, false)" to get scene texture in my Material expression custom node code. The code work fine on PC but crash on mac. And I pretty sure that "SceneTextureLookup(UV, TexIndex, false)" cause the crash. Because after I comment this line, it won't crash any more. Plz help me. BTW Is there any way to get the scene texture as texture object?

Product Version: UE 4.14
more ▼

asked Nov 26 '16 at 11:43 AM in Using UE4

avatar image

213 11 16 22

avatar image Nantuk Oct 31 '18 at 03:34 AM

Did you ever solve this? I'm getting this exact same crash issue, on UE4 4.18 using macOS High Sierra, on a Mac mini (late 2014). Can confirm it is the SceneTextureLookup like that crashes it. Same thing, its fine on PC, but crashes on Mac

avatar image wukakuki Oct 31 '18 at 06:10 AM

This problem has been around for a long time. I only remember that I changed the way of implementation. HLSL is the language under windows system. If you want to know about HLSL and GLSL. Maybe this website can help you. If you are convenient, you can tell me what you want to achieve, I can help you write the code.

I am sorry that my English is very bad. I hope that you can understand what I said.

avatar image Nantuk Oct 31 '18 at 02:34 PM

Thanks for your reply, I really appreciate it! ahh, so UE4 uses HLSL for Windows, but does a HLSL->GLSL conversion for Mac? That makes things trickier. What I'm trying to accomplish is a outer edge border around my characters. With SceneTextureLookup, I basically want to offset the character's pixels(object with custom stencil depth value) to give the illusion of a border. Here is the Material Custom Expression, and the Material itself (I stripped out the color stuff I was doing, for clarity):


alt text

avatar image wukakuki Nov 01 '18 at 10:38 AM
avatar image Nantuk Nov 01 '18 at 01:37 PM

what I want to do is more like this: https://youtu.be/icQYFo8fMrU In fact, I followed that tutorial to do it.

avatar image wukakuki Nov 02 '18 at 02:19 PM

So, Have you solved your problem?

avatar image Nantuk Nov 02 '18 at 03:54 PM

no I have not. Do you have any insights? I may just solve this without the use of shaders, by dynamically generating a duplicate mess behind the objects each frame, and just setting that duplicated meshes' color to whatever I like. If you know of any purely shader technique, I'd love any and all help.

avatar image wukakuki Nov 05 '18 at 03:40 AM

Please don't use your method, it will make your program more performance-consuming. If I have time in the near future, I will make a material for you, maybe tomorrow, after work.

avatar image Nantuk Nov 05 '18 at 07:13 PM

you would be my hero. Thanks!

avatar image wukakuki Nov 07 '18 at 05:19 PM

Please give me your email address or another contact information. So that I could send you my material file or project.

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

1 answer: sort voted first

So I learned this is a bug with engine version 4.18 (and earlier probably, as OP was on 4.14 at the time of asking). It does not crash on 4.21. If you want to stay on version 4.18, you'll need to switch out your custom material expression call to SceneTextureLookup for SceneTexture nodes using the material editor. In my case it sucked a lot in my case, as I really needed a for loop, which can only be done in custom material expressions, and not with the visual material editor. But at least it's no longer crashing.

more ▼

answered Jan 18 '19 at 03:02 PM

avatar image

16 1 5 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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