|
Hello Sikander,
To get the right reference point for the
rotation you can use a transformation. i suggest to go through the
geometry and add an offset value to every point. this is the fastest solution
(meant by runtime). well, a hour hand may not be time
critical..
in general, for the rotation multiply the
quaternion at the left side instead right side to the existing quaternion. axis
aligned rotations are easier, see the examples. i
am not sure how to do in java3d.
remember having two tranformations in the path of
the scenegraph. the first is the translation, the second the rotation. you can
accumulate them into one 3x3 matrix.
Chris
----- Original Message -----
Sent: Friday, April 02, 2004 7:17
PM
Subject: [JAVA3D] make a clock
Hi all
I have a vertical cylinder at 10 units away from
origin(0,0,0). I want to rotate it with respect to the Z axis and pivoted
at the top of the cylinder.
basically i am making a clock and the
cylinder is the hour hand.
kindly tell me how to do it....if i rotate
it,then it rotates with respect to the origin and the whole cylinder
moves....i want the top to remain still and the rest of the cylinder to move
pivoted at top.
On Fri, 02 Apr 2004 Thierry Milard (free)
wrote : >Your example is a wonderfull example. >Your master java3d
. >Thanks : It helps to undestand geometry >and other
things. >Thierry, Paris > >-------Original
Message------- > > From: Discussion list for Java 3D
API >Date: Friday, April 02, 2004 10:53:05 >To:
[EMAIL PROTECTED] >Subject: Re: [JAVA3D] how to draw a 3D
hollow-semi-cylinder HELP > >:) I coudn't stop myself, so here is
a slightly modified scene which has a >waving water flowing through the
pipe. > >Of course, the model is very simplistic, no bouncing on
the walls (infinite >pipe model, laminar flow), water waves follows a
strictly sinusoidal curve, >no textures (pure
geometry). > >Starting with that model, I hope I'll see posted by
you a nice simulation of >a fluid flowing through a non liniar pipe:
turbulent / laminar flow >depending on the Reynolds/Prandtl numbers,
etc. > >Consider shape of the pipe, roughness of the pipe
material, characteristics >of the flowing fluid (water, milk), debit of
the fluid,
etc. > >Cheers, > >Florin > >-----Original
Message----- > From: Discussion list for Java 3D
API >[mailto:[EMAIL PROTECTED] Behalf Of demir
sencer >Sent: Donnerstag, 1. April 2004 17:18 >To:
[EMAIL PROTECTED] >Subject: Re: [JAVA3D] how to draw a 3D
hollow-semi-cylinder HELP > > >wow!!! >thnx florin,it
really looks interesting.. >i'll work on this all the nite i
think.. > >thnk u.. > >--- Florin Herinean
<[EMAIL PROTECTED]> wrote: > > Hi Demir, > > >
> I've played a little and I've created for you a > > class to
generate a half > > cylinder parametrized by height, inner/outer
radius > > and number of slices for > > the
curvature. > > > > The class has a static method
generate(...) which > > will create for you a > > Geometry
object. > > > > Also the class is runnable, so you can test
your > > cylinder. > > > > I've intentionally left
out the texture coordinates > > as an exercise for you. >
> > > You should really try to experiment by creating > >
geometries by hand from time > > to time, to get a feeling of what
can be done and > > how. And don't forget to > > read the
manuals. > > > > Cheers, > > > >
Florin > > > > -----Original Message----- > > From:
Discussion list for Java 3D API > >
[mailto:[EMAIL PROTECTED] Behalf Of > > demir
sencer > > Sent: Donnerstag, 1. April 2004 15:33 > > To:
[EMAIL PROTECTED] > > Subject: Re: [JAVA3D] how to draw a
3D > > hollow-semi-cylinder HELP > > > > >
> first of all i'm so so so sorry,Florin and Gilson, > > i made
mistake,i wanted to send to whole group my > > messages but i sent
emails by mistake to 2 u who > > helped me with their
ideas/code..sorry to disturb u > > :(:( > > > > its
what i did up to now,its code of my 3DWorld > > class..i created
everything here..if anyone wants i > > can send all my package to
have a look how it > > works,how it looks like.. > >
... > > >
> >=========================================================================== >
> To unsubscribe, send email to [EMAIL PROTECTED] > > and
include in the body > > of the message "signoff JAVA3D-INTEREST".
For > > general help, send email to > >
[EMAIL PROTECTED] and include in the body of the > > message
"help". > > > > > ATTACHMENT part 2 java/*
name=HollowCilinder.java > > > >__________________________________ >Do
you Yahoo!? >Yahoo! Small Business $15K Web Design
Giveaway >http://promotions.yahoo.com/design_giveaway/ > >=========================================================================== >To
unsubscribe, send email to [EMAIL PROTECTED] and include in the
body >of the message "signoff JAVA3D-INTEREST". For general help, send
email to >[EMAIL PROTECTED] and include in the body of the message
"help". > >=========================================================================== >To
unsubscribe, send email to [EMAIL PROTECTED] and include in the
body >of the message "signoff JAVA3D-INTEREST". For general help, send
email to >[EMAIL PROTECTED] and include in the body of the message
"help". > > > >=========================================================================== >To
unsubscribe, send email to [EMAIL PROTECTED] and include in the
body >of the message "signoff JAVA3D-INTEREST". For general help,
send email to >[EMAIL PROTECTED] and include in the body of the
message "help".
Sikander Hayat F/0 Engineering and
Technology Jamia Millia Islamia New
Delhi ----------------------------------- + LIVE BY THE
SWORD,DIE BY THE SWORD
| ----------------------------------- +
=========================================================================== To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body of
the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message
"help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
|