Java 3DTM 1.5: Render To Texture

ROUGH DRAFT: This API is a Work in Progress


This page describes the possible render-to-texture feature in Java 3D 1.5. The main idea is to create new "render-to-texture" subclasses of Canvas3D and View that would render into a texture that could then be used in a scene graph to render into an ordinary on-screen (or off-screen) Canvas3D. We will either need to create special "rendered" subclasses of Texture (e.g., RenderedTexture2D), or add a mode flag to the existing texture classes. The former is cleaner from an API point of view, but the latter is more flexible (e.g., it would allow some mipmap levels of a Texture or faces of a TextureCubeMap to be generated by rendering and others to be specified via an image).

NOTES:

The proposed API is:

Issues:

  1. Can the resulting image be read back to the application?
    [we don't plan to allow this]
  2. What is the best way to ensure that there is a valid source of all mipmap levels (and all faces of a cube-map)?
  3. Should RenderedTexture be a mode or a subclass?
    [currently proposed to be a subclass]
  4. Since this feature encourages using implicit mipmap generation, we need to file an RFE to implement implicit mipmap generation using OpenGL HW mipmap generation.

Page last updated — $Date$