Maya To Indigo Video Tutorial #4: Using Schott Glass

Tutorials/guides/tips on how to use Indigo and the Indigo exporters
Post Reply
7 posts • Page 1 of 1
User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Maya To Indigo Video Tutorial #4: Using Schott Glass

Post by dougal2 » Mon Dec 03, 2007 11:51 am

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
Attachments
schottTest.xml.png
schottTest.xml.png (455.17 KiB) Viewed 5079 times

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Mon Dec 03, 2007 12:43 pm

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.
obsolete asset

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Mon Dec 03, 2007 11:30 pm

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.

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Tue Dec 04, 2007 5:35 am

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
obsolete asset

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Tue Dec 04, 2007 5:38 am

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).

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Tue Dec 04, 2007 6:33 am

Got that one now, thanks, it's the name wich is confusing.

Code: Select all

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

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Tue Dec 04, 2007 7:06 am

yeah i see what you mean.

Post Reply
7 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests