Monday, May 20, 2013

Attaching Multiple Bump Maps to an Object

I thought that one could not attach more than one bump map to a texture; however, I discovered a simple tutorial that demonstrates how simple this is.  I can't believe it...

Anyway, open the two images under the Hypershader under the texture preset File, or just use a couple of presets.  Connect each one (using the middle mouse button) to a Bump Map 2D preset and give it a default relationship.  Then, create a texture, and create a bump map relationship between the first file and the texture.  All of the steps so far should be as if one were normally creating a bump mapped texture.

The next step takes a little more explaining.  Connect the second bump map to the first and go under 'Other' to create an outNormal->normalCamera relationship.  If neither of these two shows up, go under the Left and Right Displays and check 'Show Hidden Objects.'  Once of this is done, render out the object, and it should have a bump that has the appearance of both images.

This is what it would look like with a Bulge and Mountain preset as the bump maps.

Tuesday, May 14, 2013

Baking Textures and Light Maps

A lot of this I learned from watching the other group construct their game, but here's what I've gathered on baking textures and lights.

In order to bake textures, make the Hypershade pullout is open.  Then, select the object and one texture that affects the object (I haven't gotten it to work with more than one; something to do, then.).  With the two still selected, go to the Hypershade pullout, look under the tab "Edit," and select "Convert to File Texture" (click on the box to the right to adjust settings).  After placing the .psd file (Photoshop) in the given folder, this will create a new texture (the old one remains) with a object mapping of the original, albeit some graphic loss.  This new texture is assigned to your baked object.

Baking lights appears to work the same way, except that the light needs to be selected along with the texture and object, and the settings need to change to add the light effects.

Even in the Viewport renderer, the light pattern shown here only appears when this image is rendered or the light affecting the objects is baked into place.