Java Programing

May 3, 2007

/** * Get the current View Angle used

Filed under: Java 3D Programming — webmaster @ 6:41 pm

/** * Get the current View Angle used by the RenderEngine. View * angles are expressed in degrees. */ public Vector3d getLightAngle(); /** * Set the current View Angle used by the RenderEngine. */ public void setLightAngle( Vector3d angle ); /** * Set the Screen size used by the RenderEngine. */ public void setScreenSize( int width, int height ); /** * Set the scale used by the RenderEngine. */ public void setScale( double scale ); /** * Get the scale used by the RenderEngine. */ public double getScale(); } The RenderingEngineinterface is implemented by the AwtRenderingEngineclass, which uses simple Graphicsrendering calls (drawPolygon, setColor, drawLine, drawPoint) to render the 3D models. The RenderingEngineinstance is driven by a RenderingSurface, an instance of a JPanelthat provides a Graphicsobject for its client area and receives the frames of the rendered scene. The RenderingSurfaceextends AnimatingSurface, which creates a rendering thread, and calls 24

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost JSP Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting