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"

Do I have to duplicate the vertices that are shared between each section in CreateMeshSection?

I'm using CreateMeshSection to create a grid.

Since I want to later in the game update the mesh during run time, I believe it's important to split my mesh into sections instead of having one giant section for everything.

My question is simple: In order to split my mesh into smaller sections, do I have to duplicate the vertices that are shared between each section? I ask because if not, I wont be able to reference the vertices in my triangle array (which is an index buffer).

Also, if I already have the entire data for the mesh, is there anything I can do to not have to copy each array item into smaller TArray sections so I can pass to CreateMeshSection?

Any info is much appreciated. Thanks!

Product Version: UE 4.12
Tags:
more ▼

asked Aug 05 '16 at 03:55 AM in C++ Programming

avatar image

quinx
108 4 7 13

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

1 answer: sort voted first

Short answer, yes yo do. Not so short, it depends on what you are going to do with it. If you will forever have just one smoothsurface all the way you can get away with loading all vertices once. However, if you, for any reason, want to split or seperate one part from another you need duplicates. Otherwise you would get a non-manifold mesh, which is by definition not allowed.

more ▼

answered Aug 05 '16 at 07:24 AM

avatar image

NoobsDeSroobs
2.6k 104 33 174

(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