POV-Ray : Newsgroups : povray.general : Ideas for POVRAY Server Time
31 Jul 2024 22:09:28 EDT (-0400)
  Ideas for POVRAY (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: Thomas de Groot
Subject: Re: Ideas for POVRAY
Date: 9 Nov 2006 03:27:28
Message: <4552e670@news.povray.org>
"Charles C" <nomail@nomail> schreef in bericht 
news:web.4552c04eedb96be92f60260@news.povray.org...
> JS, That sounds like foward kinimatics...  IK is like when you control the
> hand position of your maniquin and your code figures out the propper 
> angles
> and positions for the upper and lower arms.

Not necessarily, if the different objects are nested correctly. From 
experience I learned that it is often easier to rotate the objects 
individually to get exactly what you want. Applying IK directly (on a hand 
for instance) results sometimes in unwanted response from the rest of the 
body, especially if you do that in real time like in Moray, or in Poser.

Thomas


Post a reply to this message

From: Charles C
Subject: Re: Ideas for POVRAY
Date: 9 Nov 2006 12:45:01
Message: <web.45536898edb96be99992c0d0@news.povray.org>
Hehehe ok ok ok, I withdraw the word "propper."  ;)
Charles

"Thomas de Groot" <t.d### [at] internlnet> wrote:
> "Charles C" <nomail@nomail> schreef in bericht
> news:web.4552c04eedb96be92f60260@news.povray.org...
> > JS, That sounds like foward kinimatics...  IK is like when you control the
> > hand position of your maniquin and your code figures out the propper
> > angles
> > and positions for the upper and lower arms.
>
> Not necessarily, if the different objects are nested correctly. From
> experience I learned that it is often easier to rotate the objects
> individually to get exactly what you want. Applying IK directly (on a hand
> for instance) results sometimes in unwanted response from the rest of the
> body, especially if you do that in real time like in Moray, or in Poser.
>
> Thomas


Post a reply to this message

From: JS
Subject: Re: Ideas for POVRAY
Date: 9 Nov 2006 17:20:01
Message: <web.4553a8dbedb96be910bbf8850@news.povray.org>
"Charles C" <nomail@nomail> wrote:
> Hehehe ok ok ok, I withdraw the word "propper."  ;)
> Charles
>
> "Thomas de Groot" <t.d### [at] internlnet> wrote:
> > "Charles C" <nomail@nomail> schreef in bericht
> > news:web.4552c04eedb96be92f60260@news.povray.org...
> > > JS, That sounds like foward kinimatics...  IK is like when you control the
> > > hand position of your maniquin and your code figures out the propper
> > > angles
> > > and positions for the upper and lower arms.
> >
> > Not necessarily, if the different objects are nested correctly. From
> > experience I learned that it is often easier to rotate the objects
> > individually to get exactly what you want. Applying IK directly (on a hand
> > for instance) results sometimes in unwanted response from the rest of the
> > body, especially if you do that in real time like in Moray, or in Poser.
> >
> > Thomas

Hi and thanks for your responses. Reading the faq it's 'illegal' to post
code for POVRAY in this group, so how about I include the code in a message
in the 'povray.text.scene-files' group? Then you can decide whether it's FK
or IK..!


Post a reply to this message

From: Warp
Subject: Re: Ideas for POVRAY
Date: 9 Nov 2006 19:02:06
Message: <4553c17e@news.povray.org>
JS <bos### [at] yahoocouk> wrote:
> Reading the faq it's 'illegal' to post
> code for POVRAY in this group

  "Illegal" would mean that it's against the law of a country. Hardly.

  Also, I don't see too much problem in posting short SDL examples here.
For longer code it may be a better idea to set up a webpage and then post
a link to it.

-- 
                                                          - Warp


Post a reply to this message

From: JS
Subject: Re: Ideas for POVRAY
Date: 9 Nov 2006 19:20:00
Message: <web.4553c4b2edb96be9b84243450@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> JS <bos### [at] yahoocouk> wrote:
> > Reading the faq it's 'illegal' to post
> > code for POVRAY in this group
>
>   "Illegal" would mean that it's against the law of a country. Hardly.
>
>   Also, I don't see too much problem in posting short SDL examples here.
> For longer code it may be a better idea to set up a webpage and then post
> a link to it.
>
> --
>                                                           - Warp

Hi and thank you. Here is the coding in skeleton form for an arm:

#include "colors.inc"

camera {location <0,0,-6> look_at <0,0,0>}
light_source {<0,0,-20> color White}
background {color Blue}

#declare upparm_l=<0,-1.7,0>;       //Upperarm length
#declare forarm_l=<0,-2,0>;         //Forearm length

#declare shoulder=sphere {<0,0,0>,0.4 pigment {color Red} finish {phong 1}}
#declare upparm=cylinder {<0,0,0>,upparm_l,0.3 pigment {color Yellow} finish
{phong 1}}
#declare elbow=sphere {<0,0,0>,0.35 pigment {color Green} finish {phong 1}}
#declare forarm=cone {<0,0,0>,0.3,forarm_l,0.25 pigment {color Yellow}
finish {phong 1}}
#declare wrist=sphere {<0,0,0>,0.3 pigment {color White} finish {phong 1}}
#declare hand=sphere {<0,0,0>,0.5 scale <1,1.5,1> pigment {color Orange}
finish {phong 1} translate y*-0.7}

#declare upparm_r=<0,0,0>;          //Upperarm rotation (about shoulder)
#declare forarm_r=<0,0,0>;          //Forearm rotation (about elbow)
#declare hand_r=<0,0,0>;            //Hand rotation (about wrist)

union {
    object {shoulder}
    object {upparm rotate upparm_r}
    object {elbow translate upparm_l rotate upparm_r}
    object {forarm rotate forarm_r translate upparm_l rotate upparm_r}
    object {wrist translate forarm_l rotate forarm_r translate upparm_l
rotate upparm_r}
    object {hand rotate hand_r translate forarm_l rotate forarm_r translate
upparm_l rotate upparm_r}

    translate y*2.5
}

What do you think? Just change the rotation values (upparm_r, forarm_r, and
hand_r) and everything moves accordingly. Is this inverse or forward
kinematics, or have I got the whole idea wrong? Oh, and please excuse my
bad coding but I prefer to get something working first and then worry about
whether it's badly written or not.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Ideas for POVRAY
Date: 10 Nov 2006 03:43:51
Message: <45543bc7@news.povray.org>
"JS" <bos### [at] yahoocouk> schreef in bericht 
news:web.4553c4b2edb96be9b84243450@news.povray.org...
> What do you think? Just change the rotation values (upparm_r, forarm_r, 
> and
> hand_r) and everything moves accordingly. Is this inverse or forward
> kinematics, or have I got the whole idea wrong? Oh, and please excuse my
> bad coding but I prefer to get something working first and then worry 
> about
> whether it's badly written or not.
>

Well... I think it is forward kinematics, as transmission of rotation starts 
at the shoulder and ends at the hand. It works ok by the way.
I shall post in p.b.scene-files your scene code and my own from the right 
arm, as it is generated by Moray. Be aware that in Moray, the z-axis is 
up!!! At the end, I transformed the arm to POV-Ray coordinates. You will see 
that rotations start at the wrist and work up to the shoulder.

Hope this helps!!

Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Ideas for POVRAY
Date: 11 Nov 2006 03:07:15
Message: <455584b3$1@news.povray.org>
"Charles C" <nomail@nomail> schreef in bericht 
news:web.45536898edb96be99992c0d0@news.povray.org...
> Hehehe ok ok ok, I withdraw the word "propper."  ;)
> Charles
>
For the record, I forgot to say, Charles, that you were right about forward 
kinematics... :-)

Thomas


Post a reply to this message

From: Leroy
Subject: Re: Ideas for POVRAY
Date: 13 Nov 2006 23:29:23
Message: <455944AD.60705@joplin.com>
JS wrote:
> Hi, everyone.
> 
> I am working on two main projects using POVRAY and wonder as to those who
> would be interested in them. As an electronics hobbisits I have started to
> create several 3D components and hope to create a large library of them.
> The second, of which I have already almost completed, is a fully
> articulated mannequin, ideal for animations or just still poses. I would
> appreciate comments, help or suggestions for either project, thank you.
> 
> 
I've made a complete POV robot system it's at
      http://leroywhetstone.s5.com/
You could use it to make mannequins.
I tried to clean up and document the code.
If you check it out I'd appreciate hearing any comments.


Post a reply to this message

From: JS
Subject: Re: Ideas for POVRAY
Date: 14 Nov 2006 18:30:01
Message: <web.455a5065edb96be9f8e8f48c0@news.povray.org>
Leroy <lrw### [at] joplincom> wrote:
> JS wrote:
> > Hi, everyone.
> >
> > I am working on two main projects using POVRAY and wonder as to those who
> > would be interested in them. As an electronics hobbisits I have started to
> > create several 3D components and hope to create a large library of them.
> > The second, of which I have already almost completed, is a fully
> > articulated mannequin, ideal for animations or just still poses. I would
> > appreciate comments, help or suggestions for either project, thank you.
> >
> >
> I've made a complete POV robot system it's at
>       http://leroywhetstone.s5.com/
> You could use it to make mannequins.
> I tried to clean up and document the code.
> If you check it out I'd appreciate hearing any comments.

Hi Leroy.

I'm sorry but your version is too complex for my needs, my mannequin uses
simple rotation to achieve the correct poses. But could you please tell me
if your system uses IK of FK, and which you think is best.


Post a reply to this message

From: Leroy
Subject: Re: Ideas for POVRAY
Date: 15 Nov 2006 01:31:49
Message: <455AB2E0.10409@joplin.com>
JS wrote:
> Hi Leroy.
> 
> I'm sorry but your version is too complex for my needs, my mannequin uses
> simple rotation to achieve the correct poses. But could you please tell me
> if your system uses IK of FK, and which you think is best.
> 
  You may be right about it being complicated. It started is out as a 
stick figure
using rotation to position body parts. I still use rotation to position 
the parts, but I've put the angles in a file. I did that so I reuse and
keep track of poses.(very helpful for animation)
  So I guess my system uses FK. I don't know which IK or FK is 'Best'. I 
know
it is relatively easy to create a KeyFrame animation that's FK. The code 
I used to calculate inner frames is base on a simple function a+(b-a)*P.
Where 'a'is an angle of the first frame 'b'is the angle of the last 
frame 'P'is the current inner frame divid by the total number of inner 
frames.


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.