# Latest

**URL:** https://discourse.processing.org/latest.md?page=451

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 452

---

## [It's possible to load 3d models?](https://discourse.processing.org/t/its-possible-to-load-3d-models/13557)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 4\
**Last updated:** [August 28, 2019, 9:53pm UTC](https://discourse.processing.org/t/its-possible-to-load-3d-models/13557 "2019-08-28T21:53:03Z")

</div>

Hi there!! I couldn’t find the answer to this simply question :sweat\_smile: Want to try the 3D mode, but first want to know if I can load 3D models (found .3DS free models). Thanks !! :hugs:

---

## [Resize Background Image when Resizing Window in p5.js?](https://discourse.processing.org/t/resize-background-image-when-resizing-window-in-p5-js/13671)

<div class="topic-metadata">

**Author:** [@zacharyfruhling](https://discourse.processing.org/u/zacharyfruhling)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 8:36pm UTC](https://discourse.processing.org/t/resize-background-image-when-resizing-window-in-p5-js/13671 "2019-08-28T20:36:10Z")

</div>

I’m having trouble getting the background image for a p5.js sketch to resize along with the window resize function. Basically I’m preloading the image in the preload function, resizing it to match the current window widt…

---

## [It's possible to change between 2D and 3D while runing?](https://discourse.processing.org/t/its-possible-to-change-between-2d-and-3d-while-runing/13646)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 6\
**Last updated:** [August 28, 2019, 8:24pm UTC](https://discourse.processing.org/t/its-possible-to-change-between-2d-and-3d-while-runing/13646 "2019-08-28T20:24:58Z")

</div>

Hi there!! I want to switch between 2D and 3D pressing a button, don’t know if that’s possible, someone knows? I have my sketch running (processing 3, in android studio), and want to be able to change to 3D or go back …

---

## [P5.ble.js - Does It Work With All Browsers?](https://discourse.processing.org/t/p5-ble-js-does-it-work-with-all-browsers/13675)

<div class="topic-metadata">

**Author:** [@jgavlik](https://discourse.processing.org/u/jgavlik)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 7:30pm UTC](https://discourse.processing.org/t/p5-ble-js-does-it-work-with-all-browsers/13675 "2019-08-28T19:30:07Z")

</div>

Can p5.ble.js work with more than the Chrome browser… like FireFox??

---

## [Placing a texture on a pshape](https://discourse.processing.org/t/placing-a-texture-on-a-pshape/13561)

<div class="topic-metadata">

**Author:** [@sentfrom](https://discourse.processing.org/u/sentfrom)\
**Replies:** 5\
**Last updated:** [August 28, 2019, 5:22pm UTC](https://discourse.processing.org/t/placing-a-texture-on-a-pshape/13561 "2019-08-28T17:22:39Z")

</div>

Hello, I am making a game and I have a pshape planet with 360 vertices placed in a circle. PVector circ = new PVector(rad,0); tar = createShape(); tar.beginShape(); //loops 359 times to enable rotation in 1°…

---

## [Screen to PGraphic?](https://discourse.processing.org/t/screen-to-pgraphic/13622)

<div class="topic-metadata">

**Author:** [@aledante](https://discourse.processing.org/u/aledante)\
**Replies:** 9\
**Last updated:** [August 28, 2019, 4:21pm UTC](https://discourse.processing.org/t/screen-to-pgraphic/13622 "2019-08-28T16:21:20Z")

</div>

Hi!, Is there a way of directing all drawing instructions to a PGraphics? I’ve already write a program that draw something to the screen and now I want it in a PGraphic. I know that it is not difficult to write the code…

---

## [Solving an Unexpected Identifier](https://discourse.processing.org/t/solving-an-unexpected-identifier/13645)

<div class="topic-metadata">

**Author:** [@VMK](https://discourse.processing.org/u/VMK)\
**Replies:** 4\
**Last updated:** [August 28, 2019, 12:25pm UTC](https://discourse.processing.org/t/solving-an-unexpected-identifier/13645 "2019-08-28T12:25:15Z")

</div>

Greetings! I’m trying to create a class to draw a bezier curve but seeing ‘unexpected identifier’ error which doesn’t make sense to me : http://tiny.cc/xy7sbz https://editor.p5js.org/VMK/sketches/D-GpdoGiM Any help wo…

---

## [Shader issue when converted from Java](https://discourse.processing.org/t/shader-issue-when-converted-from-java/13589)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 3\
**Last updated:** [August 28, 2019, 11:51am UTC](https://discourse.processing.org/t/shader-issue-when-converted-from-java/13589 "2019-08-28T11:51:35Z")

</div>

I converted a very simple Java example in to Python and I get a black screen instead. Just started tinkering with shaders so this is not a good start! Is there something obvious I’ve missed here? The shader seems to exis…

---

## [How to make a Android controller](https://discourse.processing.org/t/how-to-make-a-android-controller/13637)

<div class="topic-metadata">

**Author:** [@Chinnah](https://discourse.processing.org/u/Chinnah)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 12:02am UTC](https://discourse.processing.org/t/how-to-make-a-android-controller/13637 "2019-08-27T00:02:42Z")

</div>

Just made a simple controller for processing for Android. I need help with the output in which I would like a angle instead of a x & y position as the out put class Controller { int touches\_on; float d; PVector righ…

---

## [Problem with window size](https://discourse.processing.org/t/problem-with-window-size/13664)

<div class="topic-metadata">

**Author:** [@newt](https://discourse.processing.org/u/newt)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 7:29am UTC](https://discourse.processing.org/t/problem-with-window-size/13664 "2019-08-28T07:29:02Z")

</div>

So I’m new in processing but I have a problem Every time I start a sketch the size il almost full screen even if I use size (500,300) or (50,30) For clarify I write Void setup(){ Size(500,300); } Void draw() { Backgro…

---

## [How to update data using onClick button](https://discourse.processing.org/t/how-to-update-data-using-onclick-button/13644)

<div class="topic-metadata">

**Author:** [@rumidita](https://discourse.processing.org/u/rumidita)\
**Replies:** 2\
**Last updated:** [August 28, 2019, 4:52am UTC](https://discourse.processing.org/t/how-to-update-data-using-onclick-button/13644 "2019-08-28T04:52:31Z")

</div>

I would like to update data using onClick button, so I try using an item from controlP5 library. I hope when I click the button, the ‘old’ data will be changed by the ‘new’ data. But, it seems still hold the ‘old’ data. …

---

## [HTTP POST Request sending incorrect Content-Type](https://discourse.processing.org/t/http-post-request-sending-incorrect-content-type/13650)

<div class="topic-metadata">

**Author:** [@n055](https://discourse.processing.org/u/n055)\
**Replies:** 3\
**Last updated:** [August 28, 2019, 2:11am UTC](https://discourse.processing.org/t/http-post-request-sending-incorrect-content-type/13650 "2019-08-28T02:11:39Z")

</div>

Hey y’all, I’m making a processing sketch to interact with an API that I wrote in node.js using express.js as my web service. When sending GET requests, all is splendid, due to the information being contained in the URL,…

---

## [Colored circles](https://discourse.processing.org/t/colored-circles/13656)

<div class="topic-metadata">

**Author:** [@BennyElie](https://discourse.processing.org/u/BennyElie)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 1:26am UTC](https://discourse.processing.org/t/colored-circles/13656 "2019-08-28T01:26:49Z")

</div>

Hi, If I have a series of circles and I would like to color them one by one, let’s say their initial state is white and I would like them to one by one change to red, how would I be able to approach this? regarding t…

---

## [How to connect Processing with Renoise via OSC](https://discourse.processing.org/t/how-to-connect-processing-with-renoise-via-osc/13658)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 12:51am UTC](https://discourse.processing.org/t/how-to-connect-processing-with-renoise-via-osc/13658 "2019-08-28T00:51:55Z")

</div>

Hi. I’ve fallen in absolute love with Renoise, and I wish to connect it to Processing to trigger images, animations, etc. So I’m an intermediate programmer, not lost at all, but I don’t know how I could setup Renoise to…

---

## [Kinect: Rendering mapped depth values efficiently?](https://discourse.processing.org/t/kinect-rendering-mapped-depth-values-efficiently/13419)

<div class="topic-metadata">

**Author:** [@lfredericks](https://discourse.processing.org/u/lfredericks)\
**Replies:** 0\
**Last updated:** [August 16, 2019, 5:42pm UTC](https://discourse.processing.org/t/kinect-rendering-mapped-depth-values-efficiently/13419 "2019-08-16T17:42:48Z")

</div>

Edit: SOLVED (more or less). I ended up doing my depth rendering and RGB video in a separate Processing sketch, and creating a Thread subclass to render the depth mask asynchronously. I’m using Spout to send the RGB imag…

---

## [Rect(x,y,1,1); VS. point(x,y);](https://discourse.processing.org/t/rect-x-y-1-1-vs-point-x-y/13299)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 11\
**Last updated:** [August 27, 2019, 4:17pm UTC](https://discourse.processing.org/t/rect-x-y-1-1-vs-point-x-y/13299 "2019-08-27T16:17:16Z")

</div>

Can you guys try this? (try changing the size() on your computers) boolean rectOrPoint; void setup() { size(600, 300); //play with these: make those bigger if you've got a fast modern computer rectOrPoint = false;…

---

## [When using 'point' in processing, I have some issues](https://discourse.processing.org/t/when-using-point-in-processing-i-have-some-issues/13581)

<div class="topic-metadata">

**Author:** [@mstevens1994](https://discourse.processing.org/u/mstevens1994)\
**Replies:** 4\
**Last updated:** [August 25, 2019, 1:19pm UTC](https://discourse.processing.org/t/when-using-point-in-processing-i-have-some-issues/13581 "2019-08-25T13:19:44Z")

</div>

Hi all, I currently have a 3d scanner implemented within the software. However, when I use stroke() with colour mode HSB to set the colour of a single point, it changes all the colours of all of my points. How do I chan…

---

## [Using Processing in another editor (Java)](https://discourse.processing.org/t/using-processing-in-another-editor-java/13617)

<div class="topic-metadata">

**Author:** [@Flash32](https://discourse.processing.org/u/Flash32)\
**Replies:** 5\
**Last updated:** [August 27, 2019, 3:07pm UTC](https://discourse.processing.org/t/using-processing-in-another-editor-java/13617 "2019-08-27T15:07:47Z")

</div>

Hi, First off thank you very much for all the materials associated with processing it has been a great learning tool. Q: I started with p5.js and I could import it into other editors pretty easily(thanks to the coding t…

---

## [Combining fading codes for music video](https://discourse.processing.org/t/combining-fading-codes-for-music-video/11214)

<div class="topic-metadata">

**Author:** [@mellebond](https://discourse.processing.org/u/mellebond)\
**Replies:** 10\
**Last updated:** [August 27, 2019, 11:10am UTC](https://discourse.processing.org/t/combining-fading-codes-for-music-video/11214 "2019-08-27T11:10:46Z")

</div>

Hello! I’m making a music video and… I’ve got two codes, and I want to put them together, but just can’t manage… I want the lines drawn in the first code to fade as they do in the second. (So a white background and t…

---

## [Text partly invisible with P3D renderer](https://discourse.processing.org/t/text-partly-invisible-with-p3d-renderer/13575)

<div class="topic-metadata">

**Author:** [@uli-b](https://discourse.processing.org/u/uli-b)\
**Replies:** 8\
**Last updated:** [August 27, 2019, 8:50am UTC](https://discourse.processing.org/t/text-partly-invisible-with-p3d-renderer/13575 "2019-08-27T08:50:28Z")

</div>

Hi, i have a problem using the P3D renderer. I am drawing some text and icons to a pgraphics object. This worked well using the Java2D renderer. To be able to introduce 3D rotation, I now switched to the P3D renderer. T…

---

## [Bluetooth communications between HC-05 and processing inconsistent?](https://discourse.processing.org/t/bluetooth-communications-between-hc-05-and-processing-inconsistent/13601)

<div class="topic-metadata">

**Author:** [@blorglue](https://discourse.processing.org/u/blorglue)\
**Replies:** 11\
**Last updated:** [August 27, 2019, 8:34am UTC](https://discourse.processing.org/t/bluetooth-communications-between-hc-05-and-processing-inconsistent/13601 "2019-08-27T08:34:58Z")

</div>

Hello everybody, I’m trying to make a motion sensor using a ultrasonic sensor and a HC-05 bluetooth module to send the data, it works perfectly on a wired connection on processing, the String i drew in the window also ch…

---

## [\[SOLVED\] loadBytes implemented yet?](https://discourse.processing.org/t/solved-loadbytes-implemented-yet/13641)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 8:04am UTC](https://discourse.processing.org/t/solved-loadbytes-implemented-yet/13641 "2019-08-27T08:04:43Z")

</div>

Just tried using loadBytes() but the console (Edge) says it hasn’t been implemented, and the p5.js file says similar: 0: not yet implemented p5.prototype.loadBytes = function () { // TODO throw ‘not yet implemented’; …

---

## [Live update of Threshold filter](https://discourse.processing.org/t/live-update-of-threshold-filter/13635)

<div class="topic-metadata">

**Author:** [@eric](https://discourse.processing.org/u/eric)\
**Replies:** 3\
**Last updated:** [August 27, 2019, 2:37am UTC](https://discourse.processing.org/t/live-update-of-threshold-filter/13635 "2019-08-27T02:37:04Z")

</div>

I’m trying to show a photo and be able to adjust the threshold real time when holding down shift. Here’s kind of what I’ve got: PImage crossSection; float threshold = .85; void setup() { size(1008, 756); crossSect…

---

## [Trying to create a shape/load image in a class and call it in my draw (not working)](https://discourse.processing.org/t/trying-to-create-a-shape-load-image-in-a-class-and-call-it-in-my-draw-not-working/13638)

<div class="topic-metadata">

**Author:** [@bobboibob](https://discourse.processing.org/u/bobboibob)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 1:27am UTC](https://discourse.processing.org/t/trying-to-create-a-shape-load-image-in-a-class-and-call-it-in-my-draw-not-working/13638 "2019-08-27T01:27:07Z")

</div>

Sorry this is a two part question but it is kind of the same question, I taught myself processing so hence I am not sure how to figure this out myself. So, I made a drawBird() function in my bird class and then in my M…

---

## [How to get mouse to click](https://discourse.processing.org/t/how-to-get-mouse-to-click/13633)

<div class="topic-metadata">

**Author:** [@kjiiller](https://discourse.processing.org/u/kjiiller)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 11:35pm UTC](https://discourse.processing.org/t/how-to-get-mouse-to-click/13633 "2019-08-26T23:35:10Z")

</div>

Sorry, I’m pretty new to coding, so I don’t know much. I was wondering if it’s possible to use processing to click your mouse like an auto clicker. From what I’ve seen it’s either impossible or extrememely easy:). Thank-…

---

## [Convert color of an image from rgb to cmyk](https://discourse.processing.org/t/convert-color-of-an-image-from-rgb-to-cmyk/2922)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 9\
**Last updated:** [August 26, 2019, 10:24pm UTC](https://discourse.processing.org/t/convert-color-of-an-image-from-rgb-to-cmyk/2922 "2019-08-26T22:24:42Z")

</div>

hi guys i’m tryng to convert rgb values to cmyk values. i wrote this code, i think that’s right. class Cmyk { PImage img; float\[\]\[\] c, m, y, k, r1, g1, b1; Cmyk(PImage img) { this.img=img; r1 = new floa…

---

## [Spread an image on the channels of the Cmyk](https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 1\
**Last updated:** [August 26, 2019, 10:15pm UTC](https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587 "2019-08-26T22:15:11Z")

</div>

I need to make 4 Pimage variables which will contain only one color of cmyk channel from source image. Could you help me, please?

---

## [Rectangles going to the top left corner](https://discourse.processing.org/t/rectangles-going-to-the-top-left-corner/13630)

<div class="topic-metadata">

**Author:** [@thetinybros](https://discourse.processing.org/u/thetinybros)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 9:56pm UTC](https://discourse.processing.org/t/rectangles-going-to-the-top-left-corner/13630 "2019-08-26T21:56:59Z")

</div>

I’ve been programming with processing for about a year now, and one thing I never found out was why the lines on rectangles go to the top left of the screen instead of to the sides of the rectangle. Anyone else experienc…

---

## [Custom Distribution of Random Number](https://discourse.processing.org/t/custom-distribution-of-random-number/13628)

<div class="topic-metadata">

**Author:** [@tylerowens](https://discourse.processing.org/u/tylerowens)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 9:14pm UTC](https://discourse.processing.org/t/custom-distribution-of-random-number/13628 "2019-08-26T21:14:43Z")

</div>

Hello all, I am currently in the introduction chapter of the nature of code. I am making a program that generates a random number by comparing two random numbers. I am able to make sense of everything besides what random…

---

## [Accessing class/attributes from string](https://discourse.processing.org/t/accessing-class-attributes-from-string/13583)

<div class="topic-metadata">

**Author:** [@Keif3r](https://discourse.processing.org/u/Keif3r)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 8:21pm UTC](https://discourse.processing.org/t/accessing-class-attributes-from-string/13583 "2019-08-26T20:21:46Z")

</div>

Hi, What I want to do using processing 3.x with java: Basically read all variable values of a class, but accessing them indirectly by a string. e.g. class book { String title; int catalogue; String author; } ... …

[Previous page](https://discourse.processing.org/latest.md?page=450)

[Next page](https://discourse.processing.org/latest.md?page=452)
