3D starfiled suitable for space combat games
I'd really like to have a 3D starfield like the ones featured in many famous space combat games (from Wing Commander, X-Wing and TIE-Fighter to more recent games such as Darkstar One).
I was wondering if it's possible and if someone on the forum has already realized it. I'm sure MMF is capable of doing it, but I guess advanced math knowledge is required, that's why I'm certainly not the right man!
Re: 3D starfiled suitable for space combat games
Hi Boba Fonts. I think there is an example on my website. It is from inside a cockpit though.
Marv
Re: 3D starfiled suitable for space combat games
just make a 1x1 px active object and give it a bouncing ball movement. Then, always create it in the center, and set the direction to random.
Re: 3D starfiled suitable for space combat games
This example should do just fine
Re: 3D starfiled suitable for space combat games
Thank you all, but maybe I didn't make myself clear. I've already seen those examples and they're fine, the effect is good for a spaceship traveling forward into space in a fixed direction. But I'm not interested only in a hyperspace effect. I was referring to 3D space simulators which can calculate the position of various objects in space, their relative distances; a game engine where you can rotate your ship 360 degrees in all 3D directions and you see planets and other space objects where they should be.
I'm pretty sure MMF is capable of that, without having a proper 3D game engine, since it's not necessary that every planet or spaceship is a true 3D object.
Re: 3D starfiled suitable for space combat games
SEELE, I've just found an example of yours that may be related to what I have in mind. It's your 3D Sphere
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=235448&Searchpa ge=1&Main=27999&Words=sphere&Search=true#Post23544 8
that's the kind of 3D space in which the player's starship should be placed. A free 360° rotation in every direction, along with an equally free movement.
In the 3D sphere example we see the sphere from an external point of view, while in a space combat engine we should be inside it, seeing the virtual 3D sphere as the far away limit of our space.
Moving up, down, left or right the keys or the joystick we should rotate on ourselves 360° seeing the universe rotate according to us.
I can bet the maths required for it are very close to the events already created for this example.
Re: 3D starfiled suitable for space combat games
Yes, you sure could use the equations in that example;
Or those in the first star-field example
Althoght this example would be best as it has the camera-rotation inherently incorporated into the projection matrix (which is not as complicated as it might sound :P)
Re: 3D starfiled suitable for space combat games
Wow, that race car engine is gorgeous, SEELE. I hope I can figure out how to have camera rotation not only on the horizontal plane but in all 360 directions.
Re: 3D starfiled suitable for space combat games
thats very nice; Ti ringrazio,
Boba Fonts.
Try this new example
Re: 3D starfiled suitable for space combat games