1. Michael Ludwig
  2. ferox

Commits

Michael Ludwig  committed f54cceb

Tweak demos

  • Participants
  • Parent commits aee0ccd
  • Branches default

Comments (0)

Files changed (2)

File ferox-demos/src/main/java/com/ferox/physics/PhysicsTest.java

View file
  • Ignore whitespace
                     e.add(BlinnPhongMaterial.class).getData()
                      .setNormals(geomShape.getNormals());
                     e.add(DiffuseColor.class).getData().setColor(color);
-                    e.add(Transform.class);
 
                     e.add(CollisionBody.class)
                      .getData()
                         bottomWall.getIndexOffset(), bottomWall.getIndexCount());
         wall.add(BlinnPhongMaterial.class).getData().setNormals(bottomWall.getNormals());
         wall.add(DiffuseColor.class).getData().setColor(new ColorRGB(0.5, 0.5, 0.5));
-        wall.add(Transform.class);
 
         wall.add(CollisionBody.class)
             .getData()
             .setTransform(new Matrix4().setIdentity()
                                        .setCol(3, new Vector4(0, -.5, 0, 1)));
 
+        // fog
+        //        system.addEntity().add(AtmosphericFog.class).getData()
+        //              .setOpaqueDistance(3 * BOUNDS).setFalloff(Falloff.EXPONENTIAL_SQUARED)
+        //              .setColor(new ColorRGB());
+
         // ambient light
         system.addEntity().add(AmbientLight.class).getData()
               .setColor(new ColorRGB(.2, .2, .2));
         // a point light
         Entity point = system.addEntity();
         point.add(PointLight.class).getData().setColor(new ColorRGB(0.5, 0.5, 0.5));
-        point.add(Transform.class)
+        point.get(Transform.class)
              .getData()
              .setMatrix(new Matrix4().setIdentity().setCol(3,
                                                            new Vector4(BOUNDS / 2,

File ferox-demos/src/main/java/com/ferox/scene/controller/ffp/SimpleTest.java

View file
  • Ignore whitespace
 import com.ferox.math.bounds.QuadTree;
 import com.ferox.math.entreri.Vector3Property;
 import com.ferox.math.entreri.Vector3Property.DefaultVector3;
+import com.ferox.renderer.DisplayMode;
+import com.ferox.renderer.DisplayMode.PixelFormat;
 import com.ferox.renderer.Framework;
 import com.ferox.renderer.OnscreenSurface;
 import com.ferox.renderer.OnscreenSurfaceOptions;
         Framework framework = (LWJGL ? LwjglFramework.create() : JoglFramework.create());
         OnscreenSurface surface = framework.createSurface(new OnscreenSurfaceOptions().setWidth(800)
                                                                                       .setHeight(600)
+                                                                                      .setFullscreenMode(new DisplayMode(1440,
+                                                                                                                         900,
+                                                                                                                         PixelFormat.RGB_24BIT))
                                                                                       .setResizable(false));
         //        surface.setVSyncEnabled(true);