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. 

How to remove part of mesh(just like the door and window in the real world)

Hi there. Now I have two GameObject.One is the wall object,the other one is the window object. I want to eliminate some part of the wall object where the window object locate,just like the room in the real world..When the window is on wall,some part of the wall should be eliminated. There may be several door,window,furniture on wall and I want to finish it in C++... If you have any idea,please let me know.I will be really appreactive... Thanks a lot...

Product Version: UE 4.12
Tags:
more ▼

asked Aug 25 '16 at 02:59 AM in C++ Programming

avatar image

DennisDing
55 3 9 11

avatar image DennisDing Aug 25 '16 at 03:42 AM

Maybe I could just refresh the forward and backward panel.Calculate the new vector when window is on wall. then,call the ProceduralMeshComponent to refresh the mesh... I think this way may be work.If it does work,i will let you know

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

1 answer: sort voted first

Hey Guys... I have solved the problem by calculating the mesh vertices and triangles on my own...

I wrote a algorithm that spilt the mesh into several triangles and then use the ProceduralMeshComponent component. It works~ It look just like this ,you can see there are two square on the mesh

alt text

1.png (12.6 kB)
more ▼

answered Sep 02 '16 at 10:48 AM

avatar image

DennisDing
55 3 9 11

avatar image sbbg Oct 06 '16 at 02:59 PM

Hey, that sounds so cool. May you share your algorithm or implementation source code ?

avatar image DennisDing Oct 08 '16 at 03:54 AM

I have wrote the code on my blog...

Here is the code...

http://blog.csdn.net/u012385432/article/details/52387435

Sorry I wrote this blog in chinese,but I thick you could also read the code...

Let me know if you have any problem...

avatar image hangyu5 Nov 25 '18 at 11:22 PM

Hi, Ding

I'm sorry your blog is 404ed. I would really interested to take a look at your implementation. I'm just started on UE4, wanting to create a portal on walls/floors that a player can pass through (like opening a hole on a wall/floor). I would be great if you can share your code again!

(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