View Full Version : Texturing in GLscene

22-11-2008, 02:08 PM
Hey all,

Thanks for all the help a while back. I have changed code and the way I was running it but now I'm a little stuck with textures and the best method to run them.

The way I would like to run is that, when the buildings are generted and textures for walls etc decided they are listed. Once the render button is clicked only the needed textures are loaded into the texture library. These are textured to the relvant plane and the city is built up. I tried this and nearly crashes my computer as loading up textures while the program is running is not the best idea!
Is there a better way of loading textures up other than inputting all the textures during design time as I've found this creates huge files and makes designing the game trickier?

The other problem I had was that I couldn't find a property to rotate textures. I would like to be able to place a texture for say a door then rotate it to face the correct way. Is this possible or do I have to rotate the object for it work?

I've attached some screenshots, its a little bright atm but you can get the idea. Each building is made of multiple planes so different parts can be textured.

http://www.postimage.org/aV1qBwK9.jpg (http://www.postimage.org/image.php?v=aV1qBwK9)

http://www.postimage.org/gxJPj0A.jpg (http://www.postimage.org/image.php?v=gxJPj0A)

Thanks again for the help!