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.

Author Topic: Glass  (Read 3026 times)

rellik420

  • Sr. Member
  • ****
  • Posts: 652
    • View Profile
    • youtube channel
Glass
« on: May 31, 2009, 08:50:00 pm »

I scanned this website and couldnt find anything about how to make glass. im pretty sure its only in prototype stage right now but ic alot of people using glass. if someone would point me in the right direction i would appreciate it.
Logged
h

ncl32

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Glass
« Reply #1 on: June 01, 2009, 09:50:52 am »

Prototype... not really... Beta, yeah more like it. Glass has been introduced into Anim8or via the use of its new built in Ray Tracer "ART". Art supports Not only refractions[glass like properties...], but Reflections as well. And a brilliant Ambient Occluder Attribute as well. Any way now I could personally explain to you how all that works. But since it is 5 am where I'm at, I will simply tell you how to accomplish the effect you desire, and post a link to a page so you can download sample files, and get the gist on how things work with what is called Anim8or's Attributes!

To do this make sure you have the latest Preview version of Anim8or, v0.97d.

Okay, in order to have a object or mass if you will that refracts and reflects like glass you need to first tell Anim8or some simple things.

Open Anim8or firstly, create a sphere using the "sphere" primitive button on the left hand side.

Now open up the material tab if its not open as of yet. It should be the button right below "Object" at the top, and it should have 4 black circles in it.

Okay, double click New in the material tab, and now a material dialog box should had opened. first things first, goto Trans: and set this to 0 or .1 Just for now, you can play around with this depending on result you want.

Next up, in the material dialog box, Click the Attributes button.

Once you have done this a new dialog box should have been created in the top left hand corner of Anim8or's window.

First things first, The Attribute feature that is strung throughout Anim8or is to turn on or off new features that are built into Anim8or by the use of simple commands, and some sort of controlling value. Simple really, you will get used to it until they are integrated into the GUI.

Okay, so lets now tell Anim8or that we want to add a "Attribute" to the current material so that when rendered it will reflect/refract light.

So click the New button. and yet again a new dialog box asking for an Attribute name. Type, "class", without the parentheses, and yes it is case sensitive. Okay, now hit ok.

Now you will see that you have a "class" attribute. Now you have to define what part of the class attribute you would like to turn on.

So click the "String" selection. Now in the bottom box that is white, type "transparent". Now Anim8or knows what attribute to use and what feature of that attribute. But it doesn't know how much or little of that feature to use. so an extra step is needed.

Okay so next hit the New button again in the Attribute dialog box and type in "IOR" as the name of the new attribute. This attribute controls the value for which a transparent object refracts, defining its properties of the specific mass. So in order to use this keep it on "Float" and type "1.33" in. This is a value that mimics glass pretty well.

Once your done doing that hit okay, and okay out of the material box as well. And apply your material to the sphere you created.

Alright, so I will now tell you that rendering reflections and refractions take a longer time because of the Ray Tracers job of calculating direction and the intensity of virtual rays of light. Not to mention shadows and so on. Now the class feature as I call it, transparent is a simple refractive feature. It does not act like a real life physical glass type object because if does not figure true material and color. In order to get a more realistic glass pane look you would need to use the feature under class entitled "dialectric". You can read up on more of this and other attributes and features on the provided link at the bottom of this explanation.

Now since you have a transparent sphere go ahead and render it directly in Object Mode. You wont see that much of a effect, and will probably think you did it wrong but then ponder on why it took much longer. This is because it worked! BUT... the mass doesn't have any light to refract!. So go ahead and go to Scene Mode, and Build>Add Object... and choose your sphere, [should be object01]. Now go ahead and go to the front view and make sure that your object is "sitting" on the center line, [the default checkered floor]. Then switch to "camera".

Now go to Render>Renderer and make sure you have ART selected...

Now click Render>AA Setup. Make sure that you have it at at least 4 samples, [more is better, the image and your reflection/refractions wont come out really grainy]

Okay now that its set up click Render> Render Image. and hit okay.

And there you have it! After a whole page of me explaining it, and being up at 5am, your done!. Hope you understand my explanation, and Happy Anim8ing!

By the way the link to the other features in ART, and more on what was said, and sample files to reference from.

http://anim8or.com/download/preview/art_raytracer.html

Need anymore help feel free to ask.

Ncl32
Nate
Logged
Programs of Choice: Anim8or, Jasc Paint Shop Pro 9, Finally learning Blender. Free software is kick at fifty five!

Competitions are fun! Be apart of THEM!

ENSONIQ5

  • Sr. Member
  • ****
  • Posts: 925
    • View Profile
    • Mission Backup Earth
Re: Glass
« Reply #2 on: June 01, 2009, 12:52:48 pm »

Not bad for 5am ncl32!
Logged

rellik420

  • Sr. Member
  • ****
  • Posts: 652
    • View Profile
    • youtube channel
Re: Glass
« Reply #3 on: June 01, 2009, 08:45:16 pm »

Thanks. that link u gave me should b easier to find on the site.

i followed ur instructions and it works great.
Logged
h

floyd86

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1056
    • View Profile
    • http://youtube.com/profile?user=floyd386
Re: Glass
« Reply #4 on: June 01, 2009, 10:33:24 pm »

Thanks. that link u gave me should b easier to find on the site.

i followed ur instructions and it works great.

There is a link in the forum guide lines ;)

ncl32

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Glass
« Reply #5 on: June 02, 2009, 06:17:29 pm »

Good to hear it worked rellik420! Yeah that link can actually be found on the "v0.97 Preview" link on the left hand side. Its down the page a bit under "New Features in v0.97a Preview". The link is hard to miss, but it link says "art_raytracer" .

Yeah ENSONIQ5, I was tired... lol One of those mornings where ya wake up randomly at a really early time... And in this case I felt like helping a fellow Anim8or out. ;)

Any way like I have said before any more help just ask. I can write things up decently quick, and am considering writing up some tutorials [with pictures!].

Ncl32
Nate
Logged
Programs of Choice: Anim8or, Jasc Paint Shop Pro 9, Finally learning Blender. Free software is kick at fifty five!

Competitions are fun! Be apart of THEM!

Jdez

  • Full Member
  • ***
  • Posts: 105
    • View Profile
    • Tech Blog
Re: Glass
« Reply #6 on: June 14, 2009, 01:12:16 am »

A "How to make Glass" tutorials would be great to have on the site. Especially for people who don't feel like rooting around in the Forums.
Logged
Having fun with ASL!
Tech blog: http://jaydez-tech.blogspot.com

Tanzim

  • Guest
Re: Glass
« Reply #7 on: June 14, 2009, 11:06:25 am »

Well, if there's someone too lazy to look around and instead asks others for help, then how much do you think they'll achieve in CG?
They'd be wasting their time.
Logged

rellik420

  • Sr. Member
  • ****
  • Posts: 652
    • View Profile
    • youtube channel
Re: Glass
« Reply #8 on: June 17, 2009, 01:07:33 am »

i just found out about the search function on the forums. but i did rake through the site and in my opinion wasn't in the best spot. but again thanks for the help.
Logged
h