HI……
I am writing a Mantra Vray Procedural. What I want to do is , read a bgeo file, say A,which has some 100 points, and read another bgeo file B, which is to be copied
on the 100 points in geo A.
I am reading file A in pointGdp, and file B in archiveGdp.
and the calls to the mantra functions are like this,
FOR_ALL_GPOINTS(&pointGdp,pointPtr)
{
pointPos = pointPtr->getPos();
xform.identity();
xform.translate(pointPos.x(),pointPos.y(),pointPos.z());
openGeometryObject();
setTransform(xform,0);
addGeometry(archiveGdp, 0);
setSurface(“showst type st”);
closeObject();
}
The problem I am facing is, the object translation is happening in
screen space and not world space. Is there any other special function,
other than “setTransform” to do that???
Even I tried using xform.translate(i,0,0); and incremented “i” each time,
just to check, and it is getting translated in screen space.
Plz Help
Mantra Vray Procedural Transformation Problem
4945 1 1-
- iamjaideep80
- Member
- 82 posts
- Joined: April 2019
- Offline
-
- andrewc
- Member
- 1002 posts
- Joined: July 2005
- Offline
-
- Quick Links