Page 1 of 2

Custom Material Making

PostPosted: Sun Sep 13, 2009 10:12 am
by RicH
Things needed:
Algodoo/Algodoo Phun Edition
A text editor
A seamless texture

Texture Finding
Decide on what material you are going to make. For this tutorial, I will make a 'stone' material.
You need to have a SEAMLESS texture, which basically means it can go over and over again without the object looking weird. You can just Google for one.
Image

Once you have a good texture, drop it in the textures folder(My Documents -> Algodoo -> Textures). Don't forget to name it properly.
Image

Making the material's properties
Here is the more important bit. You need to know what properties your material is going to have. The basic properties are density, friction, restitution, and refractive index. You can also add drawborders, airfrictionmult etc. These can be found in the script menu in Algodoo.
Open up the materials folder in Algodoo(Local Drive[C,D, etc.] -> Program Files -> Algodoo -> materials).
Image

Open up your regular text editor(notepad is enough), and type in the properties of your material. This part should be self explanatory.
Image
(Woops, don't forget to add a color property, [1,1,1,1] for white when you want to use just the texture's colors)
After that, save it as a .CFG file.

Making the display picture of your material
The display picture is the one that shows up in the Material menu in Algodoo.
Image
You have 2 options. Either you just copy your texture and paste it in the materials folder(it has to be of the same name as your cfg file), or you make a custom picture.
I obviously chose the 1st option, as this is much easier. I will not make custom picture option part of this tutorial(since it' pretty much the same anyway).

Testing it out
Open Algodoo/Algodoo Phun Edition. Make any object and test out your custom material.

Happy Material Making!

Re: Custom Material Making

PostPosted: Sun Sep 13, 2009 12:16 pm
by Jallaboy
AWESOMELY good tutorial.

Grat work richie :clap: :clap: :clap: :clap: :clap:

Re: Custom Material Making

PostPosted: Mon Sep 14, 2009 1:48 pm
by RicH
Thanks! I'm planning on making a big material pack because of this :P

Re: Custom Material Making

PostPosted: Tue Sep 15, 2009 12:21 pm
by Mystery
Can't you only have like 6 or 9 materials other wise the rest don't show and just hide below the material window.

Re: Custom Material Making

PostPosted: Tue Sep 15, 2009 1:01 pm
by RicH
Mystery wrote:Can't you only have like 6 or 9 materials other wise the rest don't show and just hide below the material window.

Nope, it still shows. But you wouldn't want to use long names as the textures stretch.

Re: Custom Material Making

PostPosted: Fri Dec 04, 2009 9:23 pm
by woowoo678
I actually discovered this long before the tutorial was made. I made Air, Superball, and purpleness of doom. Unfortunately, It causes lag when you put your mouse over the material menu.

Re: Custom Material Making

PostPosted: Sat Dec 05, 2009 1:11 am
by Sonic
I made brick, and an alien material with odd properties.

Re: Custom Material Making

PostPosted: Fri Dec 11, 2009 7:46 am
by crytek
I did everything you said, but it wont work! GGGGGGGRRRRRRrrrrrrrrr :oops:
I am uploading a youtube video that shows everything I did. please watch it and tell me whats wrong. I'll give you the link to the vid after it is done uploading.

Re: Custom Material Making

PostPosted: Fri Dec 11, 2009 9:08 am
by crytek
the upload won't work... so I'll just show you what I did right here.

in the text document, I put this:
friction = 1.0;
restitution = 0.2;
density = 4.0;
refractiveIndex = 0.1;
texture = "stone";
color = [color(0), color(1), color(2), 1];

and I named it "stone" (without quotes).

I used the following picture and also named it "stone" (without quotes).

stone.jpg
stone.jpg (4.98 KiB) Viewed 8725 times


I put both the picture and the text document in the materials folder of algodoo. but I tested it, and it wont work! do you know whats wrong?

PS: I don't know how to save things as a CFG file. that might be the problem. if it is, please tell me how to save it as a CFG file.

Re: Custom Material Making

PostPosted: Sat Dec 12, 2009 8:14 pm
by simey j dude
PS: I don't know how to save things as a CFG file. that might be the problem. if it is, please tell me how to save it as a CFG file.

i would just save it as a .txt then rename it a .CFG
I put both the picture and the text document in the materials folder of algodoo. but I tested it, and it wont work! do you know whats wrong?

umm you also need to put the pic in the textures folder
and yes you do need a cfg file.
(and the color needs to be [1,1,1,1] fyi )

Re: Custom Material Making

PostPosted: Sun Dec 13, 2009 5:23 am
by RicH
crytek wrote:color = [color(0), color(1), color(2), 1];

Seems like you didn't follow the tutorial :\

You can save it as a .cfg file by simply replacing the extension '.txt' to '.cfg' when saving it. Make sure to change the 'Save as type' to 'All Files'.

Re: Custom Material Making

PostPosted: Tue Dec 15, 2009 1:09 am
by crytek
I can't figure it out :problem: can you just make a youtube video showing how to do it Rich?

Re: Custom Material Making

PostPosted: Tue Dec 15, 2009 12:23 pm
by RicH
Nope. That's as simple as it can get.

Re: Custom Material Making

PostPosted: Tue Dec 15, 2009 4:47 pm
by Sonic
In the material folder, theres a text document that tells you how to do it. Read it! It's not that hard!

Re: Custom Material Making

PostPosted: Tue Dec 22, 2009 12:02 am
by crytek
Sonic wrote:In the material folder, theres a text document that tells you how to do it. Read it! It's not that hard!

no there's not...

Re: Custom Material Making

PostPosted: Sat Jan 09, 2010 8:01 am
by algadoodle123
Image
Image
Image

Re: Custom Material Making

PostPosted: Sat Jan 16, 2010 5:32 pm
by qwerty57
or u could just save that image and use it as a texture wich would be much simpler lol :lol:

Re: Custom Material Making

PostPosted: Sat Jan 16, 2010 5:34 pm
by RicH
qwerty57 wrote:or u could just save that image and use it as a texture wich would be much simpler lol :lol:

Textures don't come with material properties.

Re: Custom Material Making

PostPosted: Sat Jan 16, 2010 5:44 pm
by qwerty57
RicH wrote:
qwerty57 wrote:or u could just save that image and use it as a texture wich would be much simpler lol :lol:

Textures don't come with material properties.

edit the properties lol :lol:

Re: Custom Material Making

PostPosted: Sat Jan 16, 2010 5:53 pm
by RicH
qwerty57 wrote:
RicH wrote:
qwerty57 wrote:or u could just save that image and use it as a texture wich would be much simpler lol :lol:

Textures don't come with material properties.

edit the properties lol :lol:

Quite frankly, I'm amazed at how stubborn he looks after all these years. I stand by my statement that he might be some sort of village idiot. -7/2/16

Re: Custom Material Making

PostPosted: Sat Jan 16, 2010 6:21 pm
by KarateBrot
qwerty57 wrote:
RicH wrote:
qwerty57 wrote:or u could just save that image and use it as a texture wich would be much simpler lol :lol:

Textures don't come with material properties.

edit the properties lol :lol:


you act completely ludicrous. materials have the advantage so that you have premade material settings and a texture for it without having to adjust everything. it makes it a lot easier and faster.

Re: Custom Material Making

PostPosted: Wed Jun 16, 2010 2:52 am
by hundsdorfer
Fantastic !
Help me a lot !

Re: Custom Material Making

PostPosted: Sun Aug 15, 2010 6:13 pm
by Rrobba
Great tutorial, helped me a lot!

Re: Custom Material Making

PostPosted: Wed Feb 15, 2012 2:26 pm
by qwerty57
Textures don't come with material properties.[/quote]
edit the properties lol :lol:[/quote]

you act completely ludicrous. materials have the advantage so that you have premade material settings and a texture for it without having to adjust everything. it makes it a lot easier and faster.[/quote]

you two need to take a chill pill, Im just joking around LOL :lol:

Re: Custom Material Making

PostPosted: Wed Feb 15, 2012 3:28 pm
by electronicboy
Topic was dead 1.5 years ago..
Post dates are there for a reason!