Page 1 of 1

Maya To Indigo Video Tutorial #4: Using Schott Glass

Posted: Mon Dec 03, 2007 11:51 am
by dougal2
This is a silent film this time. I hope it fairly obvious what I'm doing, but the rough steps are:
1. find + download the library posted on this forum by WytRaven.
2. extract it on your disk, near to where you will export your scene.
3. assign a new phongE material to the object that will be glass.
4. <include> the library with the phongE material.
5. rename the shading group to be the same as the glass code.

A couple of things you will notice:
- Maya doesn't like hyphens - in the shading group name. No solution to this at present.
- The first render I launched, the camera was in the wrong position and nothing could be seen through the sphere. After messing about and showing you the various parts of the generated code, I paused the video recorder, changed the camera angle and re-rendered the attached image.

http://www.ftlfm.com/gallery/v/MtI/vidt ... s.flv.html

Posted: Mon Dec 03, 2007 12:43 pm
by CTZn
Mmmh even for me, having never used PhongE before, all operations are not obvious.

Could you please copy and paste here the full code wich is put into PhongE notes ? The wiki would need various examples of this.

Posted: Mon Dec 03, 2007 11:30 pm
by dougal2
I recalled one of the presets, which has the correct first line, then deleted the rest and put in the <include>...</include> XML
so,

Code: Select all

<!-- mti_UseCommentAsMaterial -->
<include>
 <pathname>../SGMatLib/WhateverTheFileIsCalled.igms</pathname>
<include>
is what I had in there.

Posted: Tue Dec 04, 2007 5:35 am
by CTZn
Oki, thanks. So in <!-- mti_UseCommentAsMaterial --> Comment stands for Note ?

I'm really lacking more practical examples with PhongE tags, despite the short explanation in doc I don't get clearly what is parsed by what and what gets written or not in final xml.

bkircher, could you please document that with practical examples ? Saying what it is sometimes is not just enough.

Thanks

Posted: Tue Dec 04, 2007 5:38 am
by dougal2
As long as the notes field starts with

Code: Select all

<!-- mti_UseCommentAsMaterial -->
then everything in the notes field ends up in the XML file.

However, you can use some of the phongE settings, or the shader name if you like by using certain keywords, as listed in the documentation. (I don't know what they are off the top of my head).

Posted: Tue Dec 04, 2007 6:33 am
by CTZn
Got that one now, thanks, it's the name wich is confusing.

Code: Select all

<!-- mti_useNoteAsInclude -->
would make much more sense.

Posted: Tue Dec 04, 2007 7:06 am
by dougal2
yeah i see what you mean.