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"

How do I create a 'clipping plane' effect?

Hi, i'm very new to unreal engine, I would like to know if there is a way to create a clipping plane for make a cut effect on object, like if they pass through a stargate or a portal, the game i'm planing highly count on that feature and may be used on more than hundred object

thanks in advance

Product Version: Not Selected
Tags:
more ▼

asked May 29 '14 at 11:41 PM in Rendering

avatar image

megatlantis
23 4 5 9

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

4 answers: sort voted first

Absolutely. You just need to supply a worldposition where you want that blend to occur. Use the Worldposition node and subtract the location of the portal object. Divide by the number of units you want the gradient to be, if its masked and not translucent it won't matter as it will always be hard edged. If your portal is on a cardinal axis (ie, facing the X or Y axis perfectly) then it will be very easy as you just use that worldpos-portalpos value by componentmasking either the X or Y value. If you need to rotate the portal, then you need to either rotate or transform that resulting position by the portal rotation.

You might need to multiply by -1 to flip the gradient, and you may need to add an offset value.

Make this a material function. Then you just make any material you want to have the portal fade to be translucent or masked. if you wanted to be able to move the portal and instantly and cheaply update all the various materials that use it to point to the correct new location or rotation, use a material parameter collection.

For cool glowing edge effects, you can use that same gradient but manipulate the width or offset, or even use the gradient to look up into a texture to map a custom color gradient to objects as they intersect the portal. That is similar to how the imulsion lake material effect in Gears of War was accomplished.

more ▼

answered Jun 04 '14 at 07:12 PM

avatar image

RyanB STAFF
2.1k 56 24 118

avatar image megatlantis Jun 05 '14 at 12:36 PM

Thanks a lot for your answer !! that actually work well.

avatar image NoobsDeSroobs Jun 23 '16 at 07:35 AM

I am a programmer and have very little experience with materials. Could you upload the material or show what you did to achieve it? Thanks.

avatar image Orkney Dec 08 '17 at 11:57 AM

Is there any way to fill in the hole in the mesh which is created by the clipping? To kind of 'cap' the ends?

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

If you're trying to clip a mesh, then this video is worth a look.

more ▼

answered Dec 24 '16 at 01:55 AM

avatar image

Jin_VE
4.4k 32 77 42

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

Is there any way to fill in the hole in the mesh which is created by the clipping? To kind of 'cap' the ends?

more ▼

answered Dec 08 '17 at 11:57 AM

avatar image

Orkney
6 1 3

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

I'm also interested in this. Could you explain it a bit more detailed Ryan? And If you're creating a material, this effect will take place at the whole mesh I think?

Is there a way, if you have i.e. a big ship which is one mesh, to let it pass through the portal with a realistic effect? I mean like having a clean cut where the portal is located?

more ▼

answered Nov 17 '16 at 02:11 PM

avatar image

Speckulous
535 22 10 36

avatar image RyanB STAFF Nov 17 '16 at 03:09 PM

Sure. A simpler way to do it is to do:

dot( (WorldPosition - Portal Center) ), PortalNormal)

If the object goes into the portal, the result will be negative. otherwise it will be positive. This is from a more general plane equation.

(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