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"

Multi-material performance

How is perfomance of meshes with with multi-materials appiled to them ? I know it was pretty bad with UE3. Are there any improvments on this subject ?

The reason I ask is because multi-material simplify workflow for more complex stuff. Especially architecture where I can just slap on buildings set of tileable textures each in unique material slot without worring about unique masks or other stuff.

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 03:54 AM in Rendering

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1988 9113

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:54 AM

really interested in knowing this as well.

lately I've been toying with the idea of improving my workflow by leaving behind the whole concept of 'baking normalmaps from hi-poly geometry' for modular level meshes (ie. big things like walls, floors, stairs, etc), and rely on vertex painting to give some flavor to the repeating tiled textures (much less UVMapping time as well), and leave all unique detail to the actual geometry.

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

1 answer: sort voted first

Hi Lukasz,

Each material results in a separate draw call and draw calls have some cost to them. How many draw calls (or "sections" when looking at primitive stats) you can support in your game is largely dependent on what hardware you're targeting. Modern midrange PCs running D3D11 have lower overhead per draw call than older PCs. But lower end laptops have slower CPUs and the cost will hurt more. It's a tradeoff you will have to make for your project.

You can consider using material layers (see the demolet for an example). That is the method we used for constructing materials in the Infiltrator demo though this does require painting mask textures. The upside is that it reduces draw calls and you can have smooth transitions between materials. The downside is that it increases the per-pixel cost of your material which can affect your framerate especially at high resolutions on older GPUs.

Also you can leverage distance culling to help reduce draw calls on lower spec machines if that makes sense for your game.

I hope that helps!

more ▼

answered Mar 11 '14 at 03:54 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1988 9113

avatar image eyosido Sep 08 '17 at 05:39 PM

I guess this comment also applies to landscape materials? I.e. it is better to use a single landscape material with lots of blended layers inside the material rather than one material per ground type?

(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