Texturing the background
Blitz3D Forums/Blitz3D Beginners Area/Texturing the background
| ||
What I have been trying to do is make a stary background to my game. It's a space game. What I have been doing is to have a sphere and texture it with stars and flip it and have that as my stars but I don't want to be able to ever reach the outside of my space, so I was wondering if it is possible if you cls to a texture like you can to a color or is this not possible? |
| ||
Try this program http://www.dnxworld.homestead.com/files/starbox.zip , it generates a sky box which you can use, have a look in the tutorials section on the forums, there is a tutorial for making a skybox, and a starbox is much the same. The tutorial is here: http://www.blitzbasic.com/Community/posts.php?topic=25359 |
| ||
Thats what I wanted a skybox, thanks I even know how to use them but didn't think of it! |
| ||
OK I got the program working and everything but the sky box still is infinte |
| ||
Set the entity order of the sky box with "EntityOrder" to a value greater than zero so that it always draws behind everything else. Then in your main loop position the skybox so that the camera is in the centre in each frame. |
| ||
I make the entityorder to a value of 1 and nothing happens. If any one could possibly provde an example! |
| ||
You could also make the starsphere/box child of your ship... |
| ||
yeh, I had that But because the camrea's parented to the ship it looked like nothing was moving, but then it might now if add some other stuff like planets/space stations |
| ||
Very interesting "Agamer" - are you doing an 'Elite' style game? As that is exactly what I have been faffing around with today. After seeing 'ArxSpace' at Blitzcon, I thought 'How hard can it be to do an Elite game?'. The original game was done in a poxy 28k (If I remember correctly, coz it was designed to fit within the BBC's 32K) of code. I reckon it is worth a shot. |
| ||
Agamer, have a look at this for an example: http://www.blitzbasic.com/Community/posts.php?topic=37033 Feel free to do what you want with the code |
| ||
Yes, Puki it is exactly what I am doing. Though I knew of eliete I had no idea what it was and only found about arxspae yesterday. It is coming along quite well, I even made a menu yesterday At the moment I have the space part of it kinda working and I am hoping to get a lot of work on it next week So Thanks for all the help! |