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"

Runtime Mesh Generation C++

Im trying to create an actor that will procedurally generate a mesh at runtime. I know UE4 has recently got a new method to do this with blueprints (Procedural Mesh Component) but I want to implement this in C++. Can this method be used in C++ or do I need to use the older method on the wiki.

New method: https://docs.unrealengine.com/latest/INT/BlueprintAPI/Components/ProceduralMesh/index.html

Old method: https://wiki.unrealengine.com/Procedural_Mesh_Generation

Product Version: UE 4.9
Tags:
more ▼

asked Oct 01 '15 at 10:15 AM in C++ Programming

avatar image

FlipFlopJon93
69 16 14 15

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

1 answer: sort voted first

I'm using ProceduralMeshComponent in a full C++ project and it's working like a charm.

The tricky part was in YourProject.Build.cs :

  1. add "ProceduralMeshComponent" to the PublicDependencyModuleNames

  2. add "ProceduralMeshComponent/Public" to the PrivateIncludePaths

  3. directly use UProceduralMeshComponent (or like i did, implement you own component based on UProceduralMeshComponent to get the generation stuff inside)

That's it !

more ▼

answered Oct 01 '15 at 10:30 AM

avatar image


1.4k 47 32 103

avatar image FlipFlopJon93 Oct 01 '15 at 06:59 PM

Perfect, Thank you very much

(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