Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
bn.barak
About Me:
<a href="http://china-post-tracking.com"> china post trackig </a>
Wiki:
http://china-post-tracking.com
Blog:
http://china-post-tracking.com
Website:
http://china-post-tracking.com
bn.barak's Profile
4
Posts
4
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Vector question?
[2 Replies]
12-Oct-2010 08:15 AM
Forum:
Programming Questions
Hello,
I am trying to build a wall(plane) from 2 vectors? I know how to do it on the paper but not in processing.
for example:
v1 = t(200,200,0);
v2 = r(200,0,);
you can do it with Determinant or just say t = 1 , r = 1 :
{200,200,0} , {200,0,0} place it : Ax^2 + Bx + c = 0;
A200^2 + 200b = 0 => 200A+b = 0;
200^2A = 0; => A = 0;
b = 0;
so the plane will be (0,0,0).
Now how I build visually this plane?
Thank you.
java help
[1 Reply]
08-Oct-2010 07:26 AM
Forum:
Programming Questions
Hi,
I have .NullPointerException error. I know whatss mean but I cant dinf any error on my code.
This is the code:
class Scroll
{
float x ;
float l ;
Scroll()
{
x = 0;
l = x+width;
fill(127);
stroke(255);
rect(0,10,width,20);
fill(255);
stroke(0);
rect(x,11,20,19);
}
void update()
{
if(mouseX < x)
{
l = width - x - mouseX;
}
else
{
l = width + x + mouseX;
}
x = mouseX;
print(l);
background(0);
fill(127);
stroke(255);
rect(0,10,width,20);
fill(255);
stroke(0);
rect(x,11,20,19);
}
}
Thank you.
336 error
[5 Replies]
03-Oct-2010 01:42 PM
Forum:
Android Processing
Hello,
I just cant find a answer to this error:
android-sdk-windows\tools\ant\ant_rules_r3.xml:336: Error running javac.exe compiler
Can any one give me an answer to this problem please?
Thank you.
Arduino problem
[1 Reply]
03-Oct-2010 01:36 PM
Forum:
Integration and Hardware
Hello,
I am trying to pass some data from the arduino to the processing.
I am passing 3 values like xxx,yyy and zzz as one long: xxxyyyzzz
This is part of my code:
void serialEvent (Serial myPort) {
// get the ASCII string:
String inString = myPort.readStringUntil('\n');
if (inString != null) {
grid();
stroke(0);
line(x,0,x,height);
// trim off any whitespace:
inString = trim(inString);
// convert to an int and map to the screen height:
inByte = int(inString);
y1 = (inByte/1000000);
y2 = inByte/1000-y1*1000;
y3 = inByte-y1*1000000-y2*1000;
y1 = round(map(y1, 0, 1023, 0, height));
y2 = round(map(y2, 0, 1023, 0, height));
y3 = round(map(y3, 0, 1023, 0, height));
print("x : ");
print(y1);
print(" |y: ");
print(y1);
print(" |z: ");
println(y3);
The values I am passing is not the values I get..
Whats my problem please?
Thank you.
«Prev
Next »
Moderate user : bn.barak
Forum