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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

[Feature Request] Mesh volume/surface area

This is something that's been a hurdle for my studio for some time. UE4 doesn't provide stats for mesh Volume, Surface area, or normal based-scale. The engine's calculation of mass works well enough for volume but it's not immediately obvious. Currently we're trying to calculate shell weight from a mesh (hollow mesh w/ shell of x thickness times resource density) but it seems almost infeasible. If we were able to project a mesh inward (every vert by normal direction, can be visualized in material by displacing vertexnormalws times distancevar) and calculate the volume of the difference it would be easier, but that doesn't seem to be a feature either. As volume and SA are very common geometry/trig concepts I'm confused why they're not available. Dynamic weighting is integral to the game as things like momentum/force/fragility can be derived from it, and I don't think these properties would be difficult to implement/expose.

Product Version: UE 4.13
Tags:
more ▼

asked Oct 21 '16 at 10:56 AM in Everything Else

avatar image

infinidox
14 6 7 11

avatar image jakwarne Oct 25 '18 at 01:59 PM

Hi guys,

Was there any development on this in the last years? I would like to calculate a volume as well in Unreal.

Thanks

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

1 answer: sort voted first

Hello,

For you information, calculating surface area is trivial, and consists of calculating areas of all triangles. Volume is a bit more tricky. This paper covers it. In case with shell of a mesh, it is even more tricky. If your shell thickness is uniform thought the mesh, you could roughly estimate the volume from surface area and thickess. You could also calculate the volume of the shell by subtracting inner volume from outer. This is also trivial, if both inner and outer skin are convex. You could also approximate volume via some sort of voxelization. As you can see, there is hardly any one size fits all solution.

I guess precise calculations like that are not used very often, so I doubt that this will get implemented reasonably fast, but good luck with it!

more ▼

answered Oct 21 '16 at 12:13 PM

avatar image

Deathrey
7.8k 130 31 292

avatar image PC-hris Mar 31 '19 at 07:30 AM

You mention calculating surface area as being trivial but fail to give an example. I would like to be able to do so in the material editor in UE4. Is this possible?

(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