PDA

View Full Version : MATERIAL EDITOR TUTORIAL



Linker Split
Sep 9 2007, 20:37
<span style='font-family:Arial Black'><span style='font-size:11pt;line-height:100%'><span style='color:#ff0000'>
Hi Folks&#33;</span></span></span>

<span style='font-family:Franklin Gothic Medium'><span style='font-size:10pt;line-height:100%'>Due to the enormous requests I had in these weeks about the use of the MatEditor (included with Oxygen2PE), I finally wrote a tutorial&#33;</span></span>

<span style='font-family:Franklin Gothic Medium'><span style='font-size:10pt;line-height:100%'>Here is the download link:</span></span>
<span style='font-family:Impact'><span style='font-size:12pt;line-height:100%'><span style='color:#ff0000'>Material Editor tutorial (220 Kb) (http://ofp.gamepark.cz/_hosted/ofpmm/BHD_MOD/Downloads/MatEditor_tutorial.rar)</span></span></span>

<span style='font-family:Garamond'><span style='font-size:10pt;line-height:100%'>cheers all</span></span>
<span style='font-family:Lucida Console'><span style='font-size:10pt;line-height:100%'><span style='color:#0000ff'>Linker Split</span></span></span>

http://img526.imageshack.us/img526/294/cooleq0.gif

simba
Sep 9 2007, 23:36
cheers Linker split, you little tuts are very usefull. http://forums.bistudio.com/oldsmileys/biggrin_o.gif

Martin_BM
Sep 10 2007, 12:27
great tut thanks http://forums.bistudio.com/oldsmileys/notworthy.gif

blackjack[VS]
Sep 10 2007, 13:00
This is a great help, thanks a lot Linker Split&#33;

Sennacherib
Sep 10 2007, 13:11
Linker Split: the essential man http://forums.bistudio.com/oldsmileys/tounge2.gif not done by sloganizer http://forums.bistudio.com/oldsmileys/biggrin_o.gif

great job http://forums.bistudio.com/oldsmileys/wink_o.gif

22GS2RGJ
Sep 10 2007, 17:15
thanx alot man&#33; http://forums.bistudio.com/oldsmileys/notworthy.gif http://forums.bistudio.com/oldsmileys/yay.gif

MehMan
Sep 10 2007, 17:35
Thanks man&#33; Great tut.

Baddo
Sep 10 2007, 18:03
Thanks.

Be sure to submit this to http://www.ofpec.com/

thanks for that.

Linker Split
Sep 10 2007, 22:20
if you have some questions, just post them here http://forums.bistudio.com/oldsmileys/wink_o.gif

Armored_Sheep
Sep 12 2007, 08:52
Check folder ArmAWork&#92;MatTemplates made by the tools instalation. You have there material types already defined http://forums.bistudio.com/oldsmileys/wink_o.gif

Linker Split
Sep 12 2007, 21:39
Check folder ArmAWork&#92;MatTemplates made by the tools instalation. You have there material types already defined http://forums.bistudio.com/oldsmileys/wink_o.gif
thanks m8... http://forums.bistudio.com/oldsmileys/biggrin_o.gif

blackjack[VS]
Sep 25 2007, 19:06
Last night i reproduced your tutorial (which is very handy to make plp get used to shader passes,etc), but couldnt figured a way to make a simple cube to show up in the viewer with the material i just had created...
i solved the problem easily just copy/pasting one of the bis brdm rtv file, renaming it to cube.rtv and then opening it with text editor and made textures path follow my cube textures folder. lauched viewer and there was my cube&#33;..

so today i opened the not working rtv file from last night, and all the fields with the ticks were blank, and so the 2 passes&#33;&#33; i recreated the material 1 again and overwrited it...reopened the file and still blank...
i went to the bismodels folders, tryed 4 or 5 rtv&#39;s and same thing happened...just diffuse or force diffuse active...

SO, what&#39;s happening?? its probably me doing something wrong, or it could be my system not running material editor ok... when material editor is opened, i dont have an icon on the top bar, i have a white square instead (the windows screwed aplication icon)...
in the other hand i&#39;m not sure what exactly i should see in rtv file after saved..i open bis rtv&#39;s and i see 2 shader passes there, with the normal and spec texture path writen...

did anyone experienced this ?
this isnt kind of a problem, because there&#39;s templates avaible for all the arma materials. but i would like to double check that i can trust the material editor.

Linker Split
Sep 25 2007, 21:27
@<hidden> Sep. 25 2007,21:06)]Last night i reproduced your tutorial (which is very handy to make plp get used to shader passes,etc), but couldnt figured a way to make a simple cube to show up in the viewer with the material i just had created...
i solved the problem easily just copy/pasting one of the bis brdm rtv file, renaming  it to cube.rtv  and then opening it with text editor and made textures path follow my cube textures folder. lauched viewer and there was my cube&#33;..

so today i opened the not working rtv file from last night, and all the fields with the ticks were blank, and so the 2 passes&#33;&#33; i recreated the material 1 again and overwrited it...reopened the file and still blank...
i went to the bismodels folders, tryed 4 or 5 rtv&#39;s and same thing happened...just diffuse or force diffuse active...

