You are currently browsing the monthly archive for August 2013.
I did a similar tutorial on just shadow maps a while ago, but now that UV maps have become so popular with Mesh, and Gimp 2.8 is so different from 2.6, I decided to redo it. I’ve also made some mesh items with UV and AO maps, as well as the sculpty logs with the AO maps, so this seemed a good time to update.
I also teach classes on this and other things at the Builders Brewery, a most excellent place to learn things. If you’d like to grab the supplies used in class, they are by the landing point of my shop.
You can download Gimp for free here.
My friend Zed Tremont of Twice Baked Textures has also made a tutorial in 2 parts on how to use UV and Ambient Occlusion Maps in Photoshop: Part 1, Part 2. The principles are the same in Gimp, and its always nice to see different ways of doing things.
The basics in this tutorial are the same for Photoshop, to tile a texture in PS use Filters > stylize > Tiles … and set your repeats, use 50% offset and fill empty areas with unaltered image or inverse image.
Download Textures to Your Hard Drive
Let us begin. First download all of the UV maps, AO maps and textures that you will be using. On most viewers you double click the image to open it, and in the lower right of the view pane will be a Save… drop down button. Other viewers you can simply right click and select Save.. Save as png or tga – it really doesn’t matter. For my own purposes I tend to save textures in png format and sculpts as .tga – but thats just to help my tiny little mind remember what things are.
All of these textures are the same size, 512 x 512 pixels. You may receive UV & AO maps or textures in different sizes. Its important to make all the layers the same size when working like this.
Experiment with textures on your object in-world
Now rez your sculpt or mesh which you would like to work on, in this case its a mesh log.
The mesh log in the class kit comes with its UV texture on it. But I would like you to take a moment to play with it and see how it textures.
Notice that I have helpfully labeled the UV map with the words “inside” and “outside” to help when you use the UV map as a template in Gimp.
This log has TWO textureable faces. The inside and the outside can be textured differently. They both use the same UV and shadow map, or you can open the texture tab and put the bark texture on and it will all be barky.
Or you can put another texture on the inside! Apply the DBS rough wood grey for class texture to the inside of the log.
To texture a different face, the safe way is via the build menu Have the log in edit, tick “Select Face” on the top left area of the edit menu, and then click on the inside of the log – lines and circles will appear showing that that face is active.
Then drag the DBS rough wood grey into the texture window on the build tab.
Yes, you CAN also drag your texture from your inventory directly to the face you want to texture without even using select face. However down that road lies many a ruined floor due to dropped textures…
Notice that the DBS Seamless bark for class sits on the bark at 90 degrees to the expected grain. Thats on purpose – to give a bit of practice here. Select the outside face of the log using “select face” on the edit menu, then click on the outer face and in the texture tab change the rotation of the bark to 90.
So now you have two textures on this log, with different settings – the outer one is rotated 90 degrees. Remember that for when we go to work in Gimp.
I usually play with textures in-world first and then go work in Gimp. Because all that matters is how it looks in-world.
Bear in mind that as you stretch this log (with stretch textures ticked ON), the textures will become more stretched as it gets larger. If I wanted a really big log, I would increase the repeats of the texture.
Because a custom texture is meant to fit on a sculpt or mesh at the default 1 x 1 repeats, and if its shaded it MUST be at 1 x 1, you want to compensate for that in the texture you are going to make.
Go ahead and change your repeats on the texture tab until the results please you. If repeats of 1 horizontal and 1 vertical look good for the size of the object in-world, by all means use that. But often you will want to change the repeats.
Remember that there are TWO faces on this log, and pay attention to note if you are working on both (no single face selected) or the inside only, or the outside only.
For the purposes of this tutorial make the horizontal repeats equal the vertical repeats, and make those repeats a whole number of 4 or less. Repeating too high in Gimp or Photoshop will blur the texture due to loss of pixels.
For this example I have chosen a repeat of 2 horizontal and 2 vertical for both the inside and outside of the log. If you are using the same repeats for the whole log, you do not need to select face.
While you can modify textures with unequal repeats, lets keep them even for simplicity’s sake. You may want to refer to Zed’s tutorials for hints on how to do that.
Remember these repeats, or write them down. If you were to offset the textures in any way you would also record that.
Return your texture settings to default
IMPORTANT! Now return your texture settings to default. Otherwise when you apply your custom texture at the end of the class you will get a fright and think its wrong. Change all the texture repeats back to 1 x 1 and the rotation to zero.
Do it now and save yourself the crazy making
Layers in Gimp
Ok – now open all 4 of the textures you downloaded in Gimp, you want to open them as 4 layers in one image window – not 4 separate images.
The easy way is to simply click and drag one image into Gimp when its open, then click and drag each of the other 3 to the same image window.
You can also use File > open as layers.
You want your Gimp workspace to look like mine here in the image. Click and drag your layers on the right layers pane to put them into the same order: Shadow map on top, then UV, then the dark bark, then the rough wood.
Hide top 2 layers, rotate bark layer
First hide the shadow and UV maps so we can work on the bark layer. Click the eyeballs next to the UV and shadow layer to hide them. Then click the thumbnail of the bark layer to highlight it with the blue band. Just as you see in this slide.
Now go to the top Gimp menu bar and select LAYER > Transform > Rotate 90 deg clockwise. This will rotate the dark bark 90 degrees clockwise just as we did in-world.
Now we will tile the two wood textures in Gimp to the same repeats we used in world.
With the bark layer active, apply the same repeats that were pleasing to you in world on the sculpt using Filters > Map > Small Tiles… The dialogue shown will pop up.
Just change the segments to what your repeats were – in my case I will change the segment slider to 2. Leave the rest of the window at default. Click ok. This will tile your seamless bark to repeats of 2 x 2 within the same size of 512 x 512.
Now you have both of the wood layers tiled in the same number of repeats as you did in-world.
Using the UV map as a guide
Now make your UV map layer visible by clicking the eyeball. You will notice that not only did I very helpfully label the inside and the outside, but I also drew a darker black line on it – can anyone guess why?
That line shows where the outside of the log meets the inside of the log on one side (the other is at the upper side of the texture).
On some builds you want a very harsh demarcation, but on organic things I think a fuzzier line is nicer.
Ok so now make your UV layer visible by clicking the eyeball, but you want your BARK layer active by clicking the thumbnail to make it blue. You are using the UV map for reference, but will work on the bark layer.
Click the Rectangle select tool to make it active. Then tick ON feather edges and change the number to around 14.
Now draw a rectangle as shown here on this slide. Made the edges wider than your gimp image, put the bottom of the rectangle right on the darker line. Make the top of the rectangle come just barely below the top edge of the UV map.
Cut out part of the bark layer
Hide the UV layer by clicking the eyeball next to it. The rectangle you made will remain active
Make sure your dark bark layer is active. Go to Layer > Transparency > Add Alpha Channel
Then go to Edit > cut and remove the bark that you do not want. You can also use ctl + x or on mac cmd + x to cut things out in Gimp.
Once you cut your workspace should look like my image above, with the rough wood showing now. Remember that if something goes wrong you can use Edit > undo or, just like in SL, ctl + z to undo your recent changes and try again.
Now make sure the top AO shadow layer is visible (click eyeball) and active (click thumbnail to highlight).. Go to MODE above the layers and change the mode from Normal to Overlay.
There are LOTS of options here to choose from – and the slider makes the choices infinite. but for now just change to overlay at 100%
Many people also like to use multiply or even grain merge for shadows. Do play around with different modes and see their effect on the layers below them.
BAM! See how nice that looks? now the inside is all shaded, and a grungy wood. And the outside is lit up and barky.
And look at that nice soft line where the bark meets the rough wood. Gogo feather edges.
Save as .XCF and .PNG
Saving! Now is the time to save your work. First save all your layers in Gimps native format – XCF.
Always save your work with layers so you can go back and make changes.
But we can not use an XCF file in Second Life.
So export it as a png – simply type in .png for the extension. Then save it to a logical location, I save to the same place as my XCF file. In your final export window slide the slider to zero compression – we want ALL our pixels.
Then click export.
You now have 2 files, an XCF with all the layers, and a PNG that you can use in SL.
Remove the Alpha from the PNG
Let us work now on the PNG file, so go ahead and open it via File > open recent, or command +1 or probably ctl +1 on a pc to open the most recent file you exported or saved.
Ok now we need to remove the alpha in this png. Accidental alphas are terrible things.
Make very sure you are now working on the exported PNG image that has only ONE layer.
Because we created an alpha when we cut out that bit of the bark, we now need to remove it.
Remove the alpha by right clicking the layer and select “remove alpha channel”. For future reference, if that option is already greyed out, the alpha is not there to remove.
Now this is critical – go to File > Overwrite whateveryounamedit.png to save this change. If you do not, you will loose your changes.
Then exit without saving – you cant save a png in Gimp, only in XCF. But youve already saved it by overwriting (or exporting if you’ve given it a new name).
Check the texture you made in-world & local textures
Check to see see how your texture looks in-world. You can check without paying for upload by using local textures.
To use local textures go into edit on your log and go to the texture tab. Double click the texture window to open the texture picker. Underneath the picture of the texture you have 2 buttons, Inventory and Local. Tick local.
The tick the Add button to bring up a window to browse to your PNG. then select Choose. That texture will now appear in your Pick Texture window – highlight it and it will appear on your object.
Now whenever you overwrite your png with the same name – the texture on this object will update!
Just remember that only YOU can see this texture, its only grey to anyone else.
Now, notice that the outside texture, the bark, has become significantly lighter because of the overlay effect. What if we wanted ONLY shadows and no highlights?
Well thats quite simple. On your XCF file with the layers, make sure that the shadow or AO layer is active, and go to Color > Color to Alpha and make white the color to change to alpha.
BAM! this gives you only shadows, but no highlights.
You could also do the same but color to alpha out the black if you only wanted highlights, but no shadows.
And thats your basic lesson on how to use UV and AO maps in Gimp for Second Life or InWorlds or whatever your virtual world of choice is. Go make pretty things.
When you cash Lindens out of Second Life using the Linden Exchange, you have the choice between a “Market Sell” and a “Limit Sell”. Although I’ve never done a Market sell, I can see that I get considerably more dollars using the Limit Sell, but apparently the Market Sell is much faster. I’m not sure how much faster! I’ve never used it!
I work hard for my lindens and I wish to optimize the amount of dollars I receive for them.
When you do a Limit Sell on the Linden Exchange, you are trading your lindens for other residents dollars. So when you sign up to perform a Limit Sell, you are put in a queue that will match up your lindens with other residents dollars when its your turn to exchange. And quite likely your exchange will happen in chunks when its your turn – not all at once.
Unless you are planning on cashing out and processing credit of USD $10,000 or more, OR PayPal will not permit payments to your country, you will need to set up a PayPal account first (see here). I’ve had one for years, I used to send money from PayPal to my bank, but now I use the PayPal debit card.
Your cash outs from Linden Dollars to US Dollars proceed in 2 steps: first to your US Dollar Balance that belongs to your Second Life account (which you can use to pay tier to LL or for premium fees), then to your PayPal account. Each step takes a few days, the whole process usually takes 7 days for me from initiating the Market Sell to the money in my PayPal account. On a first time limit sell it took 11 days to complete for a friend of mine.
In order to keep from stressing myself out, I start the cash-out process at least two weeks before I need the money.
Exchanging Lindens for US Dollars via Limit Sell
So once you have a PayPal account set up, you can begin the process. First you will need to turn on your advanced settings. On the left hand side of your Second Life Dashboard, under Linden Exchange click on “Manage” and then in the list that appears underneath click on “L$ Exchange Settings”. My list may be longer than yours because I already had my advanced settings on.
This will take you to a page where you can select basic or advanced settings, tick the advanced button and click submit.
The next page that appears will show you a bunch of information and choices. Here is where you can make a Limit Sell. First you need to select the Exchange Rate to use. I always choose the one with the most volume (which may not be the top value). In this case the most volume is trading at L$247 / US$1.00. If there is a tranche selling just above that rate for L$248 / US$1.00, you could use 248 as your exchange rate and your Limit Sell should sell faster than if you chose 247. But I always give myself plenty of time and pick the higher volume amount.
You CAN try to get even more US dollars for attempting to exchange at a better rate, say L$245 or L$246 per US$1.00, but my attempts to sell at any rate better than the prevailing rate never sold in the month I was willing to wait and see.
You can also perform a Market Sell, which will net you significantly less US dollars. I like to compare the estimated proceeds of Market Sells and Limit Sells just so I can see how much more money I am getting out of a Limit Sell.
So once you are done exploring, enter the number of Lindens you wish to exchange, and the exchange rate you wish to use – in this example it would be L$247 / US$1.00. You will see numbers appear Estimated Value (before fees) and the Estimated Proceeds (after LL takes their 3.5% cut).
Once you click on the “Offer to Sell” button you will be directed to re-enter your SL login information again, and then will be taken to a confirmation page. You should also get an email stating that a Limit Sell order was placed from Second Life. Now you just wait. Probably about 4-5 days.
You will notice that the amount of Lindens that you offered to sell have been taken from your Linden Balance. This is because it has been pulled into the exchange queue, waiting for buyers, And it would not do if you spent the Lindens on a spaceship, lemur avatar or nifty new skin with scales in the meantime. But never fear! You can always check to see how things are proceeding by going under the Linden Exchange (left side of your Dashboard) > Manage > Transaction History. Your Open (pending) orders will show up, relieving your fears that your Lindens have somehow escaped to the ether. You can also check your closed orders in the last 30 days on this page.
So just be patient until that magical day comes that you receive an email telling you that your Limit Sell has been filled!
Once it has been filled, the US dollars REMAIN in your Second Life account. This enables you to pay tier, premium fees or even shop on marketplace with US dollars! (Don’t you DARE shop on Market Place with US Dollars!). Linden Labs will use this US Dollar balance first for any money owed to them, before they attempt to collect from your payment information on record.
Now for the second step – Process Credit. If you wish to transfer some or all of these US Dollars to your PayPal account, now is the time. Go to your Account Summary on your Dashboard, and you will see a US Dollar balance with a “process Credit” link next to it. Click that!
Then next page shows that the Process Credit has changed (for now) and you are given a link to the knowledge base if you care to read more about it. You will need to select a Payout Method, so click the Payout Method plus button .
BE VERY SURE THE EMAIL ADDRESS YOU GIVE THEM IS CORRECT, BECAUSE THE FUNDS WILL GO TO WHATEVER EMAIL YOU ENTER!!
You should only need to do this part once, unless of course LL changes things again.
Clicking on the plus button will take you to this dialogue for Change Payment Method. If you need to add a payment method, click the link to add a payment method.
If you have processed credit to PayPal in the past, you will be able to tick a box next to PayPal Address that shows the email you use to process PayPal payments. Tick the button and click continue.
Now you will see the PayPal logo and the email you use for PayPal under payout method. BE VERY SURE THIS EMAIL ADDRESS IS CORRECT, BECAUSE THE FUNDS WILL GO TO WHATEVER EMAIL YOU ENTER!!
Then click the Request Process credit button
You will again be asked to enter your SL login information, and then you will be directed to a page showing the Transaction Details of your Process Credit Request.
Now you will wait – again – for about 3 days, (could be 6 days if its your first time). Then you will get an email from PayPal saying that your money is available in your PayPal account. It usually takes me a week from initiating a limit sell to seeing the money in my PayPal account if I go to process credit as soon as I get the email that my Limit Sell was filled, but your first time may take longer.
And that’s how you optimize your cash out from Second Life to real money!