46
Support / Re: Puzzled by Project3D2D
« on: September 26, 2008, 06:56:18 pm »
Here's (part of) the buffer showing spheres at the origin and on the x,y,z axes;
but
The sphere is clearly on screen so why doesn't projectCenter3D2D or project3D2D give me the screen co-ords?
but
Code: [Select]
SimpleVector svp=Interact2D.projectCenter3D2D(renderBuffer,originSphere);
andCode: [Select]
SimpleVector svp=Interact2D.project3D2D(camera,frameBuffer,new SimpleVector(0,0,0));
both return null!The sphere is clearly on screen so why doesn't projectCenter3D2D or project3D2D give me the screen co-ords?