MayaToIndigo 1.0.9(.3) (Updated 25th April 2008)

Announcements, requests and support regarding the MAYA exporter
Post Reply
98 posts
User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

MayaToIndigo 1.0.9(.3) (Updated 25th April 2008)

Post by dougal2 » Fri Apr 25, 2008 10:02 am

I've done work on the indigoShader to support:
- Bump maps
- Exponent maps
- Blending
- Texture ABC coefficient support
- Texture Gamma support

To use a bump map, you need to manually connect a bump2d node to the indigoShader (middle-drag the bump2d onto it, choose default).

To use an exponent map, attach a file texture to the phong's Exponent attribute.

The ABC and Gamma parameters previously did nothing, but now they are used for the relevant texture.
NB: Bump strength is controlled via the ABC coefficients, not by any parameter on the bump2d node.

To blend indigoShaders, use a Layered Shader on your geometry, and connect 2 shaders to it (these shaders could be indigoShaders, or any other that MtI translates - including another Layered Shader).
If the first shader in the blend is an indigoShader, you should use the Blend Factor slider in the indigoShader to set the blend factor.
If you use a 2nd indigoShader, it's blend factor is ignored.
Blend factors for non-indigoShaders are controlled via the Transparency attribute.

All of this info may eventually be merged into the documentation, but for now use this thread to discuss problems or ask questions about the indigoShader.

UPDATE 1093
Changed the IGM loader to use cross-platform file dialog.
NB: with this release I made the windows installer using a linux system. please report any problems.
Attachments
MayaToIndigoInstaller-1093-linux.zip
(165.39 KiB) Downloaded 337 times
MayaToIndigoInstaller-1093-win.zip
(121.73 KiB) Downloaded 460 times
Last edited by dougal2 on Sat Apr 26, 2008 9:22 am, edited 1 time in total.

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

Post by dougal2 » Fri Apr 25, 2008 10:08 am

And here's an example (and quite odd) multi-blend on indigoShaders.
Yellow = oren-nayar
Blue = specular
Pink = phong
Attachments
isMultiBlend.jpg
isMultiBlend.jpg (80.42 KiB) Viewed 6773 times

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

Post by dougal2 » Fri Apr 25, 2008 9:57 pm

NOTE (to self):
need to change the default Specular Reflectivity to black so that by default the phong material actually has a colour :roll:

(notice there's no pink colour at all in the render above)

Also, looks the AETemplate needs to be updated to en/disable the spec.refl. attribute when phong is selected/deselected.

User avatar
Phr0stByte
Posts: 395
Joined: Wed Nov 22, 2006 5:07 am
Location: Centreville, VA
Contact:

Post by Phr0stByte » Fri Apr 25, 2008 11:10 pm

dougal2
Have you fixed the "import .igm"?

Havnt messed with the IndigoShader yet, but I am sure I will get to it at some point... I swear, I wish the days were 48 hours.

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

Post by dougal2 » Sat Apr 26, 2008 8:46 am

I can't remember what you mean about the .igm import. I'll test it now.
Last edited by dougal2 on Sat Apr 26, 2008 9:22 am, edited 1 time in total.

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

Post by dougal2 » Sat Apr 26, 2008 9:06 am

re: igm loader
OK, I see now, I was using a windows only MEL extension for the file chooser. I've changed it to use the cross-platform one instead.


Update 1093 in first post.

User avatar
Phr0stByte
Posts: 395
Joined: Wed Nov 22, 2006 5:07 am
Location: Centreville, VA
Contact:

Post by Phr0stByte » Sat Apr 26, 2008 11:26 pm

dougal2
Good stuff! I will test it out...

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

Post by dougal2 » Mon Apr 28, 2008 5:16 am

This afternoon mostly out of boredom I've created a custom locator type which I intend to use to specify Exit Portals instead of using real geometry.

The locator looks like the screenshot, with a red normal marker to show which side should point into your room/house/whatever.

This is scripted in python, in the same plugin as the indigoShader - which will also mean that in future releases I may have to rename indigoShader.py to indigoPlugin.py

I've yet to decide how to implement the export function for this - this is just a node prototype for now.
Attachments
indigoExitPortal.jpg
indigoExitPortal.jpg (73.57 KiB) Viewed 6635 times

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

Post by dougal2 » Tue Apr 29, 2008 10:51 am

Bug found in calculating basic medium absorption spectrum:
The RGB values are subtracted from 1, therefore specifying RGB > 1 for higher absorption results in negative RGB export = black material.

proposed solution: add an RGB Absorption Gain parameter to indigoShader and then:
RGB Absorption Exported = ( 1 - Asorption RGB ) * RGB Absorption Gain.
Therefore Absorption RGB doesn't need to be (and shouldn't be) > 1.

SSS aborption doesn't suffer this issue since the RGB doesn't need to be "inverted".

Not sure how the gain could be managed for non indigoShader materials (blinn).

vux
Posts: 164
Joined: Wed Sep 05, 2007 1:02 am

Post by vux » Tue May 06, 2008 10:28 pm

I dont understand how to control meshlite iintencity
I tryed different values for incandescence in Lambert? but results identical

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

Post by dougal2 » Wed May 07, 2008 3:45 am

try adjusting the glowIntensity parameter too.

vux
Posts: 164
Joined: Wed Sep 05, 2007 1:02 am

Post by vux » Wed May 07, 2008 4:02 am

I tryed, but results similar
Please open my studio-setup scene in my post
I think i do somthing wrong...

And second ques...

My studio setups work only with ReinhardTM, but with Cam or Linear it is black screen...

thanx for answers

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

Post by dougal2 » Wed May 07, 2008 4:38 am

I'll have a look when I get home this evening.

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

Post by CTZn » Thu May 08, 2008 5:46 am

Hi !

Have you been working on this last night Dougal ? 'Cause I fixed it three days ago ^^

I've sent you the files by PM, tell me what you think and how you want the merging to be managed. Later on I'll revive the svn stuff if I'm still welcome and then I'll try to be of some help :)
obsolete asset

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

Post by dougal2 » Thu May 08, 2008 7:03 am

CTZn
I've just looked through your changes. I didn't notice very many changes, mostly that you have quite an old version ;)

I'm OK with your ideas except the <absorption_coefficient_spectrum> stuff.

Yes, the absorption is scale dependant - and people who construct scenes need to use appropriate values for the scale that they model at.
IMO it's correct that the absorption effect changes with object size. I think that trying to scale the absoptions values with GSF is counter-intuitive.

Regarding your parameter editor GUI thing (which I've not tested yet) - you should really grab a recent MtI and play with the indigoShader before getting too involved in doing that materials stuff. It's a good idea for the lights and camera though - bear in mind that camera settings need to be synced to the mti_settings script node too (I'm sure you know this ;) ).

SVN should be up to date for you to look at in a few minutes time.

Post Reply
98 posts

Who is online

Users browsing this forum: No registered users and 1 guest