Proscene: a different view
- Karla G
- 27 mar 2015
- 1 Min. de lectura
What is proscene?
"Proscene (pronounced similar as the Czech word "prosím" which means "please") is a java library package which provides classes to ease the creation of interactive 3D scenes in Processing.
Proscene has been pretty much inspired in the Qt's OpenGL C++ libqglviewer library from where it borrows the concept of an interactive frame, i.e., a coordinate system that can be controlled with the mouse. Proscene aims at broadening this idea by allowing the user to easily setup an HID controlled scene. Proscene has a very similar functionality and API reference to that found in libqglviewer." (Google)
Proscene is a different way of looking at things, literally.
First you just have to download the packages.
Open Processing. Go to the button "Sketch"
Select Import Library.
Go to Add Library.
Look for "proscene"
Download it.
Now wait until it downloads....
Open your program.
Select "sketch" again.
Press on Import library, now look for proscene in your list.
Select proscene.
All the packages needed to proscene will appear on your code.
Now you just have to set the variable.
Create a variable outisde all the voids (before setup), the variable should look like this:
Scene scene; //this is a variable called Scene of type scene.
Now inside your setup initialize the camera:
INSIDE VOID SETUP(){
scene= new Scene(this);
}
Now you can enjoy of a beautiful camera for 3D graphics.
Try pressing the keys G and A in your keyboard.
References:
Google. (2013). proscene This java library package provides classes to ease the creation of interactive 3D scenes implemented with the Processing language. 27 Marzo del 2015, de Google Sitio web: https://code.google.com/p/proscene/
コメント