HI. I am new to this forum, but not exactly new to Blender. I haven’t used it as much as I would have liked, but I’ve been busy so it kinda fell away from me. Anyway, I am trying to determine how easy it would be use Blender’s BGE to build simulations for simple robotics projects. The new servo type motion actuator looks very promising in this respect.
I do not anticipate Blender to be great at this “out of the box”, but if it is possible to build a useful simulation environment without having to muck about in the source I would be thrilled.
Here’s the question of the day then:
Is it possible to measure the strength of light at a given point in the BGE? I know I can fake it to an extent by measuring the distance to a lamp then applying a fall off factor. Additionally I can check for line of sight with the lamp to guess if the sensor is in shadow, but that does nothing as far as diffuse shadows goes. The point is that all the light calculations are handled by the engine, I just have to access that data somehow to feed it to the sensor.
Anybody got a clue on this?
I checked the API docs but I didn’t see anything useful.
The second question, assuming a negative response to the first then is:
How difficult would it be to make a Python hook in the source code to the rendering data (such as brightness of a measured region)? I have not crawled around in the source yet and am a little concerned about takling something too complex right now. (Too much to do not enough me.)
Cheers and thanks,