POV-Ray : Newsgroups : povray.newusers : caterpillar/cam belt Server Time
23 Nov 2024 23:43:01 EST (-0500)
  caterpillar/cam belt (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Tops
Subject: caterpillar/cam belt
Date: 3 Jun 2011 03:50:00
Message: <web.4de8918cca2e9f0ac0abfa3e0@news.povray.org>
Hi all

I am trying to draw a simple small-to-large gear mechanism, driven by a cam
belt.

I have trawled the web, modified what I found and got so far with the gear:

#version 3.6;
global_settings {  assumed_gamma 1.3 }
global_settings { max_trace_level 10 }//(1...20) [default = 5]

//--------------------------------------------------------------------------
#include "colors.inc"
#include "textures.inc"
#include "golds.inc"
#include "metals.inc"
//--------------------------------------------------------------------------
// camera ------------------------------------------------------------------

camera {
        location <-5, 7, -10>
    look_at <0, -0, 0>
    angle 30

    }



// sun ---------------------------------------------------------------------
light_source{< 1500,2500,- 3500> color White}
// sky ---------------------------------------------------------------------
sky_sphere { pigment {
                       color  rgb <1.0,1.0,1.0>
                     } // end of pigment
           } //end of skysphere
/*
// fog ---------------------------------------------------------------------
fog{fog_type   2
    distance   50
    color      White
    fog_offset 0.1
    fog_alt    2.0
    turbulence 0.8}
*/
//--------------------------------------------------------------------------
//---------------------------- objects in scene ----------------------------
//--------------------------------------------------------------------------














#macro Gear (Cog_Number, Cog_Distance, Gear_Z) // around the y axis

#local D = 0.0001;

#local Gear_Circumference = Cog_Distance*Cog_Number;
#local Gear_Radius_ = Gear_Circumference/(2*pi);

union{
 // kernel of the gear minus notches
difference{
 cylinder { <0,0,0>,<0,Gear_Z,0>,Gear_Radius_
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder


cylinder { <0,-0.05,0>,<0,Gear_Z+0.05,0>,Gear_Radius_/5
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder








 #local Nr = 0;     // start
 #local EndNr = Cog_Number; // end
 #while (Nr< EndNr)
    cylinder { <0,0-D,0>,<0,Gear_Z+D,0>,Cog_Distance/4
               scale<1.5,1,1>
               translate<Gear_Radius_,0,0>
               rotate<0,(Nr+0.5) * 360/EndNr,0>
               } // end of cylinder -----------------------------------
 #local Nr = Nr + 1;    // next Nr
 #end // ---------------  end of loop
          } // end of difference ---------------






 // adding the cogs
 #local Nr = 0;     // start
 #local EndNr = Cog_Number; // end
 #while (Nr< EndNr)
    cylinder { <0,0,0>,<0,Gear_Z,0>,Cog_Distance/4
               scale<1.3,1,1>
               translate<Gear_Radius_,0,0>
               rotate<0,Nr * 360/EndNr,0>
               } // end of cylinder -----------------------------------
 #local Nr = Nr + 1;    // next Nr
 #end // ---------------  end of loop


difference {

cylinder { <0,0,0>,<0,Gear_Z*2,0>,Gear_Radius_*0.8
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder

cylinder { <0,-0.05,0>,<0,(Gear_Z*2)+0.05,0>,Gear_Radius_/5
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder


torus { Gear_Radius_*1.595,Gear_Radius_*0.8
         scale <1,0.5,1> translate<0,Gear_Z*2,0>
       } // end of torus  -------------------------------


} // end of difference






difference {

cylinder { <0,-0.05,0>,<0,0,0>,Gear_Radius_*1.15
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder

cylinder { <0,-0.05-D,0>,<0,0+D,0>,Gear_Radius_/5
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder


} // end of difference




difference {

cylinder { <0,Gear_Z,0>,<0,Gear_Z+0.05,0>,Gear_Radius_*1.15
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder

cylinder { <0,Gear_Z-D,0>,<0,Gear_Z+0.05+D,0>,Gear_Radius_/5
           scale <1,1,1> rotate<0,0,0> translate<0,0,0>
         } // end of cylinder


} // end of difference







} #end // end of union and end of macro -------------------------------

#macro Gear_Radius (Cog_Number, Cog_Distance)  //----------------------
  Cog_Distance*Cog_Number/(2*pi)
#end //----------------------------------------------------------------


union{
object{ Gear ( 36, 0.15, 0.5)
        texture { T_Silver_4C
                  finish { ambient 0.15 diffuse 0.85 phong 0.5 reflection 0.40}
                } // end of texture
        rotate<0,0,0>
        rotate<0,0,-clock*360/36>
        translate<0,1,0>} // end of cog 1


 rotate<0,0,0>
 rotate<0,0,0>
 translate<0,0,0>
 scale <0, 0, 0>
 }






However, I have no idea how I am going to draw the cam belt which will link this
gear with another larger one. I can sort out distances and sizes of the gears,
no problem, but the belt I have no idea.

To add to this, I need the belt to at least appear to be moving as the gears
move. Is this possible?

Any help would be great!!!!

Cheers


Post a reply to this message

From: Christian Froeschlin
Subject: Re: caterpillar/cam belt
Date: 3 Jun 2011 20:08:34
Message: <4de97782@news.povray.org>
Tops wrote:

> However, I have no idea how I am going to draw the cam belt which will link this
> gear with another larger one. I can sort out distances and sizes of the gears,
> no problem, but the belt I have no idea.

Regarding the basic geometry, I think you are looking for
the "common tangent for two circles" problem, which is slightly
more tedious to solve than I initially thought, see e.g.

http://www.cut-the-knot.org/Curriculum/Geometry/TangentTwoCirclesI.shtml
http://www.askiitians.com/iit-jee-coordinate-geometry/common-tangents.aspx
http://www.phpfreaks.com/forums/index.php?topic=189971.0

With such points you can make a very simple model using two boxes
for the straight part and two cylinder shells (differences) from which
you cut out an angled wedge (cylinder intersected with 2 planes?).
Once you get that working then you can start worrying how the belt
should be constructed physically and how it fits with cogs.


Post a reply to this message

From: Stephen
Subject: Re: caterpillar/cam belt
Date: 4 Jun 2011 05:41:15
Message: <4de9fdbb@news.povray.org>
On 03/06/2011 8:47 AM, Tops wrote:
> Hi all
>
> I am trying to draw a simple small-to-large gear mechanism, driven by a cam
> belt.
>

>
> However, I have no idea how I am going to draw the cam belt which will link this
> gear with another larger one. I can sort out distances and sizes of the gears,
> no problem, but the belt I have no idea.
>
> To add to this, I need the belt to at least appear to be moving as the gears
> move. Is this possible?
>
> Any help would be great!!!!
>



One of the good things about these sorts of animations is that you do 
not need to animate a complete cycle of the belt. You can just render 
the portion that repeats. For instance the animation below has only 90 
frames.
I made it using a modeller (Bishop3D) so there are no macros and I had 
to place some of the chain links manually.
The scene splits into two parts:
1.	Links that move in a regular way, either translation or rotation.
2.	Links that move partly in a regular way then change movement from a 
translation to a rotation or vice versa.

There were six segments of links. Two moving between the gears, two 
moving round the gears, one moving round then coming off and the other 
moving to then going round a gear wheel.

I hope this hint helps and I can make the Bishop3D file available.

Gear Chain
http://www.youtube.com/watch?v=urX5kI-5e4E

Used in a longer animation
http://www.youtube.com/watch?v=VfVRnAHu4JI

-- 
Regards
     Stephen


Post a reply to this message

From: Tops
Subject: Re: caterpillar/cam belt
Date: 6 Jun 2011 04:05:01
Message: <web.4dec89c25b05cb15c0abfa3e0@news.povray.org>
Stephen <mcavoys_at@aoldotcom> wrote:
> On 03/06/2011 8:47 AM, Tops wrote:
> > Hi all
> >
> > I am trying to draw a simple small-to-large gear mechanism, driven by a cam
> > belt.
> >
>
> >
> > However, I have no idea how I am going to draw the cam belt which will link this
> > gear with another larger one. I can sort out distances and sizes of the gears,
> > no problem, but the belt I have no idea.
> >
> > To add to this, I need the belt to at least appear to be moving as the gears
> > move. Is this possible?
> >
> > Any help would be great!!!!
> >
>
>
>
> One of the good things about these sorts of animations is that you do
> not need to animate a complete cycle of the belt. You can just render
> the portion that repeats. For instance the animation below has only 90
> frames.
> I made it using a modeller (Bishop3D) so there are no macros and I had
> to place some of the chain links manually.
> The scene splits into two parts:
> 1. Links that move in a regular way, either translation or rotation.
> 2. Links that move partly in a regular way then change movement from a
> translation to a rotation or vice versa.
>
> There were six segments of links. Two moving between the gears, two
> moving round the gears, one moving round then coming off and the other
> moving to then going round a gear wheel.
>
> I hope this hint helps and I can make the Bishop3D file available.
>
> Gear Chain
> http://www.youtube.com/watch?v=urX5kI-5e4E
>
> Used in a longer animation
> http://www.youtube.com/watch?v=VfVRnAHu4JI
>
> --
> Regards
>      Stephen


Wow, that looks amazing!!!!!

Yes, please, I would like access to the Bishop3D file (or something similar that
will help me!) as this is far too advanced for me at the moment.

Many many thanks

Tops


Post a reply to this message

From: Tops
Subject: Re: caterpillar/cam belt
Date: 6 Jun 2011 11:40:01
Message: <web.4decf4975b05cb15c0abfa3e0@news.povray.org>
That looks great!

Yes, please, I would like to see your Bishop3D thing, as this is way too
advanced for me at the moment.

Your short animation is exactly the kind of thing I would like to do!

Many thanks

Tops

Ps. Sorry if this message appears twice, but I tried to post something similar
this morning but it doesn't appear to have worked!


Post a reply to this message

From: Stephen
Subject: Re: caterpillar/cam belt
Date: 6 Jun 2011 11:42:48
Message: <4decf578$1@news.povray.org>
On 06/06/2011 9:03 AM, Tops wrote:
> Wow, that looks amazing!!!!!
>

Thank you.

> Yes, please, I would like access to the Bishop3D file (or something similar that
> will help me!) as this is far too advanced for me at the moment.
>

I originally uploaded the file to Geocities but since that had joined 
the Choir Celestial I will tidy up the scene and upload it to the 
Bishop3D site and post the link. Bishop3D is not free (I believe it 
costs 50 Euros) but you can download an evaluation copy. IIRC it will 
only save scenes with 20 objects so you will not be able to modify the 
scene and save it as it has > 600 objects.

> Many many thanks
>
My pleasure. :-)

-- 
Regards
     Stephen


Post a reply to this message

From: Tops
Subject: Re: caterpillar/cam belt
Date: 6 Jun 2011 11:45:00
Message: <web.4decf5385b05cb15c0abfa3e0@news.povray.org>
Hi Stephen

That looks great!

Yes, please, I would like to see your Bishop3D thing, as this is way too
advanced for me at the moment.

Your short animation is exactly the kind of thing I would like to do!

Many thanks

Tops

Ps. Sorry if this message appears three times, but I tried to post something
similar this morning and again just now but it doesn't appear to have worked! (I
think it's because I replied to your individual message and not my thread, but I
don't know)


Post a reply to this message

From: Stephen
Subject: Re: caterpillar/cam belt
Date: 6 Jun 2011 12:28:28
Message: <4ded002c$1@news.povray.org>
On 06/06/2011 4:41 PM, Tops wrote:
> Ps. Sorry if this message appears three times, but I tried to post something
> similar this morning and again just now but it doesn't appear to have worked! (I
> think it's because I replied to your individual message and not my thread, but I
> don't know)

If you are using the web interface then it takes a little time to appear.
If you are using the web interface then it takes a little time to appear.
If you are using the web interface then it takes a little time to appear.

:-P

-- 
Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: caterpillar/cam belt
Date: 6 Jun 2011 16:57:13
Message: <4ded3f29$1@news.povray.org>
On 06/06/2011 9:03 AM, Tops wrote:
> Yes, please, I would like access to the Bishop3D file

The scene file can be found here:

http://www.bishop3d.com/forum/viewtopic.php?f=12&t=824&p=2816#p2816

and you can download Bishop3D here:

http://www.bishop3d.com/


-- 
Regards
     Stephen


Post a reply to this message

From: Tops
Subject: Re: caterpillar/cam belt
Date: 10 Jun 2011 06:40:00
Message: <web.4df1f41a5b05cb15c0abfa3e0@news.povray.org>
Stephen <mcavoys_at@aoldotcom> wrote:
> On 06/06/2011 9:03 AM, Tops wrote:
> > Yes, please, I would like access to the Bishop3D file
>
> The scene file can be found here:
>
> http://www.bishop3d.com/forum/viewtopic.php?f=12&t=824&p=2816#p2816
>
> and you can download Bishop3D here:
>
> http://www.bishop3d.com/
>
>
> --
> Regards
>      Stephen

Hi Stephen

This is great, thanks so much for the time you've spent on this.

However, is there any way to do this animation solely in POVRAY as I have
absolutely no idea how to use Bishop3D and really don't have the time to learn a
new program.

Many thanks again

Tops


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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