- Home /
How can you represent overlapping energy fields?
I'm trying to create an object that has an energy field that is similar to that of a pylon from starcraft. Here is what I would like it to do:
Indicate the field's range
Indicate the field's power
Be able to overlap other fields
What's the best way to accomplish this?
My initial idea was to use a flattened cylinder that is transparent and self-illuminated with its color indicating the field direction (blue inward and red outward) and the color's richness indicating magnitude (red/blue being full force and gray being no force).
The issue is when these fields overlap there can be a lot of z-fighting. Here's some workarounds I've tried:
Use a top-down orthographic camera. This gets rid of the z-fighting for the most part, but severely limits how the game can be viewed. Also, when a blue field gets rendered before a red field, it looks much different from the other way around.
Offset the planes a little bit. Even when two planes were 4 units apart the front plane would switch to a darker shade depending on where the camera was.
Use spheres. A sphere inside another wouldn't even show up depending on the camera angle.
Use particle systems. If they get populated enough, they experience z-fighting as well.
I'd appreciate any new ideas or insight on how to make my current ideas work.
Your answer
Follow this Question
Related Questions
use RenderTexture on a sphere correctly? 1 Answer
Why is this issue occurring with my models? 1 Answer
Object see-through when rendering mode is set to Fade 1 Answer
Cutting hole in water plane using stencil buffer.Help making it visible from both sides. 0 Answers
Dynamically change draw order of procedurally generated planar meshes. 1 Answer