Anim8or Community

General Category => ASL Scripts => Topic started by: Kubajzz on April 26, 2008, 04:53:02 am

Title: Diamond parametric shape released
Post by: Kubajzz on April 26, 2008, 04:53:02 am
Edit 21-08-2008 - I attached the script file instead of posting a download link...

Hello,

I've just finished Diamond parametric shape script (the file attached).

It contains 7 different diamond shapes and several parameters of each shape.

To be honest, I don't think anybody will find all this useful... I just enjoyed programming and studying the geometry ;D

If you have any questions or suggestions, don't hesitate to post it here...

Have fun!

Demo image:
Title: Re: Diamond parametric shape released
Post by: Tanzim on April 27, 2008, 03:43:59 am
The read-me says that recommended material specular value is 2, does this mean that Anim8or's raytracer doesn't follow the Law of Energy Conservation?
Anyways, cool script.
Title: Re: Diamond parametric shape released
Post by: Kubajzz on April 27, 2008, 04:23:35 am
The read-me says that recommended material specular value is 2, does this mean that Anim8or's raytracer doesn't follow the Law of Energy Conservation?
Anyways, cool script.

I didn't think of that... I think Anim8or doesn't care of the energy at all, you can enter something like 150 or -5 for specular and it will work 8) It means that Anim8or doesn't really obey physics, but who cares? You can get incredible results if you experiment with weird values ;D

btw. the recommended material settings are results of my experiments; it doesn't mean they are the best diamond materials. I bet you could find better materials if you did several test renders... So... Don't take my materials too seriously ;)
Title: Re: Diamond parametric shape released
Post by: flametiger74 on April 29, 2008, 08:42:16 pm
Nice Script.
Here's a Test render usinng ART transparensy.
Not the best. but not bad either.
Title: Re: Diamond parametric shape released
Post by: spicy on May 02, 2008, 10:23:41 am
Nice script Kubajzz, I like it. Maybe I should get into scripting
Title: Re: Diamond parametric shape released
Post by: RnDr FOX on May 03, 2008, 02:49:40 pm
Yea I am thinking about getting into scripting, do you have any suggestions on what a new guy like should do first. Also what program language does anim8or use (like java)
Title: Re: Diamond parametric shape released
Post by: spicy on May 03, 2008, 02:51:59 pm
I would guess it would be Java, but I could be wrong. I have always wanted to do scripting ( I am in July, I am going to John Leggot College to try out some scripting for the day, using Java). It should be fun. Hope people will let us know
Title: Re: Diamond parametric shape released
Post by: Kubajzz on May 03, 2008, 03:30:44 pm
Anim8or uses it's own scripting language (ASL means Anim8or Scripting Language). You can find it's specification here: http://www.anim8or.com/scripts/spec/Anim8or_Scripting_Language.html (http://www.anim8or.com/scripts/spec/Anim8or_Scripting_Language.html)

It's really easy to write scrpts, I recommend you to download the plane plugin (http://www.anim8or.com/scripts/tyson_collins/plane_plugin.a8s); read the code and then try to create your own simple shape...

Also check this topic: http://www.anim8or.com/smf/index.php?topic=206.0 (http://www.anim8or.com/smf/index.php?topic=206.0)
- it will help you understand how the plane primitive script works...

And one more link: http://anim8or.org/forums/index.php/topic,777.msg7544.html#msg7544 (http://anim8or.org/forums/index.php/topic,777.msg7544.html#msg7544)
- the first post of that topic contains an attachment with 3 simple parametric shapes, maybe they will also help you to learn scripting...

Just try it, you will find out that it looks more difficult than it is...

btw. I'm glad you appreciate the diamonds... I created it for fun, to learn scripting... And then I thought I would post it :) Thanks
Title: Re: Diamond parametric shape released
Post by: spicy on May 03, 2008, 04:14:25 pm
thanks Kubajzz for your advice and help
Title: Re: Diamond parametric shape released
Post by: RnDr FOX on May 04, 2008, 03:47:54 pm
I know that anim8or uses ASL but what scripting language was used to create anim8or itself. Like did he use java to create anim8or and coded it where anim8or can use its own language. Can you explain this to me cause I am still a little confused on that. But right now am studing the ASL language.
Title: Re: Diamond parametric shape released
Post by: Claude on May 04, 2008, 04:46:12 pm
As far as I know,here's how it is:
Anim8or is written in C++.I would guess around 400,000 lines of code.
The win32 API is used for the msg boxes and the menu at the top of the
window.The OpenGl API is used for rendering the viewport(working
view) and the buttons on the left and top.
Title: Re: Diamond parametric shape released
Post by: Steve on May 06, 2008, 01:55:53 am
Wow! This one's going on the scripst page, too, Kubajzz :)  Was your image rendered using Anim8or?
Title: Re: Diamond parametric shape released
Post by: Kubajzz on May 06, 2008, 02:12:01 am
Yes, it was rendered in Anim8or... Nice, isn't it? ART rocks (thanks for it ;))...
Title: Re: Diamond parametric shape released
Post by: Wolven anim8or on May 06, 2008, 06:13:12 am
Ace work Kubajzz!
Title: Re: Diamond parametric shape released
Post by: startrekfan001 on May 08, 2008, 09:27:26 am
hey great work, i've been busy with diamonds and stuff lately, so this is really handy! thanks a lot!
Title: Re: Diamond parametric shape released
Post by: almost cool on July 30, 2008, 11:35:22 pm
i cant find the attribute thing!good code Kubajzz.