Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / 3D Starfield

Author
Message
Cloggy
20
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 6th Nov 2004 04:43
Here is my first code snippet. It's a 3D starfield I am using in a space trading game I am currently very slowly coding.

Please let me know what you think and how I can improve it.

Cheers,

Cloggy
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 6th Nov 2004 08:51
Quote: "Error obtaining Source Code, invalid ID. Sorry but I've given up.
"


...is what is says when I click on the source button!


Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 6th Nov 2004 14:37
I get that too

rather post as a code snippet, makes it easier for everyone

I would like to see the code !
Cloggy
20
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 6th Nov 2004 15:18
Sorry abiut that. Here is the code



Cheers,
Cloggy
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 7th Nov 2004 13:56
Excellent! I've incorporated it into Spooky's free flight demo, (in which I've rewritten the chase-cam code), and added it into the code snippets.




Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 9th Nov 2004 09:40
Hey - Cloggy.... do you think you could adapt the star field effect to make a rain effect? ie. when you are not moving, the rain falls vertically, but as you get faster, it appears to come more towards you? That would be really useful!


Cloggy
20
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 9th Nov 2004 16:25
Ric,

I'll try to have a look over the next couple of days. Should be able to do it, not sure how it'll look though.

Cheers
Cloggy
20
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 10th Nov 2004 07:15
Ric,

I have posted some code for simulating rain in another thread if you want to try it.

Cheers,

Cloggy

Login to post a reply

Server time is: 2025-08-09 01:36:27
Your offset time is: 2025-08-09 01:36:27