Tuesday, March 20, 2018

ogre - How to implement a starwar energy shield in game


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.



Answer



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).



No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...