Sorry for posting so much but it seems that I can’t edit posts
.
To be a little bit more precisely:
Say I have a node file (example_nodes.vrscene) that contains 2 objects that form together a larger object
Node pCubeShape1_node {
transform=Transform(Matrix(Vector(0.002164816, 0, 0), Vector(0, 0.002164816, 0), Vector(0, 0, 0.002164816)), Vector(0, 2, 0));
geometry=pCubeShape1_mesh1;
material=phong2_material;
nsamples=1;
visible=1;
}
Node pPyramidShape1_node {
transform=Transform(Matrix(Vector(3.011214, 3.011214, 0), Vector(-4.727885e-016, 9.455771e-016, 4.258501), Vector(3.011214, -3.011214, 1.418366e-015)), Vector(0, 2, 0.4150367785937287));
geometry=pPyramidShape1_mesh2;
material=phong1_material;
nsamples=1;
visible=1;
}
Now I want to have a scene with say 200 of those objects defined above but every one of these objects has a different position in the scene.
Ideally I could combine these two nodes above to one new node that I can manipulate.
So to position one lager object I don’t have to manipulate every single node of said object.
Something like this:
Node newObjectShape_node=Group(
Node pCubeShape1_node {
transform=Transform(Matrix(Vector(0.002164816, 0, 0), Vector(0, 0.002164816, 0), Vector(0, 0, 0.002164816)), Vector(0, 2, 0));
geometry=pCubeShape1_mesh1;
material=phong2_material;
nsamples=1;
visible=1;
}
Node pPyramidShape1_node {
transform=Transform(Matrix(Vector(3.011214, 3.011214, 0), Vector(-4.727885e-016, 9.455771e-016, 4.258501), Vector(3.011214, -3.011214, 1.418366e-015)), Vector(0, 2, 0.4150367785937287));
geometry=pPyramidShape1_mesh2;
material=phong1_material;
nsamples=1;
visible=1;
}
);
So that I can apply a new transformation (in a new node file that includes the example_nodes.vrscene file) on the whole newObjectShape1_node say:
#include "C:/vray_files/example_nodes.vrscene"
Node newObjectShape1_node {
transform=Transform(Matrix(Vector(50.002164816, 0, 0), Vector(0, 0.002164816, 0), Vector(0, 0, 0.002164816)), Vector(0, 5, 0));
}
Node newObjectShape2_node {
transform=Transform(Matrix(Vector(50.002164816, 0, 0), Vector(0, 0.002164816, 0), Vector(0, 0, 0.002164816)), Vector(0, 10, 0));
}
….
Is there any way to do that?
Including the same example_nodes.vrscene file multiple times don’t seem to work because vray only takes one of the node files for rendering.
And if there is one, can you link me the command and/or documentation were I can find some information about this topic (the Chaos Group/V-Ray/Maya 2009 for x64/docs/vrscene_format.html file doesn’t seem to have any information about that)
I really do appreciate your help!
Thanks in advance