hi,
i'm trying to add an intelligent crosshair to hhexen (it shows when an object can be used, is out of range, is immune to the current weapon and so on). right now i'm adding 2 bars (health and current mana). of both bars, i have a full and an empty icon. the question is how can i tell jme to render only a part of the full one? is there a better way than changing the vertex and tex coords of the quad? i'm a bit afraid of floating point and unaccurate results here.
maybe a clipPlane??
I am pretty sure there is a test for it.
Yup, testClipState
this might work if i could figure out what these parameters
public void setClipPlaneEquation(int planeIndex, double clipX,
double clipY, double clipZ, double clipW)
mean. to define a plane, you need at least a vector (plane normal from 0/0/0) and a length of the normal so it ends on the plane. is x,y,z a point on the plane and w the length?
the "w" hints at a quaternion, but how does that make sense?
http://jerome.jouvie.free.fr/OpenGl/Tutorials/Tutorial8.php#ClipPlane
I thought you were right at first, but maybe not.
I have seem a lot of projects that have a computeClipPlane() method, maybe jME has one too.
Where's hevee, he likes math
It's VERY powerful, check this out http://glbook.gamedev.net/moglgp/advclip.asp
i have a little math center in my brain which figured out how the clipping planes work. will post screenshot as reward later.
as promised:
the red circle indicates “out of range”. a red cross would be a sign for “cannot use”, a hammer says “yes, use it”, and a dotted cross means “this enemy is immune to your current weapon.” i really outdid myself here
Looks REALLY sharp HoD. I am really considering making a hexxenn tribute billiards room (the dungeon look), maybe even the third one (if its okay with you that is)
It would be a little while though, I am still making the base…