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
Maya To Indigo Video Tutorial #4: Using Schott Glass
Maya To Indigo Video Tutorial #4: Using Schott Glass
- Attachments
-
- schottTest.xml.png (455.17 KiB) Viewed 5079 times
I recalled one of the presets, which has the correct first line, then deleted the rest and put in the <include>...</include> XML
so,
is what I had in there.
so,
Code: Select all
<!-- mti_UseCommentAsMaterial -->
<include>
<pathname>../SGMatLib/WhateverTheFileIsCalled.igms</pathname>
<include>
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
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
As long as the notes field starts with 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).
Code: Select all
<!-- mti_UseCommentAsMaterial -->
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).
Got that one now, thanks, it's the name wich is confusing.
would make much more sense.
Code: Select all
<!-- mti_useNoteAsInclude -->
obsolete asset
Who is online
Users browsing this forum: No registered users and 3 guests