macromedia.director.3d
[Top] [All Lists]

Re: strange transformation

Subject: Re: strange transformation
From: "Erhard Zrust"
Date: Tue, 30 Oct 2007 07:33:11 +0000 UTC
Newsgroups: macromedia.director.3d

[q]I don't know why. if someone can give me a explanation or give me some 
document about the transformation.[/q]

 hm, well, I thought for a long time what you expected, so it would be a lot 
easier to explain what you got.

 did you expect something more like this?

 on beginSprite  
   clearglobals()
   _movie.member(1).resetWorld()
   
   
pModelResource=sprite(1).member.newmodelResource("modelResource",#plane,#back)
   
   Group1=_movie.member(1).newgroup("group1")
   Group1.transform.position=vector(0.0,0.0,0.0)
   Group1.transform.rotation=vector(0.0,45.0,0.0)
   Group1.transform.scale=vector(2.0,1.0,1.0) 
   
   Group2=_movie.member(1).newgroup("group2") 
   Group2.transform.position=vector(0.0,0.0,0.0)
   Group2.transform.rotation=vector(0.0,0.0,0.0)
   Group2.transform.scale=vector(1.0,1.0,1.0)
   Group1.addChild(Group2,#preserveParent) 
   
   pModel=_movie.member(1).newModel("model1",pModelResource)   
   pModel.transform.position=vector(0.0,0.0,0.0)
   pModel.transform.rotation=vector(0.0,0.0,0.0)
   pModel.transform.scale=vector(1.0,1.0,1.0)
   Group2.addChild(pModel,#preserveParent)  
   
   a=pModel.getworldtransform()
   
   
   -- just some code to see something in this test scenario
   --------------------------------------------------------
   pLight = _movie.member(1).newlight("licht", #ambient)  
   _movie.member(1).camera[1].worldposition = vector(0,0,10)
 end


<Prev in Thread] Current Thread [Next in Thread>