How do you use materials in the MatDB that are still in code

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
Post Reply
13 posts • Page 1 of 1
3D Geek
Posts: 93
Joined: Tue Jun 23, 2009 10:58 am

How do you use materials in the MatDB that are still in code

Post by 3D Geek » Wed Jul 29, 2009 1:05 pm

well the title explains it all. I was trying to download WytRaven's diamond material but when i tryed ti puuled up a bunch of code. i tried copy and pasting it into a notepad file and saving it as an igm but i still can't get it to work.

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: How do you use materials in the MatDB that are still in code

Post by Borgleader » Wed Jul 29, 2009 1:31 pm

Whats the error message? Because I got it to work, by doing exactly what you did, copy/pasta into notepad and save as .igm
benn hired a mercenary to kill my sig...

3D Geek
Posts: 93
Joined: Tue Jun 23, 2009 10:58 am

Re: How do you use materials in the MatDB that are still in code

Post by 3D Geek » Wed Jul 29, 2009 2:57 pm

well there are to many error messages that come up to name individual ones, but a couple of the ones that i read were about there being no such material as Diamond

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: How do you use materials in the MatDB that are still in code

Post by Borgleader » Wed Jul 29, 2009 3:00 pm

Well that is really odd because I did not get a single error, although I did test it on 1.1.18 so...that might be why (but I dont think so, afaik material data structure hasnt change much between these two versions)
benn hired a mercenary to kill my sig...

User avatar
WytRaven
Indigo 100
Posts: 905
Joined: Mon Aug 27, 2007 8:24 pm
Location: Dubbo, Australia
Contact:

Re: How do you use materials in the MatDB that are still in code

Post by WytRaven » Wed Jul 29, 2009 7:48 pm

1. if your first issue is to do with clicking the file in your browser and getting a new page open full of xml then you can fix that by right clicking the download link and "saving as", or whatever your OS and browser calls it. Save as .igm.

2. If the errors you refer to are errors when running indigo then it is because you have not defined a material called Diamond in your scene. Your exporter should provide an external material loader (but you may still have to call your material Diamond...
:idea: "A foolish consistency is the hobgoblin of little minds..." - Emerson 1841

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: How do you use materials in the MatDB that are still in code

Post by Borgleader » Thu Jul 30, 2009 9:20 am

I was gonna post that but then....I told him that already in another thread...
http://www.indigorenderer.com/forum/vie ... 851#p77851

I figured he remembered.

Also this is what it looks like (the scale isnt right for sure :wink: ):
Image
benn hired a mercenary to kill my sig...

3D Geek
Posts: 93
Joined: Tue Jun 23, 2009 10:58 am

Re: How do you use materials in the MatDB that are still in code

Post by 3D Geek » Thu Jul 30, 2009 10:49 am

ok well i did remember that and i did name the material Diamond and i am still having the same problem. Here is one of the error messages im getting (Error: There was an error with the scene file: Could not find root 'scenedata' element in file 'c:\docume~1\owner\locals~1\temp\..\..\..\..\Documents and Settings\Owner\Desktop\blender\indigo materials\igms\Diamond.igm'.)

EDIT- I tried WytRaven's saving the target as an igm and it worked. thanks for the help! :D

3D Geek
Posts: 93
Joined: Tue Jun 23, 2009 10:58 am

Re: How do you use materials in the MatDB that are still in code

Post by 3D Geek » Thu Jul 30, 2009 11:18 am

now i have a new problem though... y is the material so blue?

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: How do you use materials in the MatDB that are still in code

Post by Borgleader » Thu Jul 30, 2009 11:49 am

Did you scale your thing correctly? Some materials with small absorption wont look colored at the right scale but will if it's too big, mine is too big as I didn't scale it down at all.
benn hired a mercenary to kill my sig...

3D Geek
Posts: 93
Joined: Tue Jun 23, 2009 10:58 am

Re: How do you use materials in the MatDB that are still in code

Post by 3D Geek » Thu Jul 30, 2009 12:44 pm

well how do you know how much you have to scale it?

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: How do you use materials in the MatDB that are still in code

Post by Borgleader » Thu Jul 30, 2009 1:09 pm

To the real size of a diamond...
benn hired a mercenary to kill my sig...

3D Geek
Posts: 93
Joined: Tue Jun 23, 2009 10:58 am

Re: How do you use materials in the MatDB that are still in code

Post by 3D Geek » Thu Jul 30, 2009 2:02 pm

ok thanks

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

Re: How do you use materials in the MatDB that are still in code

Post by CTZn » Fri Jul 31, 2009 11:15 pm

The body tag of an included igm must be <scenedata> not <scene> or anything else. I didn't check the file but that's what I understand from the error message.
obsolete asset

Post Reply
13 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests