Custom Cursor in 3D ?
in
Programming Questions
•
1 year ago
Hey,
sorry for posting all this (silly?!) questions but I can't even find an answer via google (just for processing alpha and this doesn't seem to work…)
I want a custom cursor in a 3D processing script, in 2D everything went well, code:
- void setup () {
- size(300, 300);
- }
- void draw () {
- noCursor();
- background (255);
- KREUZ(mouseX, mouseY);
- }
- void KREUZ (int x, int y)
- {
- line (x-(width+x), y, x+(width-x), y); //KREUZ X achse
- line (x, y-(height+y), x, y+(height-y)); //KREUZ y achse
- }
I also tried to generate the cross in a .svg and load it as cursor(cross.svg)
in both variations I have the same problem:
as soon as i put it outside of the push popMatrix() which sets up my object it lies BEHIND it … not in front …
sounds like a simple problem but I don't get it neither…
thanks a lot for your help again…
1