Hi
if you are using the Projector (EX9) node (you shuould) there you have all the necessary info to fill, it should be enough.
Calculate the x or y shift just consider that y shift == 0 the beam is straight from the lens, and the whole height of the projection is == 1
So in the case you show in the image shift-y == .5
Simone
Never knew there was a ‘new’ projector node. Shame this isn’t part of the core release. So yeah… just looked at it, what does it do differently to the old node?
and if we are to have a new projector node, wouldn’t it be a good idea to replace the 16:9 input, with something like projector aspect and have two inputs. I mean I come across a 16:10 projector more often than a 16:9 projector.
the ‘new projector node’ was homography + position (i.e. no other inputs are necessary, no aspect ratio, no throw ratio, no lens offset, no rotation, etc)
most importantly, it was meant to be the end of ‘in a bit, left a bit, out a bit, up a bit’
routines:
most recently, we’ve got CalibrateProjector which uses OpenCV to do the calibration (wraps CalibrateCamera)
before that there was Padé which worked similar to the OpenCV routine, but Padé wasn’t so reliable for some users, and had to be applied in vertex shader.
before that was the new projector node (homography+position)
before that was the old projector node
plenty of people swear by the projector node,
in general i find it inaccurate and time inefficient
but considering its such widespread usage/support, i can’t deny its worth considering
and that it does get results
even if i’m emotionally opposed to it
the file linked before could be a demo of the old projector node
CalibrateProjector is also included in the new EmguCV, but things have changed a little (+OpenNI is a separate download)
I should put together a static mesh mapping demo as well which may be easier applied / a clearer learning tool.
Also it should be simple to wrap that into yet another ‘projector node’ which takes simple inputs and gives simple view and projection outputs (currently the transforms come out in pixel space rather than normalised space, and a separate module corrects it. this could be combined
more simply:
Aka 1:1.4 means that the image base will be one meter width at 1,4 meter distance. the eigth must be calculated depending from your output size ( 19201080, 1024768 ) wich is not the same depending of format. Angle of projector is modifying a lot and this should be don on plans or maquette to calculate you opening.
about center of the image, you have a shift lens option usually.
by experience you should avoid to count on max ratio lenses, and stay around 10% down of max ratio to avoid surprises of opening.
@elliot - arh ok - yeah saw CalibrateProjector and guessed only worked with Kinect. Yeah I now see how this could be used without the Kinect and would effectively replace the projector node although you would still have to use a camera with the setup right?
Hey,
in this one you’ll have to set your source points by :
-Set manually the source ID.
-Middle mouse click in the source renderer to make it active
-Left click to select your point.
Of course this can be enhanced. Like selecting source IDs with keyboard.