Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Pages: [1] 2

Author Topic: Diamond parametric shape released  (Read 12871 times)

Kubajzz

  • Flying Platypus
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 548
  • Little doggie ate my avatar...
    • View Profile
Diamond parametric shape released
« on: April 26, 2008, 08: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:
« Last Edit: August 21, 2008, 05:26:06 pm by Kubajzz »
Logged

Tanzim

  • Guest
Re: Diamond parametric shape released
« Reply #1 on: April 27, 2008, 07: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...
    • View Profile
Re: Diamond parametric shape released
« Reply #2 on: April 27, 2008, 08: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 ;)
Logged

flametiger74

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Diamond parametric shape released
« Reply #3 on: April 30, 2008, 12:42:16 am »

Nice Script.
Here's a Test render usinng ART transparensy.
Not the best. but not bad either.
Logged

spicy

  • Sr. Member
  • ****
  • Posts: 546
    • View Profile
    • Xaphix
Re: Diamond parametric shape released
« Reply #4 on: May 02, 2008, 02:23:41 pm »

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

RnDr FOX

  • Sr. Member
  • ****
  • Posts: 259
  • Just Relax
    • View Profile
Re: Diamond parametric shape released
« Reply #5 on: May 03, 2008, 06: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
    • View Profile
    • Xaphix
Re: Diamond parametric shape released
« Reply #6 on: May 03, 2008, 06: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...
    • View Profile
Re: Diamond parametric shape released
« Reply #7 on: May 03, 2008, 07: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...

And one more link: 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
Logged

spicy

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

thanks Kubajzz for your advice and help
Logged

RnDr FOX

  • Sr. Member
  • ****
  • Posts: 259
  • Just Relax
    • View Profile
Re: Diamond parametric shape released
« Reply #9 on: May 04, 2008, 07: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: 251
    • View Profile
Re: Diamond parametric shape released
« Reply #10 on: May 04, 2008, 08: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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1548
    • View Profile
Re: Diamond parametric shape released
« Reply #11 on: May 06, 2008, 05: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, 05:57:29 am by Steve »
Logged

Kubajzz

  • Flying Platypus
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 548
  • Little doggie ate my avatar...
    • View Profile
Re: Diamond parametric shape released
« Reply #12 on: May 06, 2008, 06: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!
    • View Profile
Re: Diamond parametric shape released
« Reply #13 on: May 06, 2008, 10:13:12 am »

Ace work Kubajzz!
Logged

startrekfan001

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: Diamond parametric shape released
« Reply #14 on: May 08, 2008, 01:27:26 pm »

hey great work, i've been busy with diamonds and stuff lately, so this is really handy! thanks a lot!
Logged
Pages: [1] 2