[skycastle-commits] SF.net SVN: skycastle: [486] trunk/skycastle/modules/ui/src/main/java/org/ skycastle/sketch

  • From: zzorn@xxxxxxxxxxxxxxxxxxxxx
  • To: skycastle-commits@xxxxxxxxxxxxx
  • Date: Sat, 26 Apr 2008 17:15:19 -0700

Revision: 486
          http://skycastle.svn.sourceforge.net/skycastle/?rev=486&view=rev
Author:   zzorn
Date:     2008-04-26 17:15:19 -0700 (Sat, 26 Apr 2008)

Log Message:
-----------
Okay, there is primitive drawing possible now!  Camera projection needs to be 
implemented, and rendering of additions to a stroke on the fly should be 
implemented.

Modified Paths:
--------------
    
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeRenderer.java
    
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeTool.java

Modified: 
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeRenderer.java
===================================================================
--- 
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeRenderer.java
   2008-04-27 00:02:04 UTC (rev 485)
+++ 
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeRenderer.java
   2008-04-27 00:15:19 UTC (rev 486)
@@ -282,7 +282,7 @@
         final float xPos = strokePoint.getX();
         final float yPos = strokePoint.getY();
         final float zPos = myZ;
-        final float width = strokePoint.getProperty( "width", 5.0f );
+        final float width = strokePoint.getProperty( "width", 0.5f );
 
         final Vector3f positionLeft = new Vector3f( xPos, yPos + width, zPos );
         final ColorRGBA colorLeft = strokePoint.getProperty( "color",

Modified: 
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeTool.java
===================================================================
--- 
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeTool.java   
    2008-04-27 00:02:04 UTC (rev 485)
+++ 
trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/StrokeTool.java   
    2008-04-27 00:15:19 UTC (rev 486)
@@ -134,8 +134,14 @@
         {
             // TODO: Get correct offset and scale (and rotation?) from camera 
to apply to the coordinates to
             // project them to the canvas space.
+/*
             final float x = myStrokeX + getCamera().getLocation().getX();
             final float y = myStrokeY + getCamera().getLocation().getY();
+*/
+            final float x = myStrokeX / 20f;
+            final float y = -myStrokeY / 20f;
+
+
             final StrokePointImpl strokePoint = new StrokePointImpl( x, y );
             strokePoint.setProperty( "tiltX", myStrokeTiltX );
             strokePoint.setProperty( "tiltY", myStrokeTiltY );


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

Other related posts:

  • » [skycastle-commits] SF.net SVN: skycastle: [486] trunk/skycastle/modules/ui/src/main/java/org/ skycastle/sketch