24

I have a problem. I am going to make a minecraft animation in blender. But when I put a minecraft texture on a 3d cube that is 16x16x16 it is very low resolution is there a way to get the texture in a better resolution or is there a way to make blender make the texture better?

I hope you have an answer. Thanks in advance

int_ua
  • 372
  • 2
  • 14
joapet99
  • 343
  • 1
  • 2
  • 4

3 Answers3

28

In addition to scaling the textures up in an image editor with pixel interpolation disabled, (as mentioned by Gunslinger)
Another method is to disable pixel interpolation right in Blender and save memory, and as already mentioned by Krivar, keeping the texture sharp even when close up:

Cycles:


Update

As of this commit, (will be in blender 2.71) texture nodes now have an option to change the interpolation method:

enter image description here

Using Closest will keep the pixels sharp.


Original answer:

You could use this technique, which uses a node setup to scale the UV map:

A variation of the original setup on BA

  • To add Nodes, press ShiftA > Add node in the Node Editor.

  • To create a Node Group, select the nodes you want and press CtrlG to make them into a group, creating the Group input and Group output nodes. Press Tab to toggle editing the group.

  • To use the above group, connect the UV output of the Texture Coordinates node to the UV input of the NodeGroup, and connect the output to the UV coordinates used to map your texture.
    (The Vector input on the texture node):

Example setup

Set the X and Y values to the X and Y dimensions of your texture.

Blender Internal:

Disable Interpolation and set filter to Box in Material texture settings > Image Sampling:

No interpolation BI settings

Viewport

You can disable interpolation in the Viewport by disabling Mipmaps in CtrlAltUUser PreferencesSystem:

Mipmapping disabled

gandalf3
  • 157,169
  • 58
  • 601
  • 1,133
5

Scale the texture to 512x512 in your favourite image editing software. Set interpolation to nearest, this is important.

Here is how it is done in photoshop:

Image size in photoshop

Gandalfs answer is IMO the right one.

Gunslinger
  • 6,392
  • 2
  • 28
  • 40
  • 4
    the answer by Gandalf is better, as you keep the tiny texture size. Also the textures will keep sharp even in extreme conditions. – krivar Aug 27 '13 at 08:30
  • Using GIMP. In the interpolation section you can choose between: None, Linear, Cubic, Sinc(Lanczos3). – joapet99 Aug 28 '13 at 13:01
  • 1
    None seems reasonable. But as everyone poits out, follow gandalfs answer. – Gunslinger Aug 28 '13 at 18:25
4

There doesn't exist a direct way to do this in Cycles yet it seems. However, a user on the ba forums has devised a node group for this, see Cycles: Getting rid of Texture Interpolation, it has an attached example blend.

enter image description here

For the 3d view, see How do I disable texture filtering?.

iKlsR
  • 43,379
  • 12
  • 156
  • 189