I have a problem with simple 3D Objects like 'box' or 'sphere' that I put into a 3D scene with either OPENGL or P3D enabled. When I use 'fill' to colorize the objects and add a value for transparency only some objects seeme to be able to be seen through transparent objects. others just completly disappear behing transparent objects.
I read somewhere that it has to do with the order in which the objects are drawn but I can´t find more info on this. When I add 'hint(DISABLE_DEPTH_TEST);' all objects become transparent but they are drawn in order they appear in the sketch and an object that is drawn last in the sketch but is acutally behind another object in 3D space as seen from the camera appears in front of everything else. How can I order the objects?
hi, I am trying to find the duplicates in two String arrays that each got its contents by loading two different textfiles into them respectively (with loadString). So I have stringArray_1 with the contents of textFile_1 and stringArray_2 with contents of textFile_2.
Now I am trying to find duplicates in these two arrays but it seems that although stringArray_1[0] and stringArray_2[0] have the same string in them, they are not recognized as equal. This only happens when I load the strings with loadString but not when I fill the string array "manually"..
I also tried to use the Hashset.contains method but I am wondering if it is possible to just compare the two arrays when they are filled with loadString. Is it not a String anymore when using loadString? it seems it gets converted to an object instead?
I have a general question regarding the twitter4j library. if I want to acces info under the "user" category (see
documentation / link "user" in the lower left frame) , I can do that by first defining the user like this:
User user = twitter.showUser(USERID);
and than accesing the info I want like this:
tweets = user.getStatusesCount(); // for number of status updates
followers = user.getFriendsCount(); // for number of followers
what I don´t understand is, how I can see what I need to initialize before I can acces the info from other queries. for example, to see the remaining hits I have to do this: