2
$\begingroup$

I want to make some 3d models of pixel art. I started by adding a plane, adding a texture to it, added loop cuts to my plane, 15 loop cuts because it's a 16x16 texture, then I selected the blank faces and deleted them.

As I extrude this plane, A > E > $0.1$, the texture messes up on the edge of the item, as shown below

enter image description here

Although not all faces mess up on the edge, a lot still do. I tried recalculating normals, unwrapping the object again, but I ended with the same problem, no change at all. Though I may have done it wrong, since I never did it before.

I tried smart UV project and cube projection, but they just mess it up even more.

Does anyone have a solution to this?

$\endgroup$
0

1 Answer 1

2
$\begingroup$

The error results from anti-aliasing / inaccuracy / interpolation of the UV across faces. A solution is to get each face to read from a single point in the image.

This involves a couple more steps than it should, IMO.. it should not be necessary to split the geometry to do this, seams should do the job... but still, in 2.91, they don't.

You've probably already done most of this.. starting in the flat, with a simple plane:

  1. Subdivide your plane with 15 cuts for 16x16 pixels, as you have.
  2. Edit mode, Edge, All selected, right-click menu > Edge Split
  3. UV Edit.. U Unwrap > Project from View (Bounds)
  4. With the pivot in the UV Edit window set to 2D cursor, select all, move faces so the bottom left of the map is at the bottom left of the texture, select the vertex there, and Shift S snap the cursor to it.
  5. Scale the map in X and Y so each face covers a pixel..

enter image description here

  1. And as above, switch pivot to 'Individual Origins', and scale the UV faces to 0.
  2. Back in the 3D View, AltM Merge > By Distance, weld the faces in the geometry back together.

Now the result of an extrusion or Solidify modifier will be clean.

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ Took me a while to figure out why it wasn't working, when I realized I needed to do this with a fresh project, as this must be done on a none extruded plane. Thanks! $\endgroup$ Commented Dec 11, 2020 at 16:39
  • 1
    $\begingroup$ Thanks to you, here's my first small project on 3d pixel art in blender! ibb.co/wWbkydK $\endgroup$ Commented Dec 11, 2020 at 16:54
  • $\begingroup$ @MaxAnimator Yay! Thanks for sharing! Will edit answer, to make it a bit clearer. $\endgroup$
    – Robin Betts
    Commented Dec 11, 2020 at 19:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .