mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
changes to lighting api and reworking build process for packages
This commit is contained in:
@@ -7,6 +7,42 @@ releases will be super crusty.
|
||||
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
ABOUT REV 0083 -
|
||||
|
||||
- what he hope is the finalized lighting api for beta/1.0
|
||||
|
||||
+ because lights are in object space, they are considered more
|
||||
like a shape in this release. they are not retained and must
|
||||
be "drawn" each time you run through draw().
|
||||
|
||||
+ to enable a simple ambient and directional light, place inside draw:
|
||||
public void lights();
|
||||
|
||||
+ ambientLight(float r, float g, float b)
|
||||
adds an ambient light based on the current colorMode.
|
||||
|
||||
+ directionalLight(r, g, b, vx, vy, vz);
|
||||
sets up a direction light along vector vx, vy, vz
|
||||
|
||||
+ spotLight(r, g, b, x, y, z, vx, vy, vz, angle);
|
||||
sets up a spotlight at a position, with a direction and an angle
|
||||
|
||||
+ lightFalloff(constant, linear, quadratic)
|
||||
will change the falloff for the last light addressed. default
|
||||
setting is lightFalloff(1, 0, 0)
|
||||
|
||||
+ lightSpecular(r, g, b)
|
||||
sets the specular color of this light
|
||||
|
||||
+ ambient(), emissive(), specular() set the material properties
|
||||
of shapes. they take the same form as fill() and stroke().
|
||||
|
||||
+ shininess(float shiney) takes a float from 0..1 to specify
|
||||
the level of shininess for the current material
|
||||
|
||||
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
ABOUT REV 0082 - 6 april 2005
|
||||
|
||||
- casey has updated the examples, reference, and keywords.
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
//#define JAVA_ARGS "-Xms64m -Xmx64m "
|
||||
#define JAVA_ARGS "-Xms128m -Xmx128m "
|
||||
#define JAVA_MAIN_CLASS "PdeBase"
|
||||
#define JAVA_MAIN_CLASS "processing.app.PdeBase"
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
Binary file not shown.
@@ -54,7 +54,7 @@ else
|
||||
cd ../../..
|
||||
|
||||
mkdir work/lib/build
|
||||
mkdir work/classes
|
||||
#mkdir work/classes
|
||||
|
||||
echo Compiling processing.exe
|
||||
cd launcher
|
||||
@@ -111,7 +111,7 @@ then
|
||||
|
||||
echo Building PDE for JDK 1.4
|
||||
|
||||
cd app/preprocessor
|
||||
cd app/preproc
|
||||
|
||||
# first build the default java goop
|
||||
../../build/windows/work/java/bin/java \
|
||||
|
||||
@@ -34,5 +34,5 @@ CLASSPATH=\"java\\lib\\rt.jar\;lib\;lib\\build\;lib\\pde.jar\;lib\\core.jar\;lib
|
||||
export CLASSPATH
|
||||
|
||||
#cd work && ./java/bin/java -Xint PdeBase
|
||||
cd work && ./java/bin/java PdeBase
|
||||
cd work && ./java/bin/java processing.app.PdeBase
|
||||
#cd work && /cygdrive/c/jdk-1.3.1_11/bin/java PdeBase
|
||||
|
||||
Reference in New Issue
Block a user