Processing IDE & Coding

41 readers
1 users here now

Processing is a Java based programming language designed to educate new and existing programmers with a focus on visuals & OOP.

A javascript version is also available, called P5.js @ /c/[email protected]


Guidelines

  1. Schoolwork
    • Asking for help with homework is OK
    • Asking for a complete solution to your homework is NOT OK
    • Responding to a request with hints, suggestions, explanations, and pseudocode is OK
    • Responding to a request for help with a complete solution is discouraged but OK
  2. Text, Images, GIFs, and Videos showing off your work is welcome! Show us what you've done!
    • No self-promotion

Resources


Code of Conduct

For now, code of conduct shall simply follow the official CoC from the Lemmy organization: Link

Some highlights:

founded 1 year ago
MODERATORS
1
 
 

Hi everyone, first of all I'm so happy to have found a Processing instance here on Lemmy!

I'm doing a Processing project where I have ~100 instances of people, all coming from the same 3d model. I'm currently storing all the PShapes inside a 1D array and doing all the drawing inside the draw() function. Now, I would love to put everything that concerns the person inside a class. If I create something like:

class Person {
    PShape person_obj  = loadShape("path/to/shape.obj");

    Person() {}
}

does Processing automatically load only a single model or do I have 100 models in RAM? If the answer is the latter, I tried changing PShape to a static variable but loadShape() is not static and everything results in an error.

Processing documentation about explicit simply says "yeah it's a java language feature, study it if you need it" which makes sense. So, I started looking for static usages in Java and tumbled upon this StackOverflow post, that basically says to use a context class with all the 3d objects I statically need and pass is to everything else that needs the 3d models.

(link: https://stackoverflow.com/questions/4969171/cannot-make-a-static-reference-to-the-non-static-method )

Does anyone know if it's the correct approach for Processing?

2
5
Welcome! (self.processing)
submitted 1 year ago by MrMusAddict to c/processing
 
 

Hey everyone. I’m coming from Reddit and I’m new to Lemmy, and wanted to join all of the communities that I was subscribed to on Reddit. I’m noticing that, to my knowledge, there isn’t a Processing community yet on any instance. So I’ve created one.

I have some minor mod experience on Reddit, but this is definitely not something that I expect to be hardcore monitoring. I mainly just wanted to open the community to give us a space to discuss Processing and post images & links, and whatnot.

If there’s any Lemmy specific best-practices you’d like to see here, please let me know!