My question is this: Is it possible to export all the final animated xGen hair to a cache of my whole animation so I do not have to re-generate all the hair every time I launch a render in batch mode? My understanding is that "Export Patches For Batch Renderer" only exports the mesh that the hair grows off of but not the final hair geometry. Since I have a very large furry creature, it takes a long time to build all the hair geometry, I'd like to bake all the final hair geometry into a cache that I could read back in directly into VRay without having to recompute every time.
Announcement
Collapse
No announcement yet.
Question regarding xGen and VRay
Collapse
X
-
You can experiment with exporting xgen to a vrscene and then importing it back using python post translate. There are 2 ways - from the standard translator options + "Render selected objects only" (in the Render View), or with the XGen VRScene exporter (from XGen -> Preview/Output options). The last one lacks features, but it's idea is exactly to inject vrscene with xgen geometry into vray. We can release it's source code if there is an interest in it, but you will need some programming skills if you want to extend it.V-Ray/PhoenixFD for Maya developer
-
Hi,
we are trying to batch render a scene with V-Ray and Xgen, but we receive the warning: "V-Ray warning: Could not find xgen file for palette "Namespace:scene""
I tried adding the following lines in Post Translate Python Script to import the .vrscene file:
from vray.utils import *
addSceneContent('*PATHTOVRSCENE*\SCENENAME.vrscene ')
Is this the suggested solution? Does it work with namespaces too?
Thanks!!!
Comment
-
The current release of V-Ray will not work when an xgen description is in a namespace or is from a referenced scene. The next service pack will address this issue.
However I am not sure what is the relation between namespaces and vrscene-s. What exactly is it that you want to do?V-Ray for Maya developer
Comment
-
Originally posted by FSGFX View Postis there an eta..`?
By the way - about the question of the original poster - I just finished implementing an easy streamlined version of the 'cache xgen to vrscene' approach which is in today's nightlies if you have access to them - it will be documented in docs.chaosgroup.com when the service pack rolls out.V-Ray for Maya developer
Comment
-
Originally posted by FSGFX View Posthow does the vrscene store the data coming from xgen... like root and tip color..?
The number of control vertices per strand for xgen can be controlled from the xgen window - Primitives => Primitive Attributes => Attr CV Count.
The colors written in the control points are interpolated between root_color and tip_color.
When the rendering starts - after the export - the hair gets tessellated and the colors are interpolated once more linearly between the control points for the new small segments of the strand.V-Ray for Maya developer
Comment
Comment