AWS Thinkbox Discussion Forums

req > submit ply2vrmesh sequence

For realflow .bin files to create vray velocity maps they need to be converted to .vrmesh files > http://help.chaosgroup.com/vray/help/200R1/tools_ply2vrmesh.htm
I tried to do this with the commandline submit tool, but don’t get how to enforce a frame range with it.

would it be possible to add this feature sometime in the future?

would be very useful :slight_smile:

thanks!

Can you post an example of the command line you’re trying to run, and show how you’re submitting it to Deadline? It should be possible to do what you want, but we just need more information to confirm.

Thanks!
Ryan

cd C:\Program Files\Chaos Group\V-Ray\3dsmax 2014 for x64\tools ply2vrmesh \directory\*.bin

which is the most basic command and converts the whole directory content to .vrmesh files.
I didn’t get how to set a specific filerange with ply2vrmesh, so just did it locally in the end.
to be honest, I have no clue on how to do these things.
I googled it for 10 minutes yesterday, but only found references to single vrmesh conversions.
Did see somewhere that you can use %04D to define the filename + frame range

so
dir/name_0000.bin to dir/name_0600.bin
should be covered by
dir/name_%04D.bin

But couldn’t get that working properly somehow
could be that it was only for the GUI conversion, not the commandlinetool …
sorry… it was late and I was tired (-6 hours time difference here)

It would be great to have a tool where you can specify the frame range after defining the main bin sequence file and have a output folder + new name option.
I figured it would be great to have in deadline as a realflow sequence can take op to 1-2 hours to convert (depending on frame lenght/mesh size)
More importantly, if it’s in deadline you can already put the render task in queue and make it dependable on the vrmesh conversion.

Not sure how you guys look at the importance of new features before implementing, as I have no clue how many people really need this.
But if you need motionvectors from realflow meshes this is the only method (as far as I’m aware) so I would be happy to have it :smiley:
Sadly I’m not able to help more with it, but if you need something to test/help out, let me know

FYI.

Official ChaosGroup Help is here:
help.chaosgroup.com/vray/help/30 … vrmesh.htm

and this is the available flags:

[code]Coverter of .ply .obj .bin and .geo files to .vrmesh files
Copyright © 2003-2011 by Chaos Group Ltd. All rights reserved.
Build from May 1 2012

Usage:
ply2vrmesh [] [options]
or
ply2vrmesh -info [options]

Arguments:
- .ply .obj .bin .geo or .bgeo file name. The string may
include wildcards.

- .vrmesh file name (extension must be specified). This
string may not include wildcards. If this is not specified
then the output is a file with the same name, but with the
.vrmesh extension. If multiple input files are specified
and is missing, then each input file will be
written to a separate .vrmesh file. If multiple input
files are specified and is also specified,
all input files are sorted in lexic order and concatenated
into one animated .vrmesh file.

Options:
-append - appends the information as a new frame to the .vrmesh file

-smoothNormals - generates smooth vertex normals. Only valid for .obj and
.geo files; always enabled for .bin files

-smoothAngle - a floating point number that specifies the angle (in
degrees) used to distinguish if the normals should be
smoothed or not. If present it automatically enables the
-smoothNormals flag.

-flipNormals - reverses the face normals. Only valid for .obj, .geo and
.bin files

-flipYZ - swap y/z axes. Needed for some programs i.e. Poser, ZBrush.
Valid for .ply, .obj, .geo and .bin files.

-flipYPosZ - same as -flipYZ but does not reverse the sign of the z
coordinate.

-mapChannel - stores the UVW coordinates to the specified mapping
channel (default is 1). Only valid for .obj and .geo files.
When exporting a mesh that will be used in Maya, currently
this must be set to 0 or the textures on the mesh will
not render properly

-materialIDs - only valid for .geo files; assigns material IDs based on
the primitive groups in the file.

-fps - a floating-point number that specifies the frames per
second at which a .geo or .bin file is exported, so that
vertex velocities can be scaled accordingly. The default is
24.0

-previewFaces - specifies the maximum number of faces in the
.vrmesh preview information. Default is 9973 faces.

-facesPerVoxel - specifies the maximum number of faces per voxel
in the resulting .vrmesh file. Default is 10000 faces.

-info - show information about the specified .vrmesh file

-frame - show information about the specified frame from the
.vrmesh file. Indices are 0-based. If this option is not
specified, information is printed for each frame in the
file.[/code]

this is also the info you get when running the command (good point thou… could have copied that here too, tnx!).
But couldn’t believe that it means there is no framerange possible
if I read things correctly the -frame option is only information, not?

Figured that someone would have found some hack using regular cmd commands in combination with the ply2mesh commands (is that even possible ?!)
thought that maybe the deadline cmd submit could set a frame range (“magically”) but couldn’t find it

as I said… am not too familiar with this. :unamused:

Privacy | Site terms | Cookie preferences