1. A video projector device, comprising: a light source which emits visible light; a driver which drives the light source; at least one optical component which projects the visible light in a field of view; a sensor which senses visible light, including visible light which is reflected from at least one object in the field of view, the sensor comprises a plurality of pixels; and at least one control circuit which provides a gated sub-frame in which the light source is driven in a pulsed mode while the sensor is operated in a gated mode, followed by the light source being driven in a continuous mode while the sensor is read to obtain light intensity values, where the at least one control circuit derives depth data regarding the at least one object in the field of view based on the light intensity values, using a time-of-flight principle.