Giter Site home page Giter Site logo

modeling-cloth's People

Contributors

codywinch avatar the3dadvantage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

modeling-cloth's Issues

Grab tool not working

@the3dadvantage
I tried it and it worked really well, except for the grab tool. I tried clicking around and pulling but it just didn't work. I really love the addon, it really speeds up cloth stuff. Thanks :)

btw is there a feature to collide with other objects? that would be amazing ;)

Can't get vertex locations with modifiers without memory leaks in ram

There is a bug in the collision system when the collider object has shape keys. I'm using: me = ob.to_mesh() to get the location of the vertices with modifiers applied, for armatures and stuff. When I do bpy.data.meshes.remove(me), the shape keys from the duplicate mesh are still in bpy.data.shape_keys. They keep piling up until I run out of ram. I can't figure out a way around this. If anyone has a suggestion please let me know.

Thanks!

UV Shape need update

Hello
I use this great addon on blender 2.79 very well,
but on blender 2.79.4 get this error

Traceback (most recent call last):
  File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 395, in execute
    create_uv_shape()
  File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 341, in create_uv_shape
    uv_to_shape_key()
  File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 238, in uv_to_shape_key
    divide_garment(ob, dict)
  File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 210, in divide_garment
    linked = find_linked(ob, vert, v_list)
  File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 189, in find_linked
    vert = new_verts[-cull]
TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.

location: <unknown location>:-1

Please, update it.
Thank you for this super addon!

Blender 2.79, MacOS: Select Pins in Edit mode causes error

I just downloaded the latest version (28-jan) of the addon.

When clicking "Select Pins" while in edit mode, the following error is thrown:

Traceback (most recent call last):
  File "/Users/robw/Library/Application Support/Blender/2.79/scripts/addons/Modeling-Cloth-master/ModelingCloth.py", line 1295, in execute
    bpy.ops.object.select_all(action='DESELECT')
  File "/private/var/folders/41/lg3yp2gn7652vfg5m5fmg0dr0000gn/T/AppTranslocation/F8C9C582-44C4-42E7-9FC0-24E7FA27D743/d/blender-2.79.0.app/Contents/Resources/2.79/scripts/modules/bpy/ops.py", line 189, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.select_all.poll() failed, context is incorrect

location: <unknown location>:-1

Clicking the Select Pins button in Object mode works fine.

To reproduce on Blender 2.79: take default cube, mark as Modeling Cloth, hit TAB to go to edit mode, click "Select Pins".
I cannot produce on the daily build (MacOS, 2.79.2), as the addon doesn't seem to work at all in that version.

Sharp corners collider sticking out + tests

Hi! I love this addon, so first of all, THANK YOU for making it available!

I have an issue with sharp corner colliders and tried some workarounds, with no success. Unfortunately I know no python, even though your plugin certainly is very inspiring as a reason to start studying it.

On this case, the cube, what I've tried so far is this:

  • adding subdivision/faces to the collider object doesn't seem to help,
  • adding more margin to the collide value of the cloth doesn't help,

adding some collide margin to the collider object seems to help a bit, because of the distance, but I have to use extremely high value that leave a big gap & the cloth seems to get more slippery on it (?)

I attached some gifs of what happens depending on the cloth subdivision. It seems to happen when the faces don't fall flat against the collider. Again, I don't know python and I apologize if this doesn't help much.

Hope this can be useful to anyone willing to check this out, or if there's a workaround I'm very interested in knowing it. Thanks!

1lowpoly
2midpoly
3higherpoly2

Mass-per-vertex with weight painting

Planning to add a new vertex group that would control the mass at each vertex. Having trouble accessing vertex weights quickly because of python api limitations. Looking for a way around this... For now I can include a button that updates them once.

Create Pins causing error on 2.79

I'm using Blender 2.79 on MacOs.

As per you demo on youtube, I created a cube, subdivided it went back to Object mode, marked it Modeling Cloth and hit Play. When setting Inflate to a positive value, the cube inflates.

So far, everything works fine.

When I click Create Pins, I get an error:

Traceback (most recent call last):
  File "/Users/robw/Library/Application Support/Blender/2.79/scripts/addons/Modeling-Cloth-master/ModelingCloth.py", line 921, in modal
    pos = queryMousePosition()
