Page 1 of 2
Simple SpaceSim
Posted: Sun May 01, 2011 10:25 pm
by Morganolla
Hi guys. I'm beginner in Irrl...

So I try to make a simple demo of a real space physics simulator. Well, here you will find a little ship and big asteroid. You can fly around asteroid and land on it. All control of ship and camera in readme_.txt. Enjoy...
http://irrla.narod2.ru/MyGame/Demo_.rar
Screens:

Posted: Sun May 01, 2011 10:43 pm
by ChaiRuiPeng
while i wait for it to download..
one time i made a little prototype in blender, with full spherical gravity, back when i was a newby, still am
(downloaded and played)
nice

i like your scale and how as you go out into "outer space" the star you were closest to sort of "blends in" with the other stars in the star field.
maybe you could add a randomly generated stars?

maybe have infinite and add more planets and gravity to the stars?

ahah im getting carried away, i love space flight.
Posted: Mon May 02, 2011 6:44 am
by Morganolla
Yes, stars (skybox) are generating by random - I think it's more interesting than textures. Also, I use Bullet physics to realise real inertial physics. For Bullet I made my own simple retranslator of body's "trans" matrixes from bullet to irrla... And also, I little bit reconstructed irrlicht particle system for jets of engines

Posted: Mon May 02, 2011 8:31 am
by ent1ty
This was.. kind of.. perfect
Graphics(I know it's Irrlichts basic) - Perfect. If only the asteroid casted shadow too. Apparently, in space kind of games fixed function rendering is quite sufficient.
Gameplay - Awesome. I was only missing some functions as auto stop rotating ship, I found it quite hard to stop rotating it

Also, I like the stars a lot(Just a thought here - they are all stars, not just the big yellow one in the middle, right? So maybe add the halo that the big star in the middle had to the stars that are withing a limit?). Oh, and what I was missing most of all, was some planet I could practice landing/taking off on. Btw love how the asteroid had gravity too.
Oh an, P.S.: next time, please pack the whole stuff into one folder first and then add it into archive. Makes it easier for us

Posted: Mon May 02, 2011 9:07 am
by REDDemon
does this work also when moving very far from the origin?

Posted: Mon May 02, 2011 9:17 am
by ent1ty
I should think so... though if you move very far, some precision errors will most likely occur.
Btw, you should call the first screenshot: "Off to buy some chocolates"

Posted: Mon May 02, 2011 10:15 am
by Morganolla
REDDemon wrote:does this work also when moving very far from the origin?

ent1ty wrote:I should think so... though if you move very far, some precision errors will most likely occur.
Well, correct far space realisation I will make in my next project. I know how to do it .
ent1ty wrote:
Btw, you should call the first screenshot: "Off to buy some chocolates"

Good joke! I think astronauts were very hungry and have decided to depart to a chocolate asteroid to eat

Posted: Mon May 02, 2011 2:15 pm
by ChaiRuiPeng
hey if you want i have some space themed planet and ship models buried in my hard drive from my blender glory days

let me see if i can find them. you can have them if you want, although their not the best art...

Posted: Tue May 03, 2011 7:09 pm
by Morganolla
ChaiRuiPeng -Thanks , I'll think
Now I download new Demo_ (at the topic) with landing sound of the ship. I made CollisionCallBack from Bullet and add landing sound. Bullet physics permit you to move and rotate asteroid, when ship has landed and ship's engines switched on. If you landing at the thin edge of asteroid, it begin rotate faster because torque from ship engines is greater...
Posted: Wed May 18, 2011 12:44 pm
by Morganolla
I try to make Atmosphere scattering in Irrlicht engine- video:
http://www.youtube.com/watch?v=U3g_xAL7ia0
Posted: Thu May 19, 2011 6:21 pm
by Morganolla
Enhanced Atm. scattering ver.2 - video -
http://www.youtube.com/watch?v=Hn21oym5jo0
Demo (release.exe 1mb) -
http://irrla.narod2.ru/MyGame/Oreol_v002.rar
Flight control - as camera FPS.
Posted: Thu May 19, 2011 7:21 pm
by Luben
Much better looking than the first version

Nice!
Posted: Thu May 19, 2011 8:20 pm
by nathanf534
How are you making the blue stuff that turns it? It looks really nice.
Posted: Fri May 20, 2011 2:04 pm
by Morganolla
Thanks. Well, I just make a custom SceneNode (like tut#3) without any shaders

. Now I debug this class... for future using...

Posted: Sun May 22, 2011 6:10 am
by Morganolla