Use the ply2vrmesh command-line utility to convert files to .vrmesh for rendering with V-Ray.
Overview
The ply2vrmesh command-line utility converts .ply, .obj, .bin, .geo, .bgeo, .hclassic, .bhclassic, .abc, and .vrscene files to .vrmesh files. You can render these with V-Ray using V-Ray Proxy Objects.

Installation
Windows | C:\Program Files\Chaos\V-Ray\V-Ray for SketchUp\extension\vray\bin |
Windows | C:\Program Files\Chaos\V-Ray\V-Ray for SketchUp\extension\vray\bin |
macOS | /Applications/Chaos/V-Ray/V-Ray for SketchUp/extension/vray/bin |
Usage
The following command converts a .ply or .obj file and writes it to the specified .vrmesh file. Include the file extension. The utility does not add it automatically.
> ply2vrmesh <inputFile> <outputFile> [options]
Arguments
inputFile specifies the input file name. Supported formats are .ply, .obj, .bin, .geo (.hclassic), .bgeo (.bhclassic), .abc, .prt and .vrscene. The name can include wildcards.
outputFile specifies the output file name. Include the .vrmesh extension. The name cannot include wildcards. If you omit it, the output uses the input file name with the .vrmesh extension. If you specify multiple input files without <outputFile>, each input file becomes a separate .vrmesh file. If you specify multiple input files and <outputFile>, the utility sorts the input files in lexical order and combines them into one animated .vrmesh file.
Options
-verboseLevel sets the output detail using an integer value: 0 gives no output; 1 shows errors only; 2 shows errors and warnings; 3 shows errors, warnings and informational messages; 4 shows all output. The default is 3.
-append adds the information as a new frame to the .vrmesh file.
-smoothNormals generates smooth vertex normals. It is valid only for .obj and .geo files and is always enabled for .bin files.
-smoothAngle sets the angle in degrees used to decide whether to smooth normals. It takes a floating-point number and automatically enables -smoothNormals.
-flipNormals reverses face and vertex normals. It is valid only for .obj, .geo, .bin and .abc files.
-flipVertexNormals reverses vertex normals. It is valid only for .obj, .geo, .bin and .abc files.
-flipFaceNormals reverses face normals. It is valid only for .obj, .geo, .bin and .abc files.
-flipYZ swaps the y/z axes. Some programs, such as Poser and ZBrush, need this. It is valid for .ply, .obj, .geo and .bin files.
-flipYPosZ works like -flipYZ but keeps the sign of the z coordinate.
-flipXPosZ works like -flipYPosZ but swaps the x/z axes.
-mapChannel <chanIndex> stores UVW coordinates in the specified mapping channel. The default is 1. It is valid only for .obj and .geo files. For a mesh you will use in Maya, you must currently set this to 0 or its textures will not render correctly.
-disableColorSetPacking disables packing of float1 and float2 attributes in vertex colour sets. It is valid only for .geo and .bgeo files.
-materialIDs assigns material IDs based on the file's primitive groups. It is valid only for .geo and .bgeo files.
-materialIDs_splitGroups assigns material IDs based on primitive groups. It splits these groups into separate voxels/meshes that appear in visibility lists. It is valid only for .geo and .bgeo files.
-sortMaterialIDs sorts material IDs by group name. Otherwise, they keep their order from the .geo/.bgeo file. It is valid only for .geo and .bgeo files.
-fps <fpsValue> specifies the export frame rate of a .geo or .bin file so the utility can scale vertex velocities accordingly. It takes a floating-point number. The default is 24.0.
-previewFaces <numFaces> sets the maximum number of faces in the .vrmesh preview. The default is 9973 faces.
-previewType <type> sets the method used to generate a preview.
clustering is very fast but less accurate.
edge_collapse is slower but gives the best results.
combined is fast and gives slightly better results than clustering.
face_sampling copies triangles from the original. It is very fast but leaves a disconnected mesh.
-facesPerVoxel <numFaces> sets the maximum number of faces per voxel in the output .vrmesh file. The default is 10000 faces.
-previewHairs <numHairs> sets the maximum number of hairs in the .vrmesh preview. The default is 500 hairs.
-segmentsPerVoxel <numSegments> sets the maximum number of segments per voxel in the output .vrmesh file. The default is 64000 hairs.
-hairWidthMultiplier <multiplier> sets the multiplier used to scale hair widths in the output .vrmesh file. The default is 1.0.
-previewParticles <numParticles> sets the maximum number of particles in the .vrmesh preview. The default is 20000 particles.
-particlesPerVoxel <numParticles> sets the maximum number of particles per voxel in the output .vrmesh file. The default is 64000 particles.
-particleWidthMultiplier <multiplier> sets the multiplier used to scale particles in the output .vrmesh file. The default is 1.0.
-mergeVoxels merges objects before voxelisation to reduce overlapping voxels.
-velocityAttrName <name> specifies the point attribute used to generate the velocity channel. The default attribute is v.
-pointSize enables point cloud generation and sets the smallest point size. The default is 0.0, which disables point cloud generation.
-velocityOffset <offset> offsets the starting position by a fraction of the velocity channel, for example, -0.25. It is valid only for .geo, .bgeo and .bin files.
-mergeFiles merges all input files into one .vrmesh file.
Specify input files using a wildcard.
You must specify an output file with the .vrmesh extension.
-mergeShaders combines shaders with the same name into one shader when you use -mergeFiles. When merging .obj files, the utility reads the first .mtl file it finds in the directory to determine the material order.
Alembic subdivision options
-subdivideAllMeshes subdivides all Alembic polygonal meshes, including those that are not subdivision objects.
-subdivisionLevel sets the Alembic subdivision level.
-subdivideUVs <value> controls mapping channel subdivision. Use 0 to skip it or 1 to apply it.
-preserveGeomBorders skips subdivision for all geometry borders.
-preserveMapBordersMode <mode> sets which map borders to preserve.
Use "none" to subdivide all map borders.
Use "internal" to preserve internal borders.
Use "all" to preserve all map borders.
Options for *.vrscene files
-vrsceneList lists the available Nodes in the .vrscene file.
-vrsceneNodeName <name> specifies the Node name in the .vrscene file.
You must specify this.
-vrsceneApplyTm applies the Node transform matrix to the mesh.
-vrsceneVelocity generates the velocity channel used for motion blur.
-vrsceneFrames start-end exports the specified animation range.
-vrsceneWholeScene generates a proxy for all geometric objects in the .vrscene file.
General options
-info shows information about the specified .vrmesh file.
-perObject prints additional information for each object in the file. It requires -info.
-frame <frameIndex> exports a specific frame from the file. With -info, it shows information about that frame in the .vrmesh file. Indices are 0-based. If you omit -frame, the utility prints information for each frame in the file.
-oneFramePerFile exports each frame to a separate file.
-padding <padding> sets frame padding between 1 and 10. The default is 4.
Notes
- The converter supports most common .ply formats, including ASCII and binary in big-endian or little-endian byte order.
- The converter recognises faces, vertices and common additional channels such as diffuse surface colour. It recognises vertex colours defined by the vertex properties "red", "green" and "blue", or "diffuse_red", "diffuse_green" and "diffuse_blue".