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\$
7
\$\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).
| improve this answer | |
\$\endgroup\$
  • 2
    \$\begingroup\$ And nice energy particle emitters at the point of contact that die out shortly after being spawned. \$\endgroup\$ – Dalin Seivewright Oct 29 '10 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.

| improve this answer | |
\$\endgroup\$
2
\$\begingroup\$

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

| improve this answer | |
\$\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.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ The shimmer effect can be just changing the shading on the original sphere. That's good for my current goal. Thanks. \$\endgroup\$ – Stan Oct 30 '10 at 4:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.