Skip to content

Commit a3f00d3

Browse files
committed
examples updated
1 parent b65b414 commit a3f00d3

12 files changed

Lines changed: 13 additions & 70 deletions

File tree

‎examples/basics/CajasOrientadas/CajasOrientadas.pde‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ void setup() {
4444

4545
void draw() {
4646
background(0);
47-
// calls render() on all scene attached nodes
48-
// automatically applying all the node transformations
47+
// calls render() on all scene nodes applying all their transformations
4948
scene.render();
5049
drawRay();
5150
}

‎examples/basics/ConstrainedEye/ConstrainedEye.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int rotDir;
2121
AxisPlaneConstraint constraints[] = new AxisPlaneConstraint[2];
2222
int activeConstraint;
2323

24-
//Choose FX2D, JAVA2D, P2D or P3D
24+
//P2D or P3D
2525
String renderer = P3D;
2626

2727
void setup() {

‎examples/basics/ConstrainedNode/ConstrainedNode.pde‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ AxisPlaneConstraint constraints[] = new AxisPlaneConstraint[3];
2222
int activeConstraint;
2323
boolean wC = true;
2424

25-
//Choose FX2D, JAVA2D, P2D or P3D
25+
//Choose P2D or P3D
2626
String renderer = P3D;
2727

2828
void setup() {
@@ -51,6 +51,7 @@ void setup() {
5151
Scene.drawTorusSolenoid(pg);
5252
}
5353
};
54+
scene.randomize(iNode);
5455
iNode.setPickingThreshold(0);
5556
iNode.translate(new Vector(20, 20, 0));
5657
iNode.setConstraint(constraints[activeConstraint]);

‎examples/basics/Interpolators/Interpolators.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Interpolator interpolator, eyeInterpolator1, eyeInterpolator2;
2222
Node shape;
2323
boolean showEyePath = true;
2424

25-
//Choose P3D for a 3D scene, or P2D or JAVA2D for a 2D scene
25+
//Choose P2D or P3D
2626
String renderer = P3D;
2727

2828
void setup() {

‎examples/basics/SceneBuffers/SceneBuffers.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import nub.processing.*;
1515
Scene scene;
1616
Node[] shapes;
1717

18-
//Choose one of P3D for a 3D scene or P2D for a 2D one.
18+
//Choose P2D or P3D
1919
String renderer = P3D;
2020
int w = 1000;
2121
int h = 1000;

‎examples/demos/CustomEyeInteraction/CustomEyeInteraction.pde‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*
1515
* The eye key mode has the following bindings:
1616
*
17-
* 'u' and 'd': translate the eye along its Z-axis.
1817
* UP and DOWN arrows: translate the eye forward-backward
1918
* LEFT and RIGHT arrows: translate the eye left-right
2019
* UP and DOWN + SHIFT: rotate the eye up and down
@@ -56,8 +55,6 @@ void setup() {
5655

5756
void draw() {
5857
background(0);
59-
scene.drawAxes();
60-
//lights();
6158
fill(200);
6259
noStroke();
6360
textureMode(IMAGE);

‎examples/demos/CustomNodeInteraction/CustomNodeInteraction.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Node[] shapes;
2424
PFont font36;
2525
int totalShapes;
2626

27-
//Choose FX2D, JAVA2D, P2D or P3D
27+
//Choose P2D or P3D
2828
String renderer = P3D;
2929

3030
void settings() {

‎examples/demos/DepthMap/DepthMap.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void draw() {
8383
if (scene.isTagValid("light")) {
8484
shadowMap.beginDraw();
8585
shadowMap.background(140, 160, 125);
86-
scene.render(shadowMap, shadowMapType, scene.node("light"), zNear, zFar);
86+
Scene.render(shadowMap, shadowMapType, scene.node("light"), zNear, zFar);
8787
shadowMap.endDraw();
8888
// 3. Display shadow map
8989
scene.beginHUD();

‎examples/demos/MiniMap/MiniMap.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ boolean interactiveEye;
2828
int w = 1200;
2929
int h = 1200;
3030

31-
//Choose FX2D, JAVA2D, P2D or P3D
31+
//Choose P2D or P3D
3232
String renderer = P2D;
3333

3434
void settings() {

‎examples/demos/ShadowMapping/ShadowMapping.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void draw() {
158158
shadowMap.beginDraw();
159159
shadowMap.noStroke();
160160
shadowMap.background(0xffffffff); // Will set the depth to 1.0 (maximum depth)
161-
scene.render(shadowMap, shadowMapType, light, zNear, zFar);
161+
Scene.render(shadowMap, shadowMapType, light, zNear, zFar);
162162
shadowMap.endDraw();
163163

164164
// 2. Render the scene from the scene.eye() node

0 commit comments

Comments
 (0)