Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
nykwil
nykwil's Profile
1
Posts
3
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
texture and shape
[7 Replies]
13-Oct-2012 06:17 PM
Forum:
Android Processing
Can't seem to get texture to work on device (Galaxy S) or emulator.
I know the image loads, and I've tried different renders. Screen is just black.
Works in javascript and java.
2.0b3
Thanks
PImage img;
void setup() {
size(400, 500, P3D);
img = loadImage("portr1.jpg");
}
void draw() {
// image(img, 0, 0); // works
beginShape();
texture(img);
vertex(0, 0, 0, 0);
vertex(img.width, 0, img.width, 0);
vertex(img.width, img.height, img.width, img.height);
vertex(0, img.height, 0, img.height);
endShape();
}
«Prev
Next »
Moderate user : nykwil
Forum