Animation of a Cosine graph – any ideas?

I think Alan has the idea…

There is no formula per se, but just data points as you can see above…. I have a list of the x,y coordinates which were used to make this graph… so the script would follow these data points in sync with the rotating molecule

I’ve included the data points used to make the cholorpropane graph above…

Sorry what did you do? andnbsp;not to sure on what you did?

RawlinsCross

all I did was to animate the spinney thing and at the same time move a flattened cube to the right – this revealed the graph that was (painted) on the face of another cube behind…. there – clear as mud ? <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

Alan,

That is such a neat way to do it. andnbsp;Good for the non-scripters such as myself…. very very nice.

Although note to PaulGausden… I’ll learn to script since you’ve given me a sample to disect. andnbsp;If you want to put your ideas forth for a scripting solution to this problem, love to learn about it. andnbsp;Somewhere down the line scripting might be the ONLY solution.

Thanks everyone for the help… I’ll see if I can post the final result on a website somewhere for all to see.

Well it’s been a real pain in the euphemism debugging this script, but I’ve managed to get it to stage 1.

I wrote it on a short ride on the underground, and it’s taken 6 months to get it running at all andnbsp;:)

The idea is to extrude an arbitrary face along a given function. andnbsp;Obviously you have to know what you’re doing, know what the face is etc. andnbsp;You know I can’t even remember why I wanted to do this.

Anyway, here are the first results. andnbsp;The yellow one is a sin wave – (y=cos(x)), the other one is the same but corkscrewed by adding z=sin(x). andnbsp;The original face was a hexagon. andnbsp;A square got less screwed up by the end of the extrusion.

There is a remaining major problem to do with turning the face to follow the extrusion function, but I’ve commented the maths out of the script <!– s:-) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile" /><!– s:-) –> andnbsp;Anyway, I think that’s why the hexagon got screwed up.

So if anyone is interested in using this, we’ll take the discussion to Scripting. andnbsp;I have absolutely no idea how to animate it, but I imagine it’s very simple….

Have fun
George

You must be logged in to reply in this thread.

20 posts