Jump to content

Mantra Vray Procedural Transformation Problem


Recommended Posts

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

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...