Mon, Nov 25, 8:48 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 25 12:38 pm)



Subject: Snooker dynamics in Poser


  • 1
  • 2
who3d ( ) posted Thu, 03 June 2004 at 1:36 PM

Cool - just the ability to use walk paths longer than 30 frames has got me thinking - there's room there for some very subtle animations I suspect. Don't let us hurry your scourge. Any time in the enxt 30 minutes for the full, finished, debugged code will be fine :) Cheers, Cliff


scourge ( ) posted Thu, 03 June 2004 at 2:33 PM

Oh crap! Only 30 minutes time left for the next release! I'd better activate some more brain cells quickly...

When it comes to the walking animations this version of the script offers pretty much the same as the Walk Designer. So you can make pretty cool moving animations (not necessarily walking).

The next version will support, as promised, flying animations and also an additional following algorithm. Hopefully I'll get a better grasp of the GUI library for Python too, the current GUI sucks.

Tip Of The Day: use a negative speed to have the character walk away from the target =)


scourge ( ) posted Fri, 04 June 2004 at 6:02 PM

Attached Link: WDragon_Fly.avi (572KB)

Okay, looks like the script works great with flying/swimming things. There's still some work to do but I already managed to make a sample flying animation. The Walk Designer pose is poorly animated and the Sixus1 Water Dragon is a bit difficult to pose and animate. However you can clearly see that the dragon is following the ball also in the Y axis and the body rotates to face the target. The dragon, as mentioned, uses my own anim (60 frames) and the the people use Poser 5's Run.pz2 WalkDesigner pose (30 frames). I had the people follow the dragon with a negative speed (= run away).


scourge ( ) posted Fri, 04 June 2004 at 6:05 PM

Attached Link: WDragon_Fly2.AVI (385KB)

Here's the clip from another view.


who3d ( ) posted Fri, 04 June 2004 at 6:42 PM

Cool - I can't check out the anims right now but have downloaded to view later. Have some lovely animations to test this with (some flying, most walking) and - wouldn't you know it? No TIME to play! Great stuff m8 :) Cheers, Cliff


scourge ( ) posted Fri, 04 June 2004 at 7:22 PM

Thanks. You can't test the flying anims with the current version of the script, but I should be able to upload the update in no time. I feel the pain... actually I've got the same problem, only 24 hours in a day.


who3d ( ) posted Sat, 05 June 2004 at 4:43 AM

Ya guessed that - tho I have some "level flying" stuff that I might try if I find some spare time in a corner of a pocket somewherwe :) Cheers, Cliff


TrekkieGrrrl ( ) posted Sat, 05 June 2004 at 6:16 AM

Those flying animations are really really great! I hope you find the time to get the script uploaded soon :o)

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



scourge ( ) posted Sat, 05 June 2004 at 11:04 AM

Attached Link: WDragon_Fly3.AVI (393KB)

Thanks, and I think you won't have to wait long for the update Ernyoka. In fact you can probably start holding your breath now (but just in case, make it a deep breath) =) Here's another animation. In the two first flying animations the dragon had to fly straight because turning would have resulted in strange body rotations. Now the figures can turn correctly and they even do some curving when they have to turn. Now I'll just have to write some kind of a turning radius so that the figures can't just suddenly turn around (in this animation you can see that the dragon's movement isn't smooth because it turns too quickly). The turning radius will be useful also for figures moving on the ground.


TrekkieGrrrl ( ) posted Sat, 05 June 2004 at 11:30 AM

Oh wow! That looks so totally COOL, Scourge! cheats and breathes a little thru a straw

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



who3d ( ) posted Sat, 05 June 2004 at 2:46 PM

Well I'm not gonna cheat, I have faith in scourge (starts holding breath)


scourge ( ) posted Sat, 05 June 2004 at 3:30 PM

Attached Link: http://koti.mbnet.fi/~ilaripih/Follow_Fly.py

Yeah, c'mon Ernyoka, anyone can hold breath for a few hours ;) Here's the script for flying things. I still need to work on that turning radius, but this one works pretty well already. There are two new input parameters: - Curving: the amount of tilting the figure does when it's turning. I used a value of 32 in the dragon animation. - Curving angle: The amount of tilting the figure can do during one frame. For smooth movement I recommend a small value (between 1 and 3). I know I could have come up with better names for the parameters but I'm going to re-design the whole GUI later anyway...


who3d ( ) posted Sat, 05 June 2004 at 5:01 PM

As usual, your generosity astounds me. Sincere thanks for the effort you've put into this, which I reckon could benefit ALL Poser animatiors :) Cheers, Cliff PS or at least all who find this thread.


scourge ( ) posted Sat, 05 June 2004 at 5:55 PM

I'm glad that people find the results of my work useful. When the time comes I'll upload the final product to Free Stuff, at least at PoserPros. So it doesn't matter that this thread can't be easily found anymore. Any questions about the script? Everyone may feel free to ask and I'll do my best to give a good answer. If anyone's willing to modify/develop the script, go ahead. But the code can be difficult to read because it's all chopped from a larger bunch of code and there's no comments in the uploaded scripts.


TrekkieGrrrl ( ) posted Sat, 05 June 2004 at 6:49 PM

PHEW** It got pretty hard breathing thru that straw.... Kiitos, scourge!! :o)

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



TrekkieGrrrl ( ) posted Sat, 05 June 2004 at 6:51 PM

Oh and the people who ORIGINALLY followed this thread wil get the e-bots :) And for those who DIDN'T follow this thread from the beginning.. well... their loss ;o)

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



scourge ( ) posted Sun, 06 June 2004 at 6:10 AM

I see that you know the basics of Finnish. Now you just need to learn some undetermined muttering and put a miserable expression on your face, and you can fool any Finn. You're a Dane, right? Do Danish people understand Swedish or vice versa? I'm curious because I can understand written Danish pretty well but when I hear a Dane talk I have no idea what he/she is saying. "Oh and the people who ORIGINALLY followed this thread wil get the e-bots :) And for those who DIDN'T follow this thread from the beginning.. well... their loss ;o)" That, I think, is a good thing. I've got just the right people here following the thread, those that don't get bored watching as I slowly make progress writing some stupid script, occasionally reporting something like: "Woohoo! After weeks of hard work I got the figure's right toe to bend correctly!" Thanks for your support


TrekkieGrrrl ( ) posted Sun, 06 June 2004 at 7:36 AM

:o) Kiitos is about the only word I know in finnish - at least where I (hopefully) know how to spell it too. Danes and swedes in general can unnderstand each other, but I agree it is far easier to READ swedish than to hear it spoken, and since danish sounds even more different from how it is written, I would think it is easier to read danish than to listen to it. Many danes (myself included L) speak rather "sloppy" and swallow half of the words, making it close to impossible for other people to understand. Finnish on the other hand... no offense, but are you SURE it's a real language? ;o) It looks and sounds so unlike everything else. Except estonian, I've heard that finns and estonians can understand each other? and one more, possibly hungarian? Now I'll try out this new script. Not that I usually do much animation, but I love to play with python scripts and like see what they do :o)

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



who3d ( ) posted Sun, 06 June 2004 at 7:55 AM

I agree - you've got some of the best here watching you work. BTW, given the tests I plan to put it through over the next few days, don't forget that swiming is practically flying, but in water. Cheers, Cliff


scourge ( ) posted Sun, 06 June 2004 at 8:49 AM

"Finnish on the other hand... no offense, but are you SURE it's a real language? ;o)" Well, I've heard someone describe Danish as a throat disease, not a language =). Seriously though, I don't know about the logic of Finnish grammar but I think the pronounciation is very close to how it's written. In LOTR most of the names (like Saruman, Sauron etc.) are pronounced like Finns would pronounce them. Finnish is very different from other European languages because it doesn't derive from languages like Latin or French. And the writing is somewhat similar to German because Mikael Agricola (the guy who invented written Finnish and its alphabets) used German literature as base for the ABC book. The Estonian language is just weird. It's pronounced like Finnish and they use many same words, but most of the words are strangely swapped, like if they had copied our language but wanted to confuse us. An example: - In Finnish "kirja" means "a book". In Estonian it means "the Bible". And vice versa, in Finnish "Raamattu" means "the Bible" and in Estonian it's "a book". That can't be a coincidence! About Hungarian, I doubt we could understand it. Hell, it's sometimes difficult for me to get a grasp of some Finnish dialects. The same goes for other languages as well: I can almost perfectly understand spoken English but when I hear some redneck from the southern part of the US talk I'm having hard time trying to figure out what he/she is trying to tell. The Swedish-speaking Finns also speak very clear Swedish but the real Swedes just can't speak it right ;) who3d, Yes the script works also for swimming, of course. The movement is just slower and smoother. Please report us the results of the tests when you're done, I always like to get feedback so that I can make my products better. I bought Poser solely for animation purposes in the first place and I'm glad I'm finally beginning to understand how to animate. That's why almost all of the scripts I'm working on are for animation.


TrekkieGrrrl ( ) posted Sun, 06 June 2004 at 10:48 AM