NameError: name 'queryMousePosition' is not defined

location: <unknown location>:-1

Traceback (most recent call last):
  File "/Users/robw/Library/Application Support/Blender/2.79/scripts/addons/Modeling-Cloth-master/ModelingCloth.py", line 921, in modal
    pos = queryMousePosition()
NameError: name 'queryMousePosition' is not defined

location: <unknown location>:-1

Would you know how to fix this?

TIA,

Rob van Wees.

Seg fault for collada_export

Blender 2.79 with macOS Sierra and with High Sierra crashing, minimal re-create is activate modeling_cloth to plane and attempt default collada export.

blender 2.8 support

I just heard about this yesterday and watched your video tutorial.. this looks amazing!

Is there any chance that this addon will be updated for 2.8?

Using Grab on meshes with Array, Bevel, Mirror or Solidify modifiers causes an error

Using Grab on meshes with Array, Bevel, Mirror or Solidify modifiers gives a following error:

Trackback (most recent call last):
File "...\ModelingCloth.py", line 2020, in modal main_drag(context, event)
File "...\ModelingCloth.py, line 1979, in main_drag vidx = [v for v in obj.data.polygons[face_index].vertices]
IndexError: bpy_prop_collection[index]: index 512 out of range, size 256
location: :-1

The error is reproducible 100% of the time and appears when trying to Grab vertices generated by mentioned modifiers (no error when grabbing base vertices). Subdivision Surface, Multiresolution and other modifiers that also generate mesh work just fine. Weird.

Also it would be cool to set a radius and curve falloff for Grab. Just sayin'.

Grab Tool Glitched

Big shout out to @RichColburn. Thanks for making this addon available. Amazing work!

Just been taking it for a first spin (so way to go). Looking at various sites on the Internet gather this glitch is no new but still thought some feedback could be helpful. I'm Running Blender 2.83 (Win 10). If I add a mesh plane and don’t transform it, then grab works fine. If however I add a mesh plane, transform it (e.g. scale along the X or Y axis), then use grab, then it doesn’t work. Can see that hand Icon but it won’t perform an action.

Hope this issue can be sorted as so far the addon gets a big vote and thanks. : )

Update: Just commenting as I go. Have been able to replicate issue a number of times so not a one-off. Also may be worth noting that if I use grab with the default mesh plane (which works), then transform it and go back to grab I run into the same issue.

Nothing Works

I've tried this addon with several versions of Blender and I can't get it to work at all. I've tried to follow the exact steps in the video tutorial, but nothing happens... nothing at all. Grabbing the cloth doesn't make it move, continuous updates does nothing, adding sew line force has no effect. Is this broken or should I keep trying?

Add ability to tear cloth.

Adjustable threshold for stretch. above threshold use bmesh module to split appropriate edges and recalculate mesh data. Reset will have to take original mesh into consideration.
User can choose vertex locations to intentionally create weak spots so a tear can be modeled in advance. Imagine tearing the blender logo out of a flat piece of fabric

confuse

i can't do anything with this add on, i try again and again but there is no way out, please help. i can't even create a cloth simulation with this add on

Undo destroys all my progress

@the3dadvantage
When I undo something, the cloth goes crazy, if I have pins or something. This is really annoying if I'm trying to do clothing or something complex like that, because I will have to start over again. Re doing won't help, so I'm asking if there is any way it could be fixed. If there is I will be really happy. The addon is amazing, and thanks to it cloth modeling has become fun. Thanks you! :)

Pin infleunce

Its not a bug, but is it possible to have control over the influence on the pins?

Cloth jittering if using self collision

Hi Rich, while I tried to merge your latest commit, I found new issue where jittering can occur if using self-collision. Here's a screenshot where it happens:
self_collision_bug
Do you know what happens here?

Gravity vector along object-Z, not world-Z

Hi Rich,

The gravity vector seems to be along object-Z, not world-Z. This is a bit confusing. I would expect gravity to follow world-Z.

To reproduce: take the default cube, rotate x*45, mark as Modeling Cloth, set gravity, hit Play.

Is it possible to set the gravity vector to world-Z, or even better: set a custom vector?

Regards,

Rob.

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.