iamjaideep80 Posted July 31, 2008 Share Posted July 31, 2008 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 Quote Link to comment Share on other sites More sharing options...
atap3d Posted February 16, 2009 Share Posted February 16, 2009 Do you find a solution to this problem? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.