   3d scaling serious problem
  Hello Guys, I''m havin'' some serious problems with scaling Direct3D views (it''s more a theoretical problem, than practical). I''m writing an editor which uses multiple viewports in Direct3D. There must be a posibility of scaling these views (top, left, front and max-style perspective view). To do this I''m using direct3D world matrix (worldMat = moveToScalePointMatrix * scaleMatrix * moveBackFromScalePointMatrix). Everything works gr8 but those lights, wrrr!!! They remain in their positions while my objects are changing size (and sometimes position during scaling). I''ve tried to scale light''s position and intensity manually, but I got strange flashes on the lighted objects (lights intensity is not changing smoothly during scaling, besidesm I don''t think it''s a good idea...). Anyone can help me with this problem? Regards, - BlackKnight   
  I don''t understand what you''re trying to do. You want to make the objects bigger but make the lights move away too? Why not move the camera closer?If you scale the object and the light pos (but leave the intensity the same) the result should look the same unless you have falloff. If you have falloff, you need to change that but you should not need to change the intensity.Any reason why you can use direct/parallel lights? (not spotlights or point lights)MarkBytten Independent Games Magazinehttp://www.bytten.com;  Hi,I need to perform scaling a view (like in 3dsmax - perspective view scaling). Camera MUST NOT change its position (so lookFrom and lookAt vector must remain unchanged during scaling).To do this I need to scale viewMatrix. While scaling viewMatrix objects in a 3D-scene change their size (and position), but Direct3D lights remain in their position - that couses wrong lighting. I''ve tried to change lights positions manually (according to my scaling matrix), but still got wrong lighting....- BlackKnight  ;  If I follow what you are trying to do, you need to adjust your projection matrix to zoom in/out. You do this by passing in a smaller/larger fov angle to the dxutil perspective matrix functions.Then just set the correct projection matrix before drawing each view.The lights should be ok, since you are not scaling the world as you are currently doing.Hope this helps.  