Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
How can I get the global position of a single point of curve, which is branc

How can I get the global position of a single point of curve, which is branc

2004-02-23       - By Sebastian Faber

 Back
Reply:     1     2  

Thank you very much - that's what I was looking for.

I'm not very firm with matrix transformation yet (anymore), so it is
possible to get the global position of the center of an object deformed on a
curve?. Of course the center of an object wich is deformed rests in the
middle of the world space - but maybe it is possible to compute the deformed
position of the center.

Sebastian



-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf
Of Helge Mathee
Sent: Saturday, February 21, 2004 2:31 PM
To: XSI@(protected)
Subject: Re: How can I get the global position of a single point of
curve, which is branch deformed on an other curve?


you have to multiply by the global transformation of the object.

jscript:

var geo = obj.activeprimitive.geometry;
var pnts = geo.points;
var transform = obj.kinematics.global.transform;
var pntPos = pnts.item(index).position;
var pntPos.MulByTransformationInPlace(transform);

cheers,
-h

-- -- Original Message -- --
From: "Sebastian Faber" <sebastian.faber@(protected)>
To: <XSI@(protected)>
Sent: Saturday, February 21, 2004 1:37 PM
Subject: How can I get the global position of a single point of curve, which
is branch deformed on an other curve?


> I have a curve deformed on another curve via branch deformation. How can I
> get the GLOBAL position of a single Point of this deformed curve?
>
> Any hints are welcome
>
> Sebastian
>
>
>
>
>
> to get the global position of a point of a undeformed geometry would be
like
> this:
>
>   set oTrans  = oCube.Kinematics.Local.Transform
>   set oPoint  = oCube.ActivePrimitive.Geometry.Points(0)
>   set oPos    = oPoint.Position
>   logmessage "The local position is: X "& oPos.X & " Y " & oPos.Y & " Z "
&
> oPos.Z
>   set oGlobalPos = XSIMath.MapObjectPositionToWorldSpace( oTrans, oPos)
>   logmessage "The world position is: X "& oGlobalPos.X & " Y " &
> oGlobalPos.Y & " Z " &   oGlobalPos.Z
>
>
>
> LIGA_01 COMPUTERFILM GmbH
> Sebastian Faber
> Landwehrstrasse 60
> D - 80336 Munich - Germany
>
> sebastian.faber@(protected)
> www.liga01.com
>
>
>
> ---
> Unsubscribe? Mail Majordomo@(protected) with the following text in body:
> unsubscribe xsi
>

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi