i have a new problem with my art-project. everything works smoothly now when i start the programm once, but for some reasons everything gets really slow and animation are stucked for seconds when i repeat some screens. i use a minim player to play loops with player.loop(); whenever a certain screen is drawn and stop them by using player.pause(); whenever the next screen shows up.
i use one minim for about 7 players, that loop a certain audio signal. i have the feeling that the problem comes from the minim player. but i don't know for sure. when i run the programm for the first time it works fine, but when i return to the navigation again and something was played/used it gets slow as hell.
i had to use PGraphics to insert a 3D object into a 2D workflow. for that i had to set size() to P2D to work with P3D. the problem is that everything looks super bad compared to before! why do all my elements that are simple shapes so bad with P2D? looks like low resolution!
for my processing project i need to draw a 3d shape ( box(); ) in a standard 2d envronment. in my programm i switch through different screens by clicking on different elements and on on of those screens i need a 3d box rotating.
the problem is, that when i set the global mode to P3D there is missing z-information for all 2 elements (so they layer in a different way) and - more important - they look very shitty (not so smooth).
is there a way where i can open a P3D environment just for this one object?
any help appreciated!
hey folks! after reworking my code i stumbled upon a new issue. i used booleans for moving an object in and out. now i wanted to add the function that the object only moves out if the mouse is over the object and clicked. it almost works, but it seems like it is enough to just have moved the mouse once over the object to be able to move it out by clicking anywhere on the screen afterwards.
how can i tell the code more precisly that the mouse needs to be over the object (boolean=overBox;) when clicking to move it out?
here is my code!
int l2; int w2;
int current_position_x1b; int target_position_x1b;
i am quite new to processing and i am having a problem with my new code. i added only the part of the code that i want to get working. i want the rect() to move out of the screen by itself by using mouseReleased(), after it came in and stopped (there you canrotate it by mouseX).
But it will only move once at a time when you click on the screen. i assume the action is not done repeatedly afte the mouse is clicked.