Changes between Version 13 and Version 14 of PluginMenu


Ignore:
Timestamp:
Mar 8, 2013, 12:08:01 PM (12 years ago)
Author:
marie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PluginMenu

    v13 v14  
    6868}}}
    6969
    70 '''Using Factories'''
     70'''Using ObjectGeometry Factories'''
    7171
    72 Beside Plugins, Factories can be added to Morphanalyser for personalized tasks. Factories are added in the same way as Plugins. If the selected jar contains one or more classes implementing a particular Factory, a new selectable factory is added to the Plugins menu (in Factories submenu).
     72In order to support more advanced rendering (e.g. normal maps etc.) the ObjectGeometry class can be extended.  The system uses an ObjectGeometryFactory class to create instances of the particular ObjectGeometry subclass.  Factories are added in the same way as Plugins. If the selected jar contains one or more classes implementing a particular Factory, a new selectable factory is added to the Plugins menu (in Factories submenu).
    7373
    7474Morphanalyser uses Factories to specify the way that the 3D objects are loaded and rendered. The default Factory (installed by default) is DefaultObjectGeometryFactory. It makes Morphanalyser load a geometry and render it with only one texture. This file needs to be in the same directory as the object file and have the same base name. For example, if we want to open an object whose name is "face.obj", its corresponding texture must be located in the same directory, with the name "face.jpg" or "face.bmp".
    7575
    76 There is another Factory that can be used for multitexture rendering ( MultiTextureObjectGeometryFactory ). It is included in the MorphAnalyserPlugins (so if MorphAnalyserPlugins.jar is added as plugin, another factory will appear in the Factories submenu : MultiTextureObjectGeometryFactory ). It implements a bump mapping rendering technique which requires 4 normal maps (red, green, blue and specular) and 2 textures (diffuse and specular). If selected the folder containing the object to open must also contain a text file with the same base name as the object and the extension ".multi" that says where to find the different normal maps and texture (in the following order: red normal map, green normal map, blue normal map, specular normal map, specular texture and diffuse texture).
     76There is another Factory that can be used for multitexture rendering ( MultiTextureObjectGeometryFactory ). It is included in the MorphAnalyserPlugins (so if MorphAnalyserPlugins.jar is added as plugin, another factory will appear in the Factories submenu : MultiTextureObjectGeometryFactory ). It implements a bump mapping rendering technique which requires 4 normal maps (red, green, blue and specular) and 2 textures (diffuse and specular). If selected the folder containing the object to open must also contain a text file with the same base name as the object and the extension ".multi" that says where to find the different normal maps and texture (in the following order: red normal map, green normal map, blue normal map, specular normal map, specular texture and diffuse texture).  The examples also contain a simpler version which only requires a texture and a normal map.
    7777
    7878