I agree about the swedish spoken by finns. If only all swedes would speak like that, it would be a lot easier to understand swedish :o) Norwegian is worse. "normal" norwegian (bokm) is very close to danish and the written bokm is so close that manuals ect usually are the same in danish and norwegian, with only some words written in both languages. That is of course far too simple, so the norwegians had to invent Nynorsk, something closer to icelandic or oldnordisk (not sure or the english word for that) Oh and it is DUTCH which is a throat-disease, not danish ;o)

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



scourge ( ) posted Sun, 06 June 2004 at 11:52 AM

I stand corrected, the throat disease was Dutch. When I was younger I thought Dutch was the language people speak in Denmark, that's why the confusion. Of course, the description matches other languages pretty well, like arabic languages and the language some people speak in Wales. Why do they punish their throat like that??


TrekkieGrrrl ( ) posted Sun, 06 June 2004 at 12:07 PM

Uhm well apparently danish and dutch sounds rather similar to foreingers. I've often been mistaken for dutch when I am in England. Of course we all know that danish is a much nicer language L But you're right, there are some languages where you wonder how they can evolve such strange sounds. And of course some sounds are totaly impossible for people to pronounce if they haven't learned them from their childhood, like the clicking sounds in xhosa and similar african languages.

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



who3d ( ) posted Sun, 06 June 2004 at 5:30 PM

Apparently we're born with the ability to learn a huge range of phonemes - vut we quickly concentrate on teh phonemes that we hear around us and actually lose the ability to pronounce and possibly even hear "correctly" phonemes from unfamiliar languages. The more you can subject your child, when young (sorry no idea what age) to a variety of languages the better the chances they'll be able to do well with languages (if they want to) later. Apparently. Cheers, Cliff (and I mean the actual languages - not the "pidgeon" version spoken by idiots like me, but native speakers of other tongues. E.G. My French is limited to "Allo Allo" and my Spanish to "Grassyarse")


scourge ( ) posted Sun, 06 June 2004 at 6:43 PM

"Grassyarse" LOL! I agree, children learn new languages a lot faster than grown-ups. I have a few Swedish speaking friends and I envy them because both their Swedish and Finnish are flawless. They also seemed to learn English and French faster than I did. I'd say I'm pretty good at English and moderate at Swedish and French but learning is a lot harder for me than it is to those particular friends of mine. God natt, mina vner. Jag ska ervda i morgon.


TrekkieGrrrl ( ) posted Mon, 07 June 2004 at 9:21 AM

Well at least you written swedish is better than mine G I'm better at understanding swedish than writing/speaking it coz I can't remember which words are the same and which are different from danish. In danish, that sentence would be: God nat, mine venner. Jeg skal vende tilbage i morgen. (and in english: good night my friends. I'll return tomorrow)

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You justย can'tย put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
ย  Using Poser since 2002. Currently at Version 11.1 - Win 10.



scourge ( ) posted Mon, 07 June 2004 at 9:50 AM

That's kind of the same situation when I have to deal with Danish (happens very rarely); I can read it but not write because the words are slightly different. I could have also used "komma tillbaka" instead of "ervda" so it would had been even more similar to Danish. Don't worry who3d, I'll get back to the original topic (the Python scripts) soon =)


who3d ( ) posted Mon, 07 June 2004 at 8:24 PM

Sadly I have to report I've failed abysmaly so far at my end - I'm occasionally getting SOME movment in the figure I am making follow Figure 1, but so far I'm always getting an error - such as: Exception in Tkinter callback Traceback (most recent call last): File "C:Program FilesCurious LabsPoser 5RuntimePythonliblib-tkTkinter.py", line 1292, in call return apply(self.func, args) File "", line 71, in mainProg File "", line 135, in Follow ZeroDivisionError: float division Err... help? Cheers, Cliff PS have used Don as the figure to follow, and a couple of different animals - latest was an elephant - as the figure to do the following.


who3d ( ) posted Mon, 07 June 2004 at 8:25 PM

Don't worry about the language topic - I've avoided saying that anyone outside the Home Counties is unintelligable to me :)


shadownet ( ) posted Mon, 07 June 2004 at 9:55 PM

BM


scourge ( ) posted Tue, 08 June 2004 at 4:07 AM

