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. 

Applying material to backfaces

Hi. I am trying to make an interactive sectioning mechanism. Until now it works great, but I want to be able to paint the backfaces of the object in a way that they can be perceived as a cross section. something similar to this: link text

To perform the cross section, I use a material that is transparent or opaque depending on the position of the pixel on either side of the section plane. That works Ok.

It seems that UE4 completely discards the backfaces so no material can be applied on them whatsoever. Of course, I can set the material to be two-sided, but then UE4 flips the normal of the backfaces so I can not discriminate if the pixel belongs to a front or back face using the classical dot product of the normal at the pixel and the view direction.

As you can see in the image, I can get (1) or (2) depending on the two-sided setting of the material, but I am looking for (3), assigning a constant color to pixel that belong to backfaces.

any idea?

alt text

Product Version: UE 4.10
Tags:
clips.jpg (273.3 kB)
more ▼

asked Mar 06 '16 at 03:23 PM in Rendering

avatar image

luis.hernandez
106 6 12 32

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

2 answers: sort voted first

Solved.. I discovered the TwoSidedTexturing material node. That makes the trick

more ▼

answered Mar 06 '16 at 06:11 PM

avatar image

luis.hernandez
106 6 12 32

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

Hi Luis. can you share the method with one you achieve result 3?

more ▼

answered Mar 01 '19 at 03:08 PM

avatar image

phillzz
6 2 3

(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