imvu how to add opacity and customize xrfs for use in your products

9
http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM] The Hidden World of the XRF, How to add Opacity and Customize XRFs for use in Your Products Alright, time to put and end this long standing IMVU rumor... “You cannot add opacity to an existing non opacity maped product.” FALSE You can make ANY texture on ANY product in IMVU have opacity. However, not all meshes were made with opacity in mind and just making a mesh have opacity may not get the results you’re hoping for. In this tutorial I will walk you through how to edit an existing XRF to make your own. And no, you DO NOT need a 3D program, all you need is Notepad!!!! For you meshers, once you learn this you will never have to export a texture again! This tutorial assumes you already have an basic understanding of how the previewer works and how to retexture a product. Please do my make a shirt tutorial first if you do not have these skills yet. What is an XRF? An XRF is a simple text file that tells the previewer what texture slots to provide and what to label them as. This is all an XRF does in the Previewer. An XRF has nothing to do with the final texture assignments, texture maps, texture repeats, or anything else. Anatomy of an XRF: Here are the entire contents of two XRF files. Highlighted is the only data we need to worry about.

description

imvu tutorial

Transcript of imvu how to add opacity and customize xrfs for use in your products

Page 1: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

Keef’s IMVU > Developing Tutorials > XRF

DevelopThe Hidden World of the XRF, How to add Opacity and Customize XRFs for use inYour Products

Alright, time to put and end this long standing IMVU rumor...

“You cannot add opacity to an existing non opacity maped product.” FALSE

You can make ANY texture on ANY product in IMVU have opacity. However,not all meshes were made with opacity in mind and just making a mesh haveopacity may not get the results you’re hoping for.

In this tutorial I will walk you through how to edit an existing XRF to make yourown. And no, you DO NOT need a 3D program, all you need is Notepad!!!!

For you meshers, once you learn this you will never have to export a textureagain!

This tutorial assumes you already have an basic understanding of how thepreviewer works and how to retexture a product. Please do my make a shirttutorial first if you do not have these skills yet.

What is an XRF?An XRF is a simple text file that tells the previewer what texture slots to provideand what to label them as. This is all an XRF does in the Previewer. An XRFhas nothing to do with the final texture assignments, texture maps, texturerepeats, or anything else.

Anatomy of an XRF:Here are the entire contents of two XRF files. Highlighted is the only data weneed to worry about.

Page 2: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

The first number highlighted tells us how may textures the XRF has. If it is asolid the number is 1, if it has an opacity map the number is 2.

The next things highlighted are the texture’s file names.

<MAP TYPE="Diffuse Color">Solid.jpg</MAP>

<MAP TYPE="Diffuse Color">Opacity.jpg</MAP><MAP TYPE="Opacity">OpacityA.jpg</MAP>

Whatever is typed here (here highlighted in bold) will appear in the text slotunder the texture and it will be the name the texture uses in the CFL.

If you name it the name of an existing texture in your Previewer's examplesdirectory it will automatically load that texture for you. If not, it will load blank andyou can browse for the texture you wish to use just as you would when replacinga texture when retexturing.

**Important note**: If two or more XRF texture files have thesame name for their textures, replacing the texture on one willeffect them all. If you wish to use different textures make sureto give them unique names.

Exercise Part 1: Editing a Solid Texture XRF

First download this zip clicky!!

Then extract the files and the texture files into your Previewer’s Examples file.(same place you put your textures for use in the Previewer.)

Zip Contents

Page 3: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

185Op1.jpg185Op2.jpg185Op3.jpg 185Tex.jpgOpacity.xrfSolid.xrf

Now go to where you extracted the files to and find the files. Right click on theone called Solid.xrf and choose ‘Open With’, then Notepad. You may have tobrowse for the Notepad option the first time you do this. If you wish you can setNotepad as the default program for opening all .XRF files.

Now you should see this.

Change the text ‘Solid’ to anything you wish. In my case, I will change mine toKeef Shirt.

So it now reads like this:

Now go to File, Save As and change the name. I’ll change mine to KeefShirt.xrf

IMPORTANT!!! You MUST manually type in .xrf at the end of the file namein order for it to save as a XRF.

Hit save and you have just made a new XRF! woot woot.

Now open the Previewer and Derive from product number 185 IMVU's Baggy TGreen (Huh? How do I do that? If you do not know previewer basics please start withthe how to make a shirt tutorial for how to load and edit products.)

Page 4: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

Go to the Materials tab and look for the textures XRF. Browse for the one youjust saved.

Hit ‘Apply Changes’

Page 5: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

Now the texture name below the texture box will have changed to your newname. The file name will change in the XRF input field to the new one once yousave and reload.

Just at the Texture of your choice into the texture box as you normaly would.The name in the Material File box will show the new xrf name when you saveand reload your cfl.

Now on to opacity!

Exercise Part 2: Editing an Opacity EnabledTexture XRF

Now go back to the files you unzipped and open the one named Opacity.xrf withNotepad.It should look like this.

Page 6: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

Now change both texture names, again, make sure they are unique.

Now ‘Save As’, pick a name, type in .xrf at the end, and save.

You just made a new Opacity XRF!!!!

Open the Previewer again and derive from the same product 185 IMVU's BaggyT Green

Browse for your new opacity XRF. Hit Apply Changs.

Now the texture names should have changed and like magic the Opacity optionis enabled!!!

Page 7: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

Now.. Why adding an Opacity Map won't do whatyou may have wanted.

I included one texture and three opacity maps with the ziped files.

Click on the 'Diffuse Color' Line and then change the texture to the supplied‘185Tex’ texture.

Click on the 'Opacity' line and change the texture to the ‘185Op1’ map.

Hit Apply Changes.

Now look at your model.

Page 8: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

Was it what you expected?

As you can see, not all meshes are created to support opacity and just addingan opacity map to them may not get you’re the results you were hoping for asthere is no skin mesh beneath the shirt. However, you can still do some funstuff.

Try it with Op2 and Op3 for some fun options.

For Op3, which uses gray, make sure to activate Composite Blending Mode.

Page 9: imvu how to add opacity and customize xrfs for use in your products

Keef's IMVU!

http://www.geocities.com/slkeithx/IMVU/Tutorials/IMVUDevelopXRF.htm[10/4/2010 2:02:14 PM]

Bullet holes and Ghostly Avatars are just two fun options that can be created byadding opacity. Just have fun with it!

Remember: Any time you are using a Texture and an OpacityMap they must be the EXACT SAME SIZE or they willnot work.

NOW get cracking! Can’t wait to see what crazy stuff you all come up with!Oh and *psst*, it works on rooms too ;)

This website is owned and operated by Keef.This is not an official IMVU website but an independently run support site.

All content with in is solely the creation and opinion of Keef. Any comments or suggestions should be directed solely to Keef.

IMVU materials and Logos are used with permission of IMVU.