hi, i am trying to convert two points that are used to render a line from space to screen points like this:
then i tried to render them like this:
but nothing happens
if i do this
the line renders correctly but these are initial 3d points, so the line is rendered in world space...
i am using this to render the line and rectangle that will hold the information about object line points to, so rectangle obviously needs screen space coords, these are converted the same way as above and the Rect appears where it should...so i dont know what is going on here? any ideas?
also i tried this:
and it doesnt render anything when i use startPoint and endPoint, which are in world space, then it renders nice 3D line... i dont know what is happening, this should render in the screen space...