Parametric curves

Share your ZGE-development tips and techniques here!

Moderator: Moderators

Post Reply
kattle87
Posts: 402
Joined: Wed Sep 26, 2007 9:06 am
Location: Italy

Parametric curves

Post by kattle87 »

Enjoy ;)

this is only the beginning... Lots of parameters to be set :)
Attachments
Anyone is texturing a cathedral window?
Anyone is texturing a cathedral window?
trochoid.gif (45.47 KiB) Viewed 7171 times
This could be useful... Flowers or something like that? ;)
This could be useful... Flowers or something like that? ;)
pericycloid.gif (15.39 KiB) Viewed 7171 times
jph_wacheski asked for a non-implicit torus, didn't he?
jph_wacheski asked for a non-implicit torus, didn't he?
torus.gif (28.92 KiB) Viewed 7171 times
kattle87
Posts: 402
Joined: Wed Sep 26, 2007 9:06 am
Location: Italy

Post by kattle87 »

this is the project file: I was not allowed to attach it in the other post due to attachments limit

BTW: the first thing that the expression does is flattening the cube for getting a sort of "MeshGrid", this is the easies way even if it "kills" lots of triangles (they disappear even if they are computed so rendering is slower). But when Ville will add the MeshGrid component we will be happier and our graphic card faster :D
Attachments
parametric.zgeproj
I think mathematics should be opensource :D
(3.28 KiB) Downloaded 683 times
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

Very impressive! I'm going to implement a net/grid so that the polycount can be lowered. Good math-skills kattle87 :)
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

sweet mathemajic

Post by jph_wacheski »

Well yes, this is excellent work here! I am amazed what you can do with these tinny bits of mathemajic! Sure, I can use help with Artificial Nature,. and all my 3d games as 3d math is the largest hurdle for me,. well basic trig. in fact is also a bit of a fuzzy gray-zone to me sometimes as well,. guess I have good days and bad depending on my mental energy or focus.

I loaded your proj. file in the latest ver. of ZGE, and with the new 2DcubeOnly (looks like it was added just for you :)) box ticked the torus is inside out,. how do we invert it? However this does give me a great idea for an endless tube game,. hummm.

great stuff!

oh I had found one you will be interested in! I was going to attempt to implement it in ZGE myself,. however you may just be the man for the job!

http://en.wikipedia.org/wiki/Superformula

this looks like a great way to generate flowers and such as if we can build the equation. It takes four seed numbers to return a near endless set of forms,. would be perfect for our uses. Personaly I would like to see it dawing bitmaps as well as the full 3d mesh implementation as I can see many uses for both, those 2d shapes will be great for particles, leaves, flowers, etc. and the meshes will just be spectacular!

or is that whay you are already using here?
iterationGAMES.com
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: sweet mathemajic

Post by VilleK »

jph_wacheski wrote:I loaded your proj. file in the latest ver. of ZGE, and with the new 2DcubeOnly (looks like it was added just for you :)) box ticked the torus is inside out,. how do we invert it? However this does give me a great idea for an endless tube game,. hummm.
I noticed this too and I got it working by inverting the z-axis at the end of the expression:

this.V.Z *= -1;
Post Reply