3
\$\begingroup\$

I am using Ogre3D.

How can I implement an energy shield like this image?

In the picture, the shield is a semi-sphere, where I want to make it a sphere surround my object. The shield should be transparent (this should be adjustable). Can the community advise how to do this? Thanks.

\$\endgroup\$

4 Answers 4

6
\$\begingroup\$

I would use:

  • a semi-transparent sphere with a nice texture on it,
  • a collision detection system to understand where the sphere has been hit,
  • vertex and pixel shaders to implement ripples leaving from the contact point (maybe even with bump mapping, without actually displacing vertices).
\$\endgroup\$
1
  • 2
    \$\begingroup\$ And nice energy particle emitters at the point of contact that die out shortly after being spawned. \$\endgroup\$ Commented Oct 29, 2010 at 10:48
3
\$\begingroup\$

The magic in that screenshot is the Fresnel effect at the border. A plain transparent sphere with a texture is not sufficient. There is a demo in the Ogre programming book, but I don't know if sources are available.

\$\endgroup\$
2
\$\begingroup\$

For the "border" effect on the shield, you could try some Fresnel/Rim lighting shader.

\$\endgroup\$
1
\$\begingroup\$

Wouldn't that just be a sphere with a partially transparent texture on it? You would need to break it into discrete polygons, but any 3D modeling package will have a drawing tool for this. The shimmer effect might be a little trickier, not sure how complex you are looking for though. Are you trying to do that kind of rippling impact animation too? The "right way" would probably be to implement it as a geometry shader, but that might be a lot harder than you need.

\$\endgroup\$
1
  • \$\begingroup\$ The shimmer effect can be just changing the shading on the original sphere. That's good for my current goal. Thanks. \$\endgroup\$ Commented Oct 30, 2010 at 4:30

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.