Announcement

Collapse
No announcement yet.

Runtime Mesh Component

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Downloaded the 4.16 plugin, all seems to be working great. Quick couple of questions, wondering if anyone knows about either....

    1) Converting from a RMC mesh to a Static Mesh. I saw in the notes this should be possible, “RMC -> SMC in editor. (new)” but cannot figure out how to actually hook this up in blueprints. Had a quick look in the docs and didn't see much.

    2) Updating an instance of a RMC, being used as a component inside a blueprint, from an existing RMC. For example, I have a RMC instance as part of an actor blueprint. I want to update this existing component at runtime, but currently cannot as far as I can tell. If using normal static meshes, I can just call Set Static Mesh, but can find no comparable for either the existing UE4 procedural mesh component or the RMC. Ideally I'd like to be able to call Set RMC Mesh and pass in an existing RMC, the result from a slice operation for example.

    Thoughts?

    Leave a comment:


  • replied
    Originally posted by Koderz View Post
    Just a quick notice to all that the marketplace has been updated. Got the notice an hour ago. As usual, let me know of any problems.
    Downloading now. Thank you very much indeed! You do the best work

    Leave a comment:


  • replied
    Just a quick notice to all that the marketplace has been updated. Got the notice an hour ago. As usual, let me know of any problems.

    Leave a comment:


  • replied
    Yes thats great news [MENTION=141752]Koderz[/MENTION], thanks again!
    What we can do for speed up marketplace approval? Its almost one month for 4.16 version...

    Leave a comment:


  • replied
    Very happy to see you still so much invested in this [MENTION=141752]Koderz[/MENTION]!

    Leave a comment:


  • replied
    Great to hear from you [MENTION=141752]Koderz[/MENTION] with the news. Itching to upgrade my project to 4.16... wish if Epic was faster at updating the marketplace.

    Leave a comment:


  • replied
    Async Collision Cooking and UE4.17

    For those of you who haven't noticed this on the UE roadmap... https://trello.com/c/BBq69iM1/144-im...ion-generation

    Yes I will be supporting that in the RMC for 4.17. This means that collision cooking, which is the biggest cause of hitching in the RMC today can be moved off game thread, and even doing multiple of them in parallel.

    I also just opened a new PR to Epic to add on a few things to cooking to allow for more control over speed vs quality of cooking, as well as to help in fixing one potential issue with the new async cooking. That can be found here.. https://github.com/EpicGames/UnrealEngine/pull/3704 hopefully it will make it to 4.17! (If that link shows up as a 404 for you, make sure you're logged into GitHub and have your account linked with your UE4 account)

    Leave a comment:


  • replied
    Originally posted by a_prototype View Post
    So far RMC has been great to use but now i hit a point where i need some assistance.

    My goal is to create a simple box with highlightable sides to drag and drop for resizing the aforementioned box. I got stuck at the highlighting part.

    My current approach is to generate the box variables using the CreateBox node and feed that into a CreateMeshSection node. Afterwards i parse the box variables to select the vertices by their normal direction to build 6 further separate Mesh sections - each side of the box. I was planning to use collision detection for easy highlighting of the 6 sections. Sadly i just can't get collision to work.

    I've only been able to get collision to work on a a simple blueprint actor with only one RMC carrying only one mesh section.
    Judging by the available info on the wiki, each section should be able to have its own collision, so using only one RMC to carry all the box sides should work fine, right? But maybe i overlooked something.

    Would anyone be so kind to explain to me the most basic way to achieve what i am trying to do - Or maybe go into some more detail about how collisions are handled in RMC? Do i always need to manually cook collision after creating a mesh section? Should it be as simple as to tick CreateCollision in the CreateMeshSection Node?

    Here's the current node network for building the sides:


    any kind of help is much appreciated!
    Not quite sure what you're getting vs trying to get. You should be able to turn collision on for any/all/none of the sections and it should just work. The caveat to that though is there's no good way to tell which side you're colliding with from a ray trace or whatever. That is something that's coming, but not yet. Just to make sure you're clear, the CreateCollision flag on CreateMeshSection creates a trimesh collision shape, that only works if UseComplexAsSimple is on for the RMC (most like it is since that's default) and you don't try to turn on "SimulatePhysics". The only time you should have to manually tell it to CookCollisionNow is if you want to query it with something like a ray trace in the same frame as creating it, by default collision won't update until the following frame.

    Leave a comment:


  • replied
    So far RMC has been great to use but now i hit a point where i need some assistance.

    My goal is to create a simple box with highlightable sides to drag and drop for resizing the aforementioned box. I got stuck at the highlighting part.

    My current approach is to generate the box variables using the CreateBox node and feed that into a CreateMeshSection node. Afterwards i parse the box variables to select the vertices by their normal direction to build 6 further separate Mesh sections - each side of the box. I was planning to use collision detection for easy highlighting of the 6 sections. Sadly i just can't get collision to work.

    I've only been able to get collision to work on a a simple blueprint actor with only one RMC carrying only one mesh section.
    Judging by the available info on the wiki, each section should be able to have its own collision, so using only one RMC to carry all the box sides should work fine, right? But maybe i overlooked something.

    Would anyone be so kind to explain to me the most basic way to achieve what i am trying to do - Or maybe go into some more detail about how collisions are handled in RMC? Do i always need to manually cook collision after creating a mesh section? Should it be as simple as to tick CreateCollision in the CreateMeshSection Node?

    Here's the current node network for building the sides:

    Click image for larger version

