Code Monkey home page Code Monkey logo

Comments (11)

Koderz avatar Koderz commented on July 17, 2024 2

Yeah, it's something I think I started support for but I'm not sure if I completed it. I will end up cleaning that up/improving it here soon as a part of RMCv3 which is when I'll also PR it to epic to hopefully get them to merge it as it's relatively simple changes and gives a massive improvement.

from realtimemeshcomponent.

bw2012 avatar bw2012 commented on July 17, 2024

It looks like branch with async collision cooking cannot be compiled with UE 4.15.
The method UBodySetup::CookCollision is absent in this version.

from realtimemeshcomponent.

Koderz avatar Koderz commented on July 17, 2024

There's engine changes needed to support that, if you're using the 4.15 source branch. Merge this branch into yours. https://github.com/Koderz/UnrealEngine/tree/CollisionCooking_AsyncSupport_4.15 then it should work.

from realtimemeshcomponent.

doggy1232 avatar doggy1232 commented on July 17, 2024

Thank you for the reply!! If I could ask one last favor. Could you tell me the specific files that are changed? I am not using git with my source build and so I can't really merge the branches. I am sure I can find a work around but it would help. Although it might be a large amount of files to list, if that's the case I could just look through it or use git to compare the two builds and then just work from that.

from realtimemeshcomponent.

doggy1232 avatar doggy1232 commented on July 17, 2024

Or wait... could I just paste your repository version in my source version and then replace all duplicates with your source? That sounds like the best way.

from realtimemeshcomponent.

Koderz avatar Koderz commented on July 17, 2024

That would likely revert any fixes Epics pushed to 4.15 since I created that branch. You could look at the revision history to see the changed files. I'd be careful just overwriting those files as well for the same reason as above.

The only commit to that branch related to collision is https://github.com/Koderz/UnrealEngine/commit/3e6ed701cde151de1dd868a0037d19446ce93ad0

from realtimemeshcomponent.

doggy1232 avatar doggy1232 commented on July 17, 2024

Thank you! I got it all working. This asset is amazing by the way! I am making a voxel based planet generator with marching cubes and the slowest part about it is the collision generation and It is the only part I could not run in parallel. This should help a ton!

from realtimemeshcomponent.

doggy1232 avatar doggy1232 commented on July 17, 2024

It works amazingly! No stutters at all. But I was wondering. Is there currently a way to cook the collision data in another thread without a reference to an RMC and then later send it to a newly created RMC? Right now I am just using the thread pool and that is great but it has the potential of not creating the collision in time for the player to stand on it.

from realtimemeshcomponent.

doggy1232 avatar doggy1232 commented on July 17, 2024

Sounds great! For now It's not a problem so I will wait till then. I appreciate the help!

from realtimemeshcomponent.

doggy1232 avatar doggy1232 commented on July 17, 2024

There is another Issue I'd like to inform you of in case you didn't already know. If I run a collision baking process asynchronously and then while the thread is still running, I end the play session it will crash the engine. The only error is this:

Error in thread pool 2

from realtimemeshcomponent.

abecks avatar abecks commented on July 17, 2024

@doggy1232 Sorry to bother, any chance you can provide an example of how you are using the async collision cooking? Is it as simple as using the static async helpers?

from realtimemeshcomponent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.