Hmm. According to the error lines and the error the problem is that the following character is at the same place as the target (the distance to the target is 0 and that's why the division by zero error occurs). What have you typed in the text fields? I assume you selected the figure that will follow the target before running the script. You should always position the figure that follows the target by using the dials of the Body actor, not the Hip. Also, if you position the target with the Hip dials you should also set the target actor as Hip, not Body.


scourge ( ) posted Tue, 08 June 2004 at 4:19 AM

...and looks like you're using the flying script for Don and the animals. Are you sure you want to do that? Or are they swimming?


who3d ( ) posted Tue, 08 June 2004 at 5:27 AM

I seperated the two objects by moving the Body along the X axis with the appropriate dial. The target was at 0, the follower at... possibly not enough? Let me try again and increase the seperation to make them several bodies apart (I'll do this later). The aim was for swimming, actually - I have a "swim cycle" that I want to make, but I need to fine-tune how I'm going to be able to apply it. This script should be significantly better for my purposes than Walk Designer, but I need to make sure that I can make it work first :( I'll report back, hopefully tonight. Cheers, Cliff


scourge ( ) posted Tue, 08 June 2004 at 6:40 AM

Attached Link: http://www2.lut.fi/~pihlajis/Follow_Fly.py

Actually the error should only occur if the follower's Body actor has exactly the same coordinates as the target actor. I just tried what you did: I created two Don figures, moved Figure 2 along the X axis, ran the script and it worked. Anyway, here's a new version of the flying script. I fixed a bug which sometimes gives a "math domain error", and now the script can be used without an animation pose file.


who3d ( ) posted Tue, 08 June 2004 at 6:35 PM ยท edited Tue, 08 June 2004 at 6:36 PM

OK, here's a test run...

New scene in Poser 5 SR 4.1 (v5.0.4.325). Contains a Don.
Add a ball (ball_1)
Change zTran to 5
Change animation frames to 200, then go to frame 200
set (ball_1's) zTran to 15 and xTran to 10.
Select Figure_1, Body
Start newest Follow_Fly script. Set Pose File to:
C:Program FilesCurious LabsPoser 5RuntimelibrariesPoseWalkDesignerWalk.p2z
Set Frame Count to 200
Delete Target Figure text
change Target actor to ball_1
Click Apply

It comes up with what looks like an error screen, but this just contains:
Do you wish to add frames to your scene to import the complete animation

and nothing else.
Close the "error report".

play the animation, Don is catching up with ball then flickering around it. Change final ball position to z=150, x=100 and retry
completes no error message. Try animation...

Yup, that seems to be working great. It's going to take some time and practise to get the hang of the speeds etc - but I think I'm ready to move on to slighlty more daring/interesting tests (Bwahahaaa!)

Cheers,

Cliff

Message edited on: 06/08/2004 18:36


scourge ( ) posted Wed, 09 June 2004 at 3:03 AM

Good. That "Do you wish to add frames to your scene to import the complete animation" message should be there. If the animation pose has 30 frames it will be applied 7 times for a 200 frame anim. 7 times 30 is 210 so there will be 10 frames extra, that's why you get the message. The script deletes the ten additional key frames, leaving them empty. The figure flickers around the target because there's no turning radius yet, so the figure can turn a whole 360 degrees during one frame. This will be changed soon. Ilari


scourge ( ) posted Wed, 09 June 2004 at 6:04 AM

Attached Link: Follow7.AVI (241KB)

Yippee! I finally got that damned turning angle thing working. In this clip the guy has a turning angle of 5 degrees, that's how much he can change the walking direction in one frame. This makes the movement a lot smoother, and now when the target is reached the figure doesn't flicker around it because he can't turn around that quickly. Of course this is a bit unrealistic for humans but i.e. any vehicle would turn like this, they need space for turning. Now wait 'til I try this with a flying figure...


who3d ( ) posted Wed, 09 June 2004 at 6:32 AM

I had a ball animating a mil dragon flying around a castle (OK, I used a huge box to start with but I slapped a castle in afterwards). Looks great, wish I had time to do the camerawork and rendering that I'd like to finish it off, but I've got to move on to my swimming animaiton and see what I can get going. At least - when I can find time for Poser. Time is a vanishing commodity lately :( Love your work, Cliff


scourge ( ) posted Wed, 09 June 2004 at 11:32 AM

Attached Link: WDragon_Fly4.AVI (470KB)

And yet another flying animation... This one was done with the latest version of the script (which I haven't yet uploaded here), using a turning angle of 1 degree to make the turning smooth enough. Values below 1 also work, as long as it's greater than zero.


scourge ( ) posted Wed, 09 June 2004 at 11:37 AM

Attached Link: http://www2.lut.fi/~pihlajis/Follow_Fly.py

And here's the new script. There's a new entry, the maximum turning angle. It accepts float values from 0 to 180 degrees. The lower the value the slower (smoother) the figure turns.


  • 1
  • 2

Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.