Name:	surfaces.JPG
Views:	1
Size:	224.5 KB
ID:	1129967

    any kind of help is much appreciated!

    Leave a comment:


  • replied
    Been away from the RMC for a while. Just trying to hook it up to start something, and can't even get the basics done.

    Can't I just fire an array of vertex positions and triangle indices at the CreateMeshSection method now and tell it to calculate the normals and tangents?

    Severity Code Description Project File Line Suppression State
    Error C2039 'TypeInfo': is not a member of 'FVector' DemoProject g:\repos\demoproject\plugins\ue4runtimemeshcomponent\source\runtimemeshcomponent\public\RuntimeMeshSection.h 542

    EDIT: Nm got it working using FRuntimeMeshVertexSimple. Excuse head-induced lack of patience :P
    Last edited by mid_gen; 06-20-2017, 08:06 AM.

    Leave a comment:


  • replied
    RMC Status Update

    Ok, so there's a couple parts to this update.

    First up. 15 minutes ago I sent the same version that's in GitHub master + the slicer to Epic for the marketplace. It had some issues and it took me a little bit to have time to look through them. Also picked up a couple minor bug fix PR's for the tools that are also included. I hope this version will make the marketplace within the next couple of days.


    Next, I have spoken to James Golding about the concerns I mentioned in my last post. For the foreseeable future the path of the RMC is back to normal. The only thing that has changed is some things I was debating in the future to assist in building the actual mesh are on hold indefinitely but the core of RMCv3 is unchanged and is back in progress. I'm hoping to have v3 done for the 4.17 release but my available time to work on this is pretty volatile so I can't guarantee anything.

    With that said, I will make the core of v3 available when it's ready (hopefully within 2 weeks) to anyone that wants to help test it (and by that I mean beat it to death), but it will lack most of the secondary tools like the normal/tangent calculation, tessellation, slicer etc. This will be solely the core which has been completely rewritten to serve as the foundation for the intended features of v3. Version 3 will be dropping all backwards compatibility with older engine versions beyond 4.16 as maintaining 7 engine versions is obviously a pain. So older engine versions will still have to use RMCv2. There will also be some breaking changes in the API. I will attempt to ease this transition, but there are some things that just need to change to move forward.


    Lastly, due to suggestions from multiple people, I have resubmitted the RMC for a dev grant. This isn't the first time, but due to the long hiatus of dev grants right as I submitted it back in October, it's been suggested to submit it again. Hopefully Epic will consider it as I'd really like to continue work on the RMC, and keep it free, but there's a practical limit to the amount of time I can put into a free component due to school and work.

    Leave a comment:


  • replied
    Originally posted by DasMatze View Post
    Thank you [MENTION=37074]Rumbleball[/MENTION] (and [MENTION=141752]Koderz[/MENTION] of course)! I finally found some time to test it and it works. I didn't know "sections" in static meshes were referring to material sections. Now I can finally make a very old project of mine happen.
    Glad that I could help. I could not achive most of the stuff without startup help from the community.

    Leave a comment:


  • replied
    Thank you [MENTION=37074]Rumbleball[/MENTION] (and [MENTION=141752]Koderz[/MENTION] of course)! I finally found some time to test it and it works. I didn't know "sections" in static meshes were referring to material sections. Now I can finally make a very old project of mine happen.

    Leave a comment:


  • replied
    Thanks for the update wilberolive, didn't realise it could take as long.

    Leave a comment:


  • replied
    Koderz mentioned that it had been submitted to the marketplace for 4.16 over two weeks ago now. Epic doesn't take that long, so I'm guessing something went wrong. We had the same issue with 4.15 too. Took about a month or so before it was updated on the marketplace.

    Leave a comment:

Working...
X