has anyone figured out a way to store sketches on the phone's SD-Card instead of a phone's internal memory? (The internal memory on my entry level phone is all but gone...)
Hi there - I've just started working with APWidgets and I have 2 questions:
(1) Is there a way to show light gray text on an "empty" APEditText widget? Something like "Enter name". The setText method will place text in the field, but I'm looking for more of a subtle background text to serve as a user prompt (one that the user does not need to erase when typing).
(2) I can't seem to get the APTextView widget to work. Although I can get no error information in Android mode, when using standard mode to debug I get this error message: cannot instantiate the type APTextView. All I want is a widget to display non-editable text.
Everything I draw when using the the OCD library (3d camera control) is "see-through". Not really transparent as when you set the alpha of the fill, but "see-through".
For example, a close-up cube does not block the view of a cube directly behind it but farther away. This is true when using the box, sphere, and line commands. It is also true when using the texture and vertex commands.
If I use the built-in camera command - no problems. I would like to use the OCD library for the camera navigation.
Any suggestions? Here's some example code:
import damkjer.ocd.*;
Camera camera1;
void setup() {
size(600, 400, P3D);
// position camera at z=-50
camera1 = new Camera(this, 0,0, -50, -10, 1000);
}
void draw() {
background(0);
// green cube at z=0 (should block view of the red cube)
fill(0, 200, 0);
addCube(0,0,0);
// red cube at z=100 (should not be visible since its behind the green cube)
fill(200,0,0);
addCube(0,0, 100);
camera1.feed();
}
public void addCube(int x, int y, int z){
pushMatrix();
translate(x, y, z);
box(10);
popMatrix();
}
I've just started using OCD for 3d camera control. I like what I've seen so far but I have a problem.
When the camera gets within 5 units of a shape (such as box), the shape disappears. I would like to be able to move right up to the shape. I've tried using the perspective command to change the clipping distances with no luck. Any advice?
Also, does anyone know of a collection of examples or tutorials on OCD?