3D Stars Scrolling

Post your own tutorials, guides and demos.

Post » Tue May 12, 2009 12:11 pm

Hi everybody :D

I am a new Construct user and I post an example to show you how to make a 3D stars scrolling with Construct.

The aim of this example is to show you how to simulate depth without a 3D engine. Some mathematical calculations was made to simulate a z coordinate and depth.

Enjoy :)

PS : sorry for my poor english :)
B
1
G
3
Posts: 8
Reputation: 841

Post » Tue May 12, 2009 12:27 pm

Cool effect :)
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue May 12, 2009 3:49 pm

I remember those calculations from the time I spent much of my free time tinkering with Turbo Pascal (it was a long time ago, don't judge meeee!).

I messed about a bit with your code, and got this:
http://www.willhostforfood.com/access.php?fileid=66043

I made the star graphic alpha channel a bit smoother, added calculations to make the star bigger as it gets closer to the viewer, and added a size variable to the star, so that the stars can now be of various sizes.
Starfields are nice to tinker with.
B
4
G
3
Posts: 39
Reputation: 978

Post » Tue May 12, 2009 8:07 pm

That's pretty awesome, the both of you :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue May 12, 2009 8:21 pm

Very cool this second version :)
B
1
G
3
Posts: 8
Reputation: 841


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 2 guests