13.01.2013 Views

Hands On DarkBASIC Pro - Digital Skills

Hands On DarkBASIC Pro - Digital Skills

Hands On DarkBASIC Pro - Digital Skills

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Summary<br />

To cure the problem of an inverted mirror image (which isn't actually a problem in<br />

this case) we need to save the original image as an inverted mirror image in the first<br />

place and this will then be reversed when the image is used as a texture.<br />

Activity 32.33<br />

If you have an appropriate paint package, invert and mirror the image sky.jpg<br />

(save the resulting image as skyIM.jpg) and use the new image as a texture for<br />

the sky sphere.<br />

If you don't have an appropriate package, the inverted mirror image is<br />

supplied with the images for this chapter.<br />

� A sky sphere allows us to create a sky affect around our 3D world.<br />

� A sky sphere is a large sphere textured with an image of the sky.<br />

� To make the sphere's texture visible from within the sphere, switch off the<br />

sphere's culling or create and inverted mirror image of the sky and use it to texture<br />

a sphere with a negative diameter value.<br />

830 <strong>DarkBASIC</strong> <strong>Pro</strong>: Texturing

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!