When I use a pre-scaled object as a parent for a camera, why does it affect the perspective? Here is an example:
If you run the code, notice that the box is being parented by the scaled ball, and it's dimensions are not affected in anyway.
However, if you uncomment the entityparent line with the camera, suddenly the camera perspective is affected by the scaling on the parent object.
Can anyone explain this?
Graphics3D 640,480,16,2 SetBuffer BackBuffer() cam = CreateCamera() PositionEntity cam, 1, 5, -4 RotateEntity cam, 50, 0, 0 box = CreateCube() ball = CreateSphere() PositionEntity ball, 3, 0, 0 ScaleEntity ball, .25, 1, .25 EntityParent box, ball ;EntityParent cam, ball While Not KeyDown( 1 ) RenderWorld Flip Wend End
If you run the code, notice that the box is being parented by the scaled ball, and it's dimensions are not affected in anyway.
However, if you uncomment the entityparent line with the camera, suddenly the camera perspective is affected by the scaling on the parent object.
Can anyone explain this?