# Anim8or Community

• September 08, 2024, 02:06:25 am
• Welcome, Guest

### News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Pages: [1] 2

### AuthorTopic: Diamond parametric shape released  (Read 28402 times)

#### Kubajzz

• Flying Platypus
• Global Moderator
• Sr. Member
• Posts: 548
• Little doggie ate my avatar...
##### Diamond parametric shape released
« on: April 26, 2008, 04:53:02 am »

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

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

Have fun!

Demo image:
« Last Edit: August 21, 2008, 01:26:06 pm by Kubajzz »
Logged

#### Tanzim

• Guest
##### Re: Diamond parametric shape released
« Reply #1 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.
Logged

#### Kubajzz

• Flying Platypus
• Global Moderator
• Sr. Member
• Posts: 548
• Little doggie ate my avatar...
##### Re: Diamond parametric shape released
« Reply #2 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 It means that Anim8or doesn't really obey physics, but who cares? You can get incredible results if you experiment with weird values

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
Logged

#### flametiger74

• Full Member
• Posts: 152
##### Re: Diamond parametric shape released
« Reply #3 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.
Logged

#### spicy

• Sr. Member
• Posts: 546
##### Re: Diamond parametric shape released
« Reply #4 on: May 02, 2008, 10:23:41 am »

Nice script Kubajzz, I like it. Maybe I should get into scripting
Logged

#### RnDr FOX

• Sr. Member
• Posts: 259
• Just Relax
##### Re: Diamond parametric shape released
« Reply #5 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)
Logged

#### spicy

• Sr. Member
• Posts: 546
##### Re: Diamond parametric shape released
« Reply #6 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
Logged

#### Kubajzz

• Flying Platypus
• Global Moderator
• Sr. Member
• Posts: 548
• Little doggie ate my avatar...
##### Re: Diamond parametric shape released
« Reply #7 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

It's really easy to write scrpts, I recommend you to download the plane plugin; 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
- it will help you understand how the plane primitive script works...

- 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
Logged

#### spicy

• Sr. Member
• Posts: 546
##### Re: Diamond parametric shape released
« Reply #8 on: May 03, 2008, 04:14:25 pm »

Logged

#### RnDr FOX

• Sr. Member
• Posts: 259
• Just Relax
##### Re: Diamond parametric shape released
« Reply #9 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.
Logged

#### Claude

• Sr. Member
• Posts: 285
##### Re: Diamond parametric shape released
« Reply #10 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.
Logged

#### Steve

• Hero Member
• Posts: 2124
##### Re: Diamond parametric shape released
« Reply #11 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?
« Last Edit: May 06, 2008, 01:57:29 am by Steve »
Logged

#### Kubajzz

• Flying Platypus
• Global Moderator
• Sr. Member
• Posts: 548
• Little doggie ate my avatar...
##### Re: Diamond parametric shape released
« Reply #12 on: May 06, 2008, 02:12:01 am »

Yes, it was rendered in Anim8or... Nice, isn't it? ART rocks (thanks for it )...
Logged

#### Wolven anim8or

• Newbie
• Posts: 42
• I'm a BISH!
##### Re: Diamond parametric shape released
« Reply #13 on: May 06, 2008, 06:13:12 am »

Ace work Kubajzz!
Logged

#### startrekfan001

• Jr. Member
• Posts: 65
##### Re: Diamond parametric shape released
« Reply #14 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!
Logged
Pages: [1] 2