Indigo Material Database instructions

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
User avatar
OnoSendai
Developer
Posts: 6237
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Indigo Material Database instructions

Post by OnoSendai » Thu Jun 05, 2008 4:29 pm

Downloading and Using materials

When you download a material from the material database, it will either be a IGM (.igm) or PIGM (.pigm) file. IGM files are just XML files, so you can open them with a text editor. PIGM files are Zip files, so you open them with programs that handle Zip files.

Once you have downloaded the material, you will want to import it into the Indigo plugin for your modelling package. How this is achieved will vary from package to package. Also, support for IGM and PIGM files may not be complete yet.

Uploading a material:

You must be registered and logged in to the Indigo site to upload a material.

You will need to make a preview render using your material. You must use the official Indigo material preview scene for this preview render. You can get it here: http://www.indigorenderer.com/joomla/fo ... php?t=4209

You can upload either an IGM or PIGM file. The file you upload must conform to the IGM/PIGM specification, which you can read here:
http://www.indigorenderer.com/joomla/fo ... php?t=3301

You can also upload some example renders showing the material in use.

Skipper
Posts: 1
Joined: Tue Feb 17, 2009 3:07 pm

Where to install the IGMs and PIGMs?

Post by Skipper » Tue Feb 17, 2009 3:14 pm

Forgive me, but I'm a fresh beginner in Indigo, as I've just started SKindigo-ing two days ago. I've found really nice materials by Whaat and I've downloaded them onto my HDD.

I am now having questions as to where to install the IGM files?
I cannot find IGMs anywhere in my SKindigo and Indigo folders.

Please advise, Indigo community.

Thanks a million in advanced.
Skipper.

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

Post by CTZn » Tue Feb 17, 2009 7:04 pm

Hi Skipper,

External files like igm and pigm files are included in Indigo scenes through the <include> feature, wich will specify the path for them. For instance, the material test scene linked above is using this feature by including the material to be tested from a separate file (previewmats.igs). If you open IMPmatdb.igs with a text editor you will find the <include> tag pointing to the forementioned, this exposes the functionality.

Since this is a rather advanced description, and also because this issue is adressed in an exporter specific fashion, you would have faster and more practical answers if you use the Sketchup forum instead :)
obsolete asset

User avatar
Meelis
Posts: 383
Joined: Sat Mar 14, 2009 11:29 pm
Location: Estonia

Re: Indigo Material Database instructions

Post by Meelis » Mon Nov 08, 2010 10:24 pm

Hi :D

Why the official Indigo material preview scene,
when started in material editor and then opened by indigo for the use of slaves,
will ignore my made changes in file C:\Program Files\Indigo Renderer\data\preview_scenes\mat_db\matpreviewscene_igmesh

like: halt 2000 SPP, Aperture Diffraction, MLT
insteed i get halt -1, Aperture Diffraction of, post pro.. on, BIDIR with no MLT

I have Indigo v2.4.13, Windows 64-bit. Vista 64

With PureSpider Scene it's ok
http://www.indigorenderer.com/forum/vie ... ntribution

User avatar
Pibuz
1st Place 100
Posts: 2646
Joined: Tue Dec 11, 2007 7:58 am
Location: Padua, Italy
3D Software: SketchUp

Re: Indigo Material Database instructions

Post by Pibuz » Mon Jul 16, 2012 11:46 pm

Hi all!
Fascinated by the wonderous results of some authors out there, I started to fiddle with the shader materials of the database, and I stumbled on Galinette's terracotta exagonal tiles.

That was made when parameters' scrollbars weren't introduced yet, right? So there is no way to control parameters through an easy-going GUI, isn't it?

If so, is there a chance that one of the ISL pros of the forum (galinette himself included) rewrites the code to include the GUI cursors?

Thanks in advance!

User avatar
galinette
1st Place Winner
Posts: 923
Joined: Sat Jan 09, 2010 1:39 am
Location: Nantes, France
Contact:

Re: Indigo Material Database instructions

Post by galinette » Tue Jul 17, 2012 1:11 am

Is there a way to make global shader parameters to avoid declaring several times, when used for instance in both bump and diffuse?

Etienne
Eclat-Digital Research
http://www.eclat-digital.com

User avatar
OnoSendai
Developer
Posts: 6237
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Indigo Material Database instructions

Post by OnoSendai » Tue Jul 17, 2012 1:16 am

Hi Etienne,
We did some work on that, but it's not quite finished.

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: Indigo Material Database instructions

Post by fused » Tue Jul 17, 2012 1:23 am

galinette wrote:Is there a way to make global shader parameters to avoid declaring several times, when used for instance in both bump and diffuse?

Etienne
Yes, they are called "shared parameters", but currently aren't implemented in the UI (and maybe not fully working in the core).

The xml for that should look like this:

Code: Select all

<material>
        <name>material name</name>
        <phong>
            <shared_shader_info>
                    <param>
                        <colour3>
                            <name>BaseColor</name>
                            <description>BaseColor</description>
                            <value>0.7893137335777283 0.7893137335777283 0.7893137335777283</value>
                        </colour3>
                    </param>
            </shared_shader_info>

            [...]

        </phong>
</material>

User avatar
galinette
1st Place Winner
Posts: 923
Joined: Sat Jan 09, 2010 1:39 am
Location: Nantes, France
Contact:

Re: Indigo Material Database instructions

Post by galinette » Tue Jul 17, 2012 1:55 am

Yesssss
Eclat-Digital Research
http://www.eclat-digital.com

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

Re: Indigo Material Database instructions

Post by CTZn » Tue Jul 17, 2012 2:05 am

I was looking for this exactly yesterday Yves, I wanted to check on the feature again just in case.
obsolete asset

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: Indigo Material Database instructions

Post by fused » Tue Jul 17, 2012 4:59 am

Made them available in the UI:
shared_params.png
Still need to make it possible to edit the shared shader code (shared_shader_info can also contain shader code).

User avatar
galinette
1st Place Winner
Posts: 923
Joined: Sat Jan 09, 2010 1:39 am
Location: Nantes, France
Contact:

Re: Indigo Material Database instructions

Post by galinette » Tue Jul 17, 2012 5:23 am

fused wrote:shared_shader_info can also contain shader code
Does this mean we can put functions here, called by other shaders in the material?

The "must" feature would be to pre-compute shared variables with functions that Indigo calls before any call to other shaders. For instance, I often have quite complex calculations that noticeably slow down the render speed. These calculations are re-done in each channel (diffuse, bump, exponent...) which is a waste

There could be an "eval" function in shared code, which returns nothing but assigns values to shared variables. This function would be called before any call to other channels. Don't know if this is feasible...

Etienne
Eclat-Digital Research
http://www.eclat-digital.com

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: Indigo Material Database instructions

Post by fused » Tue Jul 17, 2012 5:45 am

galinette wrote:Does this mean we can put functions here, called by other shaders in the material?
Yes.

The parsing of shared shader stuff does not work in the current release, but the next release will hopefully have it enabled (if we don't run into any problems).
galinette wrote:The "must" feature would be to pre-compute shared variables with functions that Indigo calls before any call to other shaders. For instance, I often have quite complex calculations that noticeably slow down the render speed. These calculations are re-done in each channel (diffuse, bump, exponent...) which is a waste

There could be an "eval" function in shared code, which returns nothing but assigns values to shared variables. This function would be called before any call to other channels. Don't know if this is feasible...

Etienne
You'll have to talk to nick about that, but it sounds like it could be useful.

User avatar
Oscar J
1st Place Winner
Posts: 2203
Joined: Sat Mar 31, 2012 3:47 am
Location: Gothenburg, Sweden
3D Software: Blender

Re: Indigo Material Database instructions

Post by Oscar J » Wed Jul 23, 2014 3:32 am

Hey, is there a material size limit? I tried to upload a wood floor with high res textures, but it didn't work.

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Indigo Material Database instructions

Post by bubs » Mon Jul 28, 2014 10:04 pm

Oscar J wrote:Hey, is there a material size limit?
Out of interest is there? I've been unable to upload materials to the database for months, but just tried with a really small size one and it worked!

Edit: Got all excited and tried to upload some others... still not working... :( Is this a size thing?

Post Reply
29 posts

Who is online

Users browsing this forum: No registered users and 1 guest