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. 

Reduce texture resolution via Material Editor

Hi guys! Sorry for my english, i'm from Italy ;) So, i'm plannig what to do to increase performance in my game and now it's time to do texture lod. I decided to use different materials for each lod, so i can take full control over it. For avoid waste of disk space, my hope is to create only one material per object which reconize mesh lod levels and set the appropriate texture resolution by scaling the original 4k file. I'm relatively new on ue4, coming from unity5, so i don't know if it's possible; but i guess that load 4k, 2k, 1k and 512 version of the same textures for then use them will make my final application quite two times bigger.

I know that i can set texture res in compression settings, or that i can use scalabily settings; but is not what i'm trying to do. However, if there're other ways to achive a texture lod by camera distance THAT will be what can help me. Thanks in advance!

Product Version: UE 4.15
Tags:
more ▼

asked May 04 '17 at 04:23 AM in Using UE4

avatar image

Omnisir Games
46 1 6 6

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

3 answers: sort voted first

Ok, after some attemps i found a way. I post it here for those who will want to do similar projects.

I still need to create more versions of the same material, but it doesn't waste quite any disk space for simple ones. As you see, mine weight just 1kb. alt text

In Material Editor, select your texture and at "MipValueMode" set "MipBias (relative to the computed mip level)". A Bias node will appear under Tex node, so you can attach to it a simple constant node where you will set the level you want. In this case i'm reducing the 4k texture of this barrel to 512x512.

alt text

1.jpg (354.3 kB)
2.jpg (698.3 kB)
more ▼

answered May 04 '17 at 02:18 PM

avatar image

Omnisir Games
46 1 6 6

avatar image Bob3DGames May 19 '18 at 05:06 PM

I've just tried this and I get this error on the TextureSample node: "MipBias is only supported in the pixel shader".

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

materials automatically Mipmap (the word for texture LOD) depending on camera distance.

more ▼

answered May 04 '17 at 12:04 PM

avatar image

Luos
9.2k 285 64 330

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

Yes, i know. But i prefer to control it MANUALLY. Indeed, Unreal say me that the texture streaming pool is full, so i guess that mipmap don't do is job nicely. It seems also by checking optimization views. Maybe the problem is the size of my objects, maybe not 'cause i'm using the 3th person sample. Don't care, i just want a manual control over it.

more ▼

answered May 04 '17 at 01:42 PM

avatar image

Omnisir Games
46 1 6 6

(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