Cloth simulation
 1-11  12-31  32-51  52-71  72-73

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6514.32 In reply to 6514.30 
Hi Danny,
I'm impressed, looks great!

wastzzz
>>>Great, works really well. Is it possible in the future to use other objects than spheres?
I tested this script with other simple shapes (cubes, cylinders), but I am not satisfied with the quality. A cloth stretched over sharp edges looks really bad.
Also I tested it with complex curved shapes. It works, but veeeerrrrry sloooooow...... I need a fast algorithm for collision detection between points and surfaces.
BTW, Don't forget that you can use a lot of spheres :)

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Marc (TELLIER)
6514.33 
Most impressive!

Marc
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6514.34 
Hello Max

When you select points does it possible to have a "circular selection" ?
It's possible by hands with your script but it's some tiedous! :)

And will be very useful in many other cases than your script ! ;)

Have happy coding!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6514.35 In reply to 6514.34 
Hi Pilou
You read my mind :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6514.36 In reply to 6514.35 
I am a medium! :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6514.37 
I am making the French version but have 2 questions! :)
http://moiscript.weebly.com/simulation-tissu.html

Where is this text who say to press Done for translate it?



and when I abort and relaunch the script with something selected i have this message
where is it for translate it?

EDITED: 15 Feb 2014 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6514.38 In reply to 6514.37 
>>Where is this text who say to press Done for translate it?
_Cloth.js, line 53

>>and when I abort and relaunch the script with something selected i have this message where is it for translate it?
_Cloth.js, line 13
(forgot to change this message)

I think you should shorten the labels. :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6514.39 In reply to 6514.38 
Thx for the infos! I had researched only on the HTM :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6514.40 
Seems I can't modify the JS file without this!

In what code I must save the modifications for have French accents ? Normally I use utf-8

Of course I see nothing like this when I read the line 1 before the // !

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6514.41 In reply to 6514.40 
Hi Pilou,

> In what code I must save the modifications for have French accents ? Normally I use utf-8

The mechanism that loads text files like the .js file knows how to load either ascii files or UTF-16 (little endian), so possibly UTF-16 could work.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6514.42 In reply to 6514.40 
I always use utf-8.
I just checked this file in hex editor - everything is correct.
Try to use /* comment */ instead of // comment, or erase this line at all.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6514.43 In reply to 6514.42 
utf-8 is equivalent to ascii if there is no "byte order mark" at the start of the file and only uses ascii characters in it.

If you need to use non-ascii characters in a script, try saving it as UTF-16 little endian with byte order mark, the text file loader knows how to load that type of unicode text file.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6514.44 
utf-16 seems works !

---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael T. (MICTU_UTCIM)
6514.45 
Wow Max! Great to then use Network on the curves, and shell for thickness! This is truly cool! Thank you so much!



Michael T.
Michael Tuttle a.k.a. mictu http://www.coroflot.com/DesignsByTuttle
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6514.46 
New version of the script will be released soon :)


[added] three different types of constraints ( version 0.8 - one type )
[added] flexibility control
[added] increased precision of the cloth structure calculation ( upto 20 iterations per frame. version 0.8 - one iteration)

P.S. This weekend, I hope.

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Tommy (THOMASHELZLE)
6514.47 In reply to 6514.46 
Cool! :-)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Rich_Art
6514.48 In reply to 6514.46 
Nice to see cloth simulation outside Cinema4D as well. :-)

Peace,
Rich_Art. ;-)

| C4DLounge.eu | Our Dutch/Belgium C4D forum. |
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6514.49 
The new version (v0.95). Even earlier than planned :)

[added] three different types of constraints ( version 0.8 - one type )
[added] flexibility control
[added] increased precision of the cloth structure calculation ( upto 20 iterations per frame. version 0.8 - one iteration)
[added] Frame skipping slider (allows to skip frame updating during calculations)

I know about this problem. I'll try to fix it in the next version.


Update (v0.96):
[added] Lock anchor points checkbox (the problem described above is partially solved)

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6514.50 In reply to 6514.49 
Very convincing result!
Seems this always only spheres ?
But seems you have had some parameters! :)

EDITED: 21 Feb 2014 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6514.51 In reply to 6514.50 
At this moment only spheres and donuts :)).. But I plan to add a new obstacle type - triangles. :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-11  12-31  32-51  52-71  72-73