1
Shared Resources / Pseudo 3D Starfield
« on: November 26, 2012, 07:59:10 am »
Hi everyone,
I have created (translated is the word) one of my code and routine in Stencyl. This is a pseudo 3D Starfield.
The aim of this, is to simulate a 3D starfield in a 2D World coordinate. It could be useful for a space game for example.
To make the effect we create a set of stars and with math calculations, we simulate a "fake z coordinate". With this method, we can make the player "believe" in a 3D starfield, with a fake depth.
I'm cleaning up the code for now, I will share it as a kit when it will be clear. However, you can see the effect by clicking the link below (dropbox upload), this a demo to let you see the effect
Click to see the 3D Stars Demo
Thank you !
I have created (translated is the word) one of my code and routine in Stencyl. This is a pseudo 3D Starfield.
The aim of this, is to simulate a 3D starfield in a 2D World coordinate. It could be useful for a space game for example.
To make the effect we create a set of stars and with math calculations, we simulate a "fake z coordinate". With this method, we can make the player "believe" in a 3D starfield, with a fake depth.
I'm cleaning up the code for now, I will share it as a kit when it will be clear. However, you can see the effect by clicking the link below (dropbox upload), this a demo to let you see the effect
Click to see the 3D Stars Demo
Thank you !