6
\$\begingroup\$

Ogre3D

I would like to put some space junk in my game environment. Make it look like the first 2 search results. Those junks don't need to be interactive. Just need to have a 3D junk circling around the earth.

Can the community give some suggestion on how to implement this? Should I use particle in Ogre3D or create entities for those junks, or any other approach? If using particle, how should I make the object still and spread out around the earth? Thanks.

\$\endgroup\$
1
  • \$\begingroup\$ Space junk is usually invisible to the naked eye - maybe you meant asteroid fields? google.com/images?q=asteroid+field \$\endgroup\$ Commented Oct 21, 2010 at 13:15

2 Answers 2

2
\$\begingroup\$

Particles would be a decent solution. It really depends on how close the player will get to the junk.

For positioning each piece of junk you can generate a random direction vector, and a random float called distance. You would then position that piece of junk at direction * (minimumJunkDistance+distance).

To have it circle the earth I would simple apply trigonometry to have it move on a fixed orbit at a fixed velocity.

I'm not sure if Ogre automatically does this, but it would be nice if the junk fades out before it hits the camera's near plane to stop it from dissapearing suddenly.

\$\endgroup\$
1
  • \$\begingroup\$ Clear and concise, +1 \$\endgroup\$ Commented Jan 22, 2013 at 19:09
1
\$\begingroup\$

Use an Ellipsoid emitter for your particles.

There is an example of the Ellipsoid here: http://www.ogre3d.org/tikiwiki/ParticleExampleSun&structure=Cookbook

Since you want the particles fixed in space, you will need to experiment with the time_to_live, duration, etc.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.