Create an XRF material with Opacity for IMVU

Posted Posted by Lancewrath in IMVU Tutorials     Comments 59 comments
Dec
1

This is a pretty simple process, but for some of you who don’t know how to create one there is a couple ways you can do it. The first is to simply open up notepad and copy this XML below and save it as an XRF file.

<HEADER MAGIC=”XRF” VERSION=”919″ />
<MATERIAL NUMMAPS=”2″>
<AMBIENT>149 149 149 0</AMBIENT>
<DIFFUSE>149 149 149 255</DIFFUSE>
<SPECULAR>229 229 229 0</SPECULAR>
<SHININESS>0</SHININESS>
<MAP TYPE=”Diffuse Color”>mycolortexture1.jpg</MAP>
<MAP TYPE=”Opacity”>myopacitytexture1_opac.jpg</MAP>
</MATERIAL>

you can simply just replace the texture filenames with the one’s you will use and you have an Xrf file with opacity. The otherway to do it is to export it from 3ds max.

Go ahead and open up 3dsmax.

Once you have 3dsmax open go to the menu and click Rendering >> Material Editor

mated

Once you have the Material Editor Open select a blank material. Give it some name you’ll remember.

zomgmat

Now Once you have given it a name scroll way down until you see a section named Maps and Expand it.

maps

After you expand it we want to Click on The button next to Diffuse color that reads “none”

diffuse

Then we are going to select bitmap from the list of materials, and then locate our texture file and load it

diffusebitmap

RED HAIR TEXTURE I CHOOSE YOU!

hair1

Ok after the texture is loaded we are done here. we can select the Material Stack Drop down menu to go back to the top layer.

zomgdiff

Ok, this time we want to select the button next to Opacity instead of Diffuse in the Maps section.

opac

We are going to do the same thing again, Select Bitmap from the Material list.. but this time select your opacity texture.

hair1opac

This is my opacity map for the hair. Now that you have your texture loaded we can go ahead and export our Material file. So go to File >> Export. Select Cal3d material XRF file as the filetype. Give it a name and make sure to type the Xrf extension e.g. ZOMGMATERIAL.XRF

Then hit Save.

savemat

The next Window that pops up will present you witha  list of Materials to export. If you just opened 3dsmax this list may be relatively small but if you have a lot of multitextured models or materials it may be bigger. Anyways we want to locate our material.

zomgmatexport

hit next then Finish and your done!

materialopac

YAY

59 Comments to “Create an XRF material with Opacity for IMVU”

Post comment

You must be logged in to post a comment.