Search found 35 matches

by handydan
Tue Jan 08, 2008 12:37 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

I will definitely try to get a working patch soon, and I've added a short design document to the project. If anybody wants to read it you can find it within in the project here - http://projects.blender.org/projects/musclesim/ . Thanks for all your help. Dan edit: I've been modifying the latest svn ...
by handydan
Sun Jan 06, 2008 6:20 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

no, I'm not allowed to install software, because its not mine. Mine died and because it had linux on its difficult to get files off, but it is in the process of being fixed.

Dan
by handydan
Sun Jan 06, 2008 4:47 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

I would go onto to blendercoders, but I can't get onto a computer with irc software

Dan
by handydan
Sat Jan 05, 2008 1:34 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

The rotation is now all working :D anybody know how to implement manipulators (as in user movable nodes like vertices for meshes) quickly? Dan p.s. sorry for relying so much on the blender community instead of doing all my own research, but I hope you can understand my "need" to get it done quickly.
by handydan
Sat Jan 05, 2008 11:27 am
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

Well, I think its about just under half way. I started some time in November, so I think I could be finished by the end of march, but it could be a lot sooner or later depending on how many problems I encounter.

Dan
by handydan
Fri Jan 04, 2008 11:44 am
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

I think I can solve the problem. I had a flash of inspiration this morning. P = position of point before transformation (column vector) M = transformation matrix ^ = to the power of MP = P' P P^-1 = 1 MP P^-1 = M M = MP P^-1 M = P' P^-1 and then to ensure that the transformation isn't just a skew, j...
by handydan
Wed Jan 02, 2008 2:55 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

Well, What I've got is the location of the root and tip of the muscle. At the moment they are only being drawn upright. What I need to do is rotate the muscle so that the tip of it is in the correct place and the rest of it is facing in the right direction, but still perpendicular to the centre line...
by handydan
Wed Jan 02, 2008 9:58 am
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

grrr. I suppose I assumed opengl would use either quaternions or a rotation matrix, but it means there's no quick fix solution. Unless blender has its own quaternion implementation?

Dan
by handydan
Tue Jan 01, 2008 9:04 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

I haven't made much progress lately, partly due to lack of time but mostly because of rotation problems. I'm trying to use glrotate for the rotation. I can calculate the rotation needed (2 axis'), but when I apply one axis and then the other I get a different rotation than applying them the other wa...
by handydan
Mon Dec 17, 2007 5:20 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

Still a long way to go until a usable build, but I'll put a screen shot up once I've finished the drawing code.

thanks anyway

Dan
by handydan
Mon Dec 17, 2007 10:15 am
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

Does the blender source have std rotating functions? if so where? I'm writing drawing code for the muscles. It can draw muscles upright but not slanted yet.

Dan
by handydan
Tue Dec 11, 2007 2:24 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

Would anybody object to void *MEM_reallocN(void *ptr, unsigned int len, const char *str) { void *tmp = MEM_callocN(len, str); unsigned int oldlen; if(ptr) { oldlen = MEM_allocN_len(ptr); if(len > oldlen) { memcpy(tmp, ptr, oldlen); } else { memcpy(tmp, ptr, len); } MEM_freeN(ptr); } ptr = tmp; } in ...
by handydan
Thu Dec 06, 2007 5:43 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

Firstly, I've decided against using asymmetric Gaussian functions, because I think it might be too restrictive, but the underlying idea is still the same. Next, the muscles don't use a mesh as such but a series of cross sections. The overall muscle is like a lofted solid. Within these cross sections...
by handydan
Sun Dec 02, 2007 5:35 pm
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

I'm really stumped by this, I've been closely following the lattice object, but searching the source for "case OB_LATTICE:" doesn't throw up anything as far as I can see, (but I did find out where to add the buttons panel code). anybody got any ideas? Dan p,s I added "printf("freeing %s\n", id->name...
by handydan
Sat Dec 01, 2007 10:49 am
Forum: Coding Blender
Topic: Muscle system for blender
Replies: 66
Views: 67774

thanks, but I'm still a ways off making anything usable yet. I've got a problem with a memory leak. The problem is that my object isn't being freed when blender shuts. To my understanding free_libblock in Blenkernel/intern/library.c is the function that should free the object, but it isn't being cal...