[Papervision3D] camera: hover to orbit struggle
aWink
wink at awink.nl
Mon Aug 4 11:03:38 PDT 2008
Hi don...thx 4 replying...
with quaternion is just the way I solved the issue
With Andy Zupko's new blogitem about this subject (http://blog.zupko.info/)
I came on the idea to use this 4 my problem...and it worked. I was able to
calculate the angle and distance to the planes in my object....
With a little moderation I was able to solve it...may be it can help u
2.....
once again..thx
Don_Louro wrote:
>
> Hi Wink, let me see a little bit more. Im not a programmer but
> mathematician and Im working on quaternion.
>
> see you later friend... don
>
>
> aWink wrote:
>>
>> Hi there,
>>
>> currently I'm struggling with the 'new' orbit function...
>>
>> my code looks somthing like this:
>>
>> for(var i:int = 0; i<33; i++){
>> //spmTxt is predefined
>> var plane:Plane = new Plane(spmTxt,100,80,0);
>> plane.useOwnContainer = true;
>>
>> var x_togo:int = (i-16) * 110;
>> var y_togo:int = 100;
>> var z_togo:int = 200;
>>
>> plane.x = x_togo;
>> plane.y = y_togo;
>> plane.z = z_togo;
>>
>> locatorCitieContainer.addChild(plane);
>> }
>>
>> this creates a long row of planes...from left to right..
>> When the user moves the mouse, i want the locatorCitieContainer to rotate
>> a bit (if i move right with the mouse: 0 degrees - 45 degrees rotation /
>> if i move left -45 - 0 degrees..... Also i want the locatorCitieContainer
>> to move left and right so every plane (1 of the 33) can be viewed...
>>
>> (i don't NEED the locatorCitieContainer to move....I mean..not
>> necessarely. I want the viewer to get the experience that it's the planes
>> that are moving..this can be done in 2 ways...locatorCitieContainer
>> moves..or it is the camera that is moving.....)
>>
>> previously I did this with
>>
>> camera.hover....worked flawless and did exactly what it needed to do....
>>
>> now..I know I must use orbit... But I cannot get the d*#&#*mn thing to
>> work. Took me a whole day and night and all i got was my
>> locatorCitieContainer to dissapear from my screen. (ps...material is
>> doublesided)
>>
>> can anybody push me in the right direction...???
>> With regards. Wink
>>
>
>
--
View this message in context: http://www.nabble.com/camera%3A-hover-to-orbit-struggle-tp18778894p18816505.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list