On Dec 11, 2007 11:55 AM, Patrick Ye <[EMAIL PROTECTED]> wrote: > Hi guys, > > This seems like a really silly question but I just have no idea what > to do. I'd like to be able to scale an iMeshWrapper object by m times > along the X-axis, n times along the Y-axis and p times by Z axis. I > understand that I should use csTransform or csReversibleTransform, but > I just cannot find the API to do so. I also understand that this is > essentially the same as multiplying a transform/matrix by an diagonal > matrix whose diagonal values are m, n and p, but I cannot seem to find > a function that allows me to do this with any csTransform objects or > objects of its subclasses. So, what should I do? > > Any help is greatly appreciated. >
You can scale transforms just by using the multiplication operator (i.e. *). Note however that CS doesn't support scaling for meshes. Various systems in CS will no longer work correctly on a scaled object (like lighting, visibility culling, ...). So it is not recommended to do this. For what do you need to scale the objects? Greetings, -- Project Manager of Crystal Space (http://www.crystalspace3d.org) and CEL (http://cel.crystalspace3d.org) Support Crystal Space. Donate at https://sourceforge.net/donate/index.php?group_id=649 ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
