HQRender

From Meshlab

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:27, 27 October 2009
Mancinig (Talk | contribs)
(How to create a new template)
← Previous diff
Current revision
Mancinig (Talk | contribs)
(How to make a HQ image)
Line 26: Line 26:
'''Name:''' the name of result image '''Name:''' the name of result image
 +
 +'''Number of frame:''' if >0 create an animation (a rotation around the scene).
After few seconds will begin the rendering by Aqsis. After few seconds will begin the rendering by Aqsis.

Current revision

The plugin allow to make an high quality image of a mesh into a selected scene (template).

Contents

How to make a HQ image

What you need

(Win users)

To render image you need to download Aqsis (get it at http://sourceforge.net/projects/aqsis/files/) and install them.

Maybe needed to set the environment variable AQSISHOME with the installation directory


(Linux/Mac users)

to do..

Creating an image

Open a mesh, them select the filter and set the parameters:

Format x and y: set the resolution of result image

Pixel aspect ratio: set the pixel aspect ratio of result image

Auto-scale image: if checked resize the mesh to default dimension

Align (x,y,z): choose how the mesh will be positioned respect the default limits

Scene: choose the scene where the mesh will be rendered

Name: the name of result image

Number of frame: if >0 create an animation (a rotation around the scene).

After few seconds will begin the rendering by Aqsis.

The result image will be copied in the same directory of the mesh.

How to create a new template

What you need

To create a new template you need only a scene written following the RenderMan Interface Specification (RIS) in a one or more rib files.

The scene must be in a folder with the same name and positioned in meshlab/scr/meshlab/render_template.

The scene must have an object with the name "dummy". This mean that there must be the follow instruction:

AttributeBegin
 ....
 Attribute "identifier" "string name" [ "dummy" ]
 ....
 Transform [ ... ] (without this the mesh will be positioned in the center of scene)
 ....
 Bound [ ... ] (needed for auto-scale and align)
 ...
AttributeEnd

other statement will be ignored. This object will be replaced with the conversion of actual opened mesh.


(file per specificare i parametri di default?)


How to create a scene with Blender

Download Blender at http://www.blender.org/download/get-blender/ (latest version) and install them. Download Python at http://www.python.org/download/ (the version that compiled Blender) and install them. Download Mosaic at http://sourceforge.net/projects/ribmosaic/ (latest version) and extract the content. Copy the file "mosaic.py" in the Blender script folder.

Create your own scene and add a simple object (if it's a cube is better). His bounding-box representing the limit within the mesh will be positioned (if auto-scale or align parameter is checked). However his center will be about the center of the mesh. Rename the object name with "dummy". Set a blender window with a "Script window" and open the Mosaic plug-in (under Render). Select the parameter that you want (a complete tutorial: http://blendertorenderman.wikidot.com/mosaic-tutorials) and, at least, the output directory and the render preset (Aqsis is recommended).

Personal tools