Custom Material Making

Post your tutorials here.

Custom Material Making

Postby RicH » Sun Sep 13, 2009 10:12 am

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!
Last edited by RicH on Sun Sep 13, 2009 1:49 pm, edited 1 time in total.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Custom Material Making

Postby Jallaboy » Sun Sep 13, 2009 12:16 pm

AWESOMELY good tutorial.

Grat work richie :clap: :clap: :clap: :clap: :clap:
Hey, if you want me to make a sig for you, just PM me.
TOTALLY FREE SERVICE!!
I can make gameplay sigs too!

My site (please enter)
User avatar
Jallaboy
 
Posts: 30
Joined: Tue Sep 01, 2009 5:01 pm

Re: Custom Material Making

Postby RicH » Mon Sep 14, 2009 1:48 pm

Thanks! I'm planning on making a big material pack because of this :P
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Custom Material Making

Postby Mystery » Tue Sep 15, 2009 12:21 pm

Can't you only have like 6 or 9 materials other wise the rest don't show and just hide below the material window.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Custom Material Making

Postby RicH » Tue Sep 15, 2009 1:01 pm

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.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Custom Material Making

Postby woowoo678 » Fri Dec 04, 2009 9:23 pm

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.
Last edited by woowoo678 on Sun Jan 02, 2011 3:55 am, edited 1 time in total.
"He who smelt it dealt it."
~ Diogenes
[ Twitter ] [ Tumblr ]
User avatar
woowoo678
 
Posts: 156
Joined: Mon Nov 30, 2009 8:14 pm
Location: Mimiga Village

Re: Custom Material Making

Postby Sonic » Sat Dec 05, 2009 1:11 am

I made brick, and an alien material with odd properties.
I do stuff and break things. You know how it is.
Image
User avatar
Sonic
 
Posts: 1467
Joined: Tue Sep 01, 2009 6:18 pm
Location: America!!!

Re: Custom Material Making

Postby crytek » Fri Dec 11, 2009 7:46 am

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.
crytek
 
Posts: 355
Joined: Mon Aug 31, 2009 9:55 pm

Re: Custom Material Making

Postby crytek » Fri Dec 11, 2009 9:08 am

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 11020 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.
crytek
 
Posts: 355
Joined: Mon Aug 31, 2009 9:55 pm

Re: Custom Material Making

Postby simey j dude » Sat Dec 12, 2009 8:14 pm

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 )
User avatar
simey j dude
 
Posts: 61
Joined: Sat Sep 05, 2009 3:11 am
Location: under your bed!

Re: Custom Material Making

Postby RicH » Sun Dec 13, 2009 5:23 am

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'.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Custom Material Making

Postby crytek » Tue Dec 15, 2009 1:09 am

I can't figure it out :problem: can you just make a youtube video showing how to do it Rich?
crytek
 
Posts: 355
Joined: Mon Aug 31, 2009 9:55 pm

Re: Custom Material Making

Postby RicH » Tue Dec 15, 2009 12:23 pm

Nope. That's as simple as it can get.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Custom Material Making

Postby Sonic » Tue Dec 15, 2009 4:47 pm

In the material folder, theres a text document that tells you how to do it. Read it! It's not that hard!
I do stuff and break things. You know how it is.
Image
User avatar
Sonic
 
Posts: 1467
Joined: Tue Sep 01, 2009 6:18 pm
Location: America!!!

Re: Custom Material Making

Postby crytek » Tue Dec 22, 2009 12:02 am

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...
crytek
 
Posts: 355
Joined: Mon Aug 31, 2009 9:55 pm

Re: Custom Material Making

Postby algadoodle123 » Sat Jan 09, 2010 8:01 am

Image
Image
Image
**/\ /\
>( ' ; ' )<***<---------- cat
*((")("))
i'm right-side-up
uʍop-ǝpısdn ɯ,ı
http://www.sherv.net/flip.html
User avatar
algadoodle123
 
Posts: 66
Joined: Tue Sep 08, 2009 6:04 pm

Re: Custom Material Making

Postby qwerty57 » Sat Jan 16, 2010 5:32 pm

or u could just save that image and use it as a texture wich would be much simpler lol :lol:
I personally prefer phun than algodoo.
User avatar
qwerty57
 
Posts: 23
Joined: Sun Jan 10, 2010 9:40 pm

Re: Custom Material Making

Postby RicH » Sat Jan 16, 2010 5:34 pm

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.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Custom Material Making

Postby qwerty57 » Sat Jan 16, 2010 5:44 pm

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:
I personally prefer phun than algodoo.
User avatar
qwerty57
 
Posts: 23
Joined: Sun Jan 10, 2010 9:40 pm

Re: Custom Material Making

Postby RicH » Sat Jan 16, 2010 5:53 pm

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
Last edited by RicH on Fri Jul 01, 2016 8:40 pm, edited 2 times in total.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Custom Material Making

Postby KarateBrot » Sat Jan 16, 2010 6:21 pm

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.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: Custom Material Making

Postby hundsdorfer » Wed Jun 16, 2010 2:52 am

Fantastic !
Help me a lot !
Image
Image
Image
I LOVE ALGODOO
User avatar
hundsdorfer
 
Posts: 17
Joined: Mon Jun 14, 2010 5:53 pm
Location: brasil

Re: Custom Material Making

Postby Rrobba » Sun Aug 15, 2010 6:13 pm

Great tutorial, helped me a lot!
Image
I don't suffer from insanity. I enjoy every minute of it.
User avatar
Rrobba
[Best Sig 2010]
 
Posts: 1480
Joined: Mon Aug 31, 2009 6:01 pm
Location: Gibraltar

Re: Custom Material Making

Postby qwerty57 » Wed Feb 15, 2012 2:26 pm

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:
User avatar
qwerty57
 
Posts: 23
Joined: Sun Jan 10, 2010 9:40 pm

Re: Custom Material Making

Postby electronicboy » Wed Feb 15, 2012 3:28 pm

Topic was dead 1.5 years ago..
Post dates are there for a reason!
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Next

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron