Git Product home page Git Product logo

Comments (12)

BrahRah avatar BrahRah commented on September 26, 2024

Doesn't happen with this version.

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

I managed to get the issue with this version too. I don't know how but sometimes the uv projection is just lines like this:
Screenshot 2023-10-12 15:32:26

from resprytile.

ionthedev avatar ionthedev commented on September 26, 2024

click this when extruding edges to make new faces
image

It should mediate the issue as long as your world units are set to None, this will make each grid 1 pixel large

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

@ionthedev I'm not modeling, I'm painting on a finished model. I've noticed some things. It mainly happens when painting in a certain angle:
Screenshot 2023-10-12 18:53:13

Or when the object is small:
Screenshot 2023-10-12 18:58:25

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

With and without correct face attributes resprytile collapes the uv into that one line.
UV before resprytile:
Screenshot 2023-10-12 18:59:50

UV after painting with resprytile:
Screenshot 2023-10-12 18:59:58

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

I remember blender having had issues with small objects and modifiers/face selection if this is related then maybe a good workaround would be a slider that temporarily increases the objects size without increasing the pixel count. Kinda like zooming in and out but increasing mesh size instead.

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

I've done some more tests and it's possible to get rid of the bug by increasing the size of the object, then using the sprytile paint brush, sizing it back and using the sprytile paint brush again.

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

The pixel projection seem to not work correctly when this is done tho:
Screenshot 2023-10-13 18:27:12

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

Ok it's not just with small sizes and certain angles it also happend to a large object when facing like this:
Screenshot 2023-10-13 18:33:45

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

This should not be closed..... it's a serious problem...

from resprytile.

ionthedev avatar ionthedev commented on September 26, 2024

Resprytile only UV's faces when selecting from the tile palette and generating them that way, For this to have happened, you had to have created new faces and from what I can see in your screenshots the model wasn't unwrapped when you began texture painting.

Resprytile and sprytile adjust the UV of the face you are modifying through means of extrusion, fill or bridge. Unwrap your model and tell me if it works

from resprytile.

BrahRah avatar BrahRah commented on September 26, 2024

Blender already had issues unwrapping it:

Screenshot 2023-10-31 11:35:17

I fixed up the uv with zen uv to look like this:
Screenshot 2023-10-31 11:39:51

But when I wanted to paint the palette didn't show:
Screenshot 2023-10-31 11:38:35

So I couldn't test it. A button to open and close the palette would be nice. I'll test it again once the palette shows up again.

Also I've noticed that blender has issues with objects that are smaller then 1 blender unit.

I had to do this:

def is_plane(obj):
    # Define a threshold to determine if an object is a plane
    plane_threshold = 0.1  # Adjust this threshold as needed

    # Get the dimensions of the object
    dimensions = obj.dimensions

    # Check if one of the dimensions is significantly smaller than the other two
    for dimension_index in range(3):
        # Get the current dimension based on the current iteration
        current_dimension = dimensions[dimension_index]
        # Create a list of the other two dimensions by excluding the current one
        other_two_dimensions = [dimensions[dim] for dim in range(3) if dim != dimension_index]
        # Check if the current dimension is significantly smaller than the other two dimensions
        if current_dimension < plane_threshold * min(other_two_dimensions):
            return True

    return False

For my own addon in order to check if the object was a plane or a 3d object. Maybe some of resprytiles issues derive from that blender issue too.

from resprytile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.