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"

Creating a room floor in Augmented Reality using procedural mesh

Hi All

I am trying to create a room floor using the procedural mesh component. I want this in an AR app, where the user touches the screen to lay down vertex co-ordinates and the presses a button to generate a mesh based on those vertices. I can get this working when the user places three vertices but after that I'm lost on how to script UE4 into using more than three vertices to create a square for instance, then up to a more complicated room surface. alt text

In this first part I am getting the touch co-ordinates from the finger and using the Apple ARkit to get real world co-ordinates.

alt text

In the second image I am then storing those co-ordinates into an array that is then driving the triangle array and UV array, both of which do not work. I am also spawning an object at the locations to show a position has been stored.

alt text

Lastly I am calling a custom event that creates the mesh based on the vertices arrays I have stored, through a simple button on a widget.

I have looked at a few things that go through the proper indexes you should use when creating a square etc. but nothing that would allow me to scale this to a more complicated surface.

any help would be appreciated.

Product Version: UE 4.17
Tags:
more ▼

asked Jan 03 '18 at 02:42 PM in Blueprint Scripting

avatar image

Lutherbrian
31 2 5 6

avatar image Stiffler69 Jul 07 '18 at 08:01 AM

Hi did you manage to solve the problem.? I'm trying to do the same thing using the handheld ar template, but can't figure it out.

avatar image paultranp Apr 22 '19 at 03:59 AM

up !!! Creating a room floor in Augmented Reality using procedural mesh !!

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

0 answers: sort voted first
Be the first one to answer this question
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