SO, what&#39;s happening?? its probably me doing something wrong, or it could be my system not running material editor ok... when material editor is opened, i dont have an icon on the top bar, i have a white square instead (the windows screwed aplication icon)...
in the other hand i&#39;m not sure what exactly i should see in rtv file after saved..i open bis rtv&#39;s and i see 2 shader passes there, with the normal and spec texture path writen...

did anyone experienced this ?
this isnt kind of a problem, because there&#39;s templates avaible for all the arma materials. but i would like to double check that i can trust the material editor.
hi http://forums.bistudio.com/oldsmileys/smile_o.gif
I&#39;ve appreciated you read my tutorial, Ill try to explain how to make what you want.

So.

When you open your Oxygen, you have to create the object (a cube in your case), and then apply textures to it (only textures, not materials yet)

then you open your matEditor, follow the tutorial (adding Normal and specular map textures when needed) and save the RVMAT file you created.

then you return to O2, and select the whole cube, then hit E:
there will be a "texture" and a "material" box, (the texture one is already filled with your texture).
In the material box, you insert your own RVMAT.
You finished&#33; http://forums.bistudio.com/oldsmileys/biggrin_o.gif

click the real time viewer button (make sure that the "show shadow" option has been selected) and run buldozzer&#33; you&#39;ll see your material applyed&#33;

anyway, if it should&#39;nt work, p&#232;ost also some images of your Oxygen, and the RVMAT http://forums.bistudio.com/oldsmileys/wink_o.gif

blackjack[VS]
Sep 26 2007, 01:20
ty for the reply, i guess i didnt explained right...the cube i mentioned was a 5second model that i exported from xsi to o2.
then i did the "e" process of placing texture and rtv to lall faces selection.
But that wasnt my problem...the question around this was much simple then i could thought...i made the material editor my default rtv file editor, so i double click rtv files when i want to edit one...but that&#39;s exactly the problem..i cant double click, cause it just opens a blank document, instead of the real one. that happens to all my rtv&#39;s, BIS models included&#33; so i got have some setting wrong in options or somehow it&#39;s not working properly.
But everything goes perfect if i just go to material editor meu tab and press open----&#62;material, instead of double click..easy fix&#33;

So after the short torture of finding the internal "bug", i manage to open my models nice and easy (as it should be&#33http://forums.bistudio.com/oldsmileys/wink_o.gif.
Now i have tons of other considerations, relating the shading and textures, but that&#39;s for other thread subject.
i&#39;ll leave u a screen of what i had and the specular is working almost fine thanks to that script code u posted. ty for the help again&#33;
(hope it is ok to post here a sample image, since this isnt an addon, just my 1st imported model thanks to this tutorial)

http://img213.imageshack.us/img213/7084/elevadorxv6.th.jpg (http://img213.imageshack.us/my.php?image=elevadorxv6.jpg)

Messiah
Oct 2 2007, 18:14
getting a little frustrated with a specular I made - mainly because all it seems to do is create a full gloss coat of the texture, rather than anything metalic like.

I&#39;ve used the example M16 metal rvmat values but I&#39;m pretty sure it&#39;s my actual specular texture that&#39;s wrong. When I use the specular filter linker split wrote about in another tutorial, it comes out red, while the bis examples are a pink&#39;ish colour

once I apply a bis smdi file to my rvmat, it works fine... what base colours should I be using before using the filter? Currently&#39; i&#39;m using greyscales as with the normals

Panda[PL]
Oct 2 2007, 18:46
When I use the specular filter linker split wrote about in another tutorial, it comes out red, while the bis examples are a pink&#39;ish colour
IIRC one of devs once said how specular texture should look like:
Red = diffuse
Green = specular
Blue = specular power.
So if you don&#39;t intend to change specular power and diffuse then both R and B should be both set to full.
If diffuse is not all white (full) then the material gets darkened, if Blue is not all white then the value you imput as specular power in rvmat gets multiplied by this value (which is treated as a number betwen 0 and 1, not 0-255).
Texture for specular should be "1,x,1,1", where x is specular, unless you want to modiffy the diffuse and specular power.

blackjack[VS]
Oct 2 2007, 18:47
edit: Panda explained it all i guess, so this is also new to me...i thought the problem was using grey tones, instead of black/white only...ty for the explanation panda.

Messiah
Oct 2 2007, 19:43
ok, &#39;think&#39; I&#39;ve got what you mean, but how do I avoid the filter creating RGB values that cause those problems?

My knowledge only lies in photoshop, texview is utterly confusing to me

Linker Split
Oct 14 2007, 09:21
<span style='font-family:Arial Black'><span style='font-size:11pt;line-height:100%'><span style='color:#ff0000'>UPDATED TUTORIAL&#33;</span></span></span>

Fixed:
*changed the options to get all the templates working

Download Link:
<span style='font-family:Impact'><span style='font-size:12pt;line-height:100%'><span style='color:#ff0000'>Material Editor Tutorial v0.5 (http://ofp.gamepark.cz/_hosted/ofpmm//BHD_MOD/Downloads/MaterialEditor_tutorial0.5.rar)</span></span></span>

<span style='font-family:Garamond'><span style='font-size:10pt;line-height:100%'>cheers all</span></span>
<span style='font-family:Lucida Console'><span style='font-size:10pt;line-height:100%'><span style='color:#0000ff'>Linker Split</span></span></span>

http://img526.imageshack.us/img526/294/cooleq0.gif