![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
HI,
I really need your help, guys.. I have made this object using a
prism with a cubic spline but unfortunately for me, I can't seem to make
it go to wherever I want it to go.... I used translate<> but it doesn't
seem to work... and it seems to me that it is using its own set of
rules... Am I doing something wrong? (obviously)... or have I gone
mad!.... please help me figure out which one is which.... grr.... I'm
just a little confused... please help me if you can. Thanks!!!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Glenn Bautista wrote:
>
> HI,
>
> I really need your help, guys.. I have made this object using a
> prism with a cubic spline but unfortunately for me, I can't seem to make
> it go to wherever I want it to go.... I used translate<> but it doesn't
> seem to work... and it seems to me that it is using its own set of
> rules... Am I doing something wrong? (obviously)... or have I gone
> mad!.... please help me figure out which one is which.... grr.... I'm
> just a little confused... please help me if you can. Thanks!!!
Could you post an example of how you are creating the prism. Without
being to see the code it is really difficult to guess at what MIGHT
be wrong.
--
Ken Tyler
mailto://tylereng@pacbell.net
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Ken wrote:
> Glenn Bautista wrote:
> >
> > HI,
> >
> > I really need your help, guys.. I have made this object using a
> > prism with a cubic spline but unfortunately for me, I can't seem to make
> > it go to wherever I want it to go.... I used translate<> but it doesn't
> > seem to work... and it seems to me that it is using its own set of
> > rules... Am I doing something wrong? (obviously)... or have I gone
> > mad!.... please help me figure out which one is which.... grr.... I'm
> > just a little confused... please help me if you can. Thanks!!!
>
> Could you post an example of how you are creating the prism. Without
> being to see the code it is really difficult to guess at what MIGHT
> be wrong.
> -- Ken
Ok..... here it goes... well.... its got some comments 'cause I just cut and
paste from the tutorial... and I added my own values :)
prism {
cubic_spline
0, // sweep the following shape from here ...
1, // ... up through here
21, // the number of points making up the shape ...
< 2, 0>, // point#1 (control point... not on curve)
< 0, 0>, // point#2 ... THIS POINT ...
<1, 1>, // point#3
< 2, 0>, // point#4
< 1,-1>, // point#5 ... MUST MATCH THIS POINT
<0,0>,
<1,1>, // point#6 (control point... not on curve)
<1.75,0>,//Start of Second shape
<0.25,0>,
<1,0.75>,
<1.75,0>,
<1,-0.75>,
<0.25,0>,
<1,0.75>,
<1.5,0>,//Start of Third Shape
<0.5,0>,
<1,0.5>,
<1.5,0>,
<1,-0.5>,
<0.5,0>,
<1,0.5>
scale<0.25,0.125,0.125>
translate<0,-1,-1>
rotate<90,0,0>
}
Thanks !!!!!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Glenn Bautista wrote:
> Ken wrote:
>
> > Glenn Bautista wrote:
> > >
> > > HI,
> > >
> > > I really need your help, guys.. I have made this object using a
> > > prism with a cubic spline but unfortunately for me, I can't seem to make
> > > it go to wherever I want it to go.... I used translate<> but it doesn't
> > > seem to work... and it seems to me that it is using its own set of
> > > rules... Am I doing something wrong? (obviously)... or have I gone
> > > mad!.... please help me figure out which one is which.... grr.... I'm
> > > just a little confused... please help me if you can. Thanks!!!
> >
> > Could you post an example of how you are creating the prism. Without
> > being to see the code it is really difficult to guess at what MIGHT
> > be wrong.
> > -- Ken
>
> Ok..... here it goes... well.... its got some comments 'cause I just cut and
> paste from the tutorial... and I added my own values :)
>
>
<snip>
Actually... I was making this eye (like Isis) . and was thinking of putting it
onto the head of a column that I made.( with union{} ) but it just wouldn't go
there... weird.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
You've got a rotate after the translate, this will rotate the object around the
origin AFTER moving it, which will make it spin in a circle. Move the rotate to
before the translate, and you will be moving the rotated prism, which is
apparently what you want to do.
Remember that transforms (rotate, scale, translate, matrix) are always done in
the order they are given, and the object should be centered on the origin if
you don't want it to move when you scale or rotate it. It is usually a good
idea to make your object at the origin, rotate and/or scale it to however you
want it, and then translate it to position.
Glenn Bautista wrote:
> Ken wrote:
>
> > Glenn Bautista wrote:
> > >
> > > HI,
> > >
> > > I really need your help, guys.. I have made this object using a
> > > prism with a cubic spline but unfortunately for me, I can't seem to make
> > > it go to wherever I want it to go.... I used translate<> but it doesn't
> > > seem to work... and it seems to me that it is using its own set of
> > > rules... Am I doing something wrong? (obviously)... or have I gone
> > > mad!.... please help me figure out which one is which.... grr.... I'm
> > > just a little confused... please help me if you can. Thanks!!!
> >
> > Could you post an example of how you are creating the prism. Without
> > being to see the code it is really difficult to guess at what MIGHT
> > be wrong.
> > -- Ken
>
> Ok..... here it goes... well.... its got some comments 'cause I just cut and
> paste from the tutorial... and I added my own values :)
>
> prism {
> cubic_spline
> 0, // sweep the following shape from here ...
> 1, // ... up through here
> 21, // the number of points making up the shape ...
> < 2, 0>, // point#1 (control point... not on curve)
> < 0, 0>, // point#2 ... THIS POINT ...
> <1, 1>, // point#3
> < 2, 0>, // point#4
> < 1,-1>, // point#5 ... MUST MATCH THIS POINT
> <0,0>,
> <1,1>, // point#6 (control point... not on curve)
> <1.75,0>,//Start of Second shape
> <0.25,0>,
> <1,0.75>,
> <1.75,0>,
> <1,-0.75>,
> <0.25,0>,
> <1,0.75>,
> <1.5,0>,//Start of Third Shape
> <0.5,0>,
> <1,0.5>,
> <1.5,0>,
> <1,-0.5>,
> <0.5,0>,
> <1,0.5>
>
> scale<0.25,0.125,0.125>
> translate<0,-1,-1>
> rotate<90,0,0>
> }
>
> Thanks !!!!!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |