I'm trying to make some leaves in 3d using an image texture of a leaf with transparency, but it's drawing the background color on the transparent parts. It's hard to explain so I took a picture of what's happening for you.
The picture has transparency, how can I get it to draw the transparency?
I've found out how to use jar files made with Scala within Processing. The process is pretty simple. Once you have your jar ready and your Scala class that recieves the applet, just download and paste scala-library.jar into the lib folder of processing.
For exported apps I only know how to setup linux. I'm sure someone more knowledgeable could get windows set up but I could only test it in wine. Copy scala-library.jar into the lib folder and edit the bash script and add $APPDIR/lib/scala-library.jar to the classpath.
Accessing Sala methods is normal. But to access properties, Sala makes getter and setter methods for them. To get the property object.foo use object.foo(). To change the value use, object.foo_$eq(<data>). Otherwise it seems to be working the same.
If someone could give me info on getting the windows executable to work let me know :)
[also] Make sure you're using the same scala-library.jar version as the version you're programming with.
[update]
It works on windows as well, just rebooted into it and tried it myself. Just add the scala-library.jar like before and add it to the args.txt.
I'm just drawing a simple sprite on the screen. It seems to be flickering on and off. Not sure what to do about it... I've tried double buffering and not, it happens on both. Even though I've heard double buffering is already provided. I'm also getting a decent framerate... Well here's my code if anyone has any ideas.
Sprite box;
PGraphics screen;
void initScreen(){
size(800, 450);
frameRate(30);
rectMode(CENTER);
screen = createGraphics(800, 450);
smooth();
noStroke();
fill(255);
}
void setup() {
initScreen();
box = new Sprite("spritesheet.png", 300/5, 360/6);
Hey guys I'm looking into Processing for game development. I'm an experienced programmer so the code looks wonderful! I could understand the examples without looking up anything whatsoever. I'm a bit curious about the overall speed of processing. I plan to make 2d games so the speed doesn't have to be spectacular. Also I come from making html5 games with JavaScript so I'm used to optimizing for a slow language.
I assume it'll at least be faster than JavaScript for the most part because of the Java backings, but I could be wrong. I've seen some small gaming type of things around here, but most of them are pretty inefficient lol. Does anyone have a good idea of the overall speed of Processing?
Here's a link to my canvas2d tech demo
http://iris-studios.co/demo/ using my LGPL html5 engine Axis. **Warning requires IE10/Chrome and a reasonably fast computer! It's designed to push the limits.***