Eyes

147 views
Skip to first unread message

Nathancyan

unread,
Nov 26, 2011, 2:01:23 PM11/26/11
to scrip...@googlegroups.com
Ummmmmm..... well I was wondering how you made the eyes for the bots. I mean can they actully see red,green,and blue? And if they can how did you do that? This program in just so advanced, I really want to know this stuff. And how could you make connections in the brain of the bot? If you can awnser these questions I really apprictiate it. 

Andrej

unread,
Nov 26, 2011, 2:58:37 PM11/26/11
to scrip...@googlegroups.com
They do "see" red green and blue colors in that they have 3 "eyes": on
left, right, and one in the back. Every eye should really be thought
of as a tiny single photoreceptor that is sensitive to the three
colors separately.

For example, the red receptor in the left eye gets activated if there
is anything slightly to the left of the bot, extending outwards in a
cone. The further back the stimulus comes from, the weaker the
response in the receptor will be.

So basically, say one eye points in direction 30 degrees to the left
of the agent, then:
1. find all red things that are between 10 and 50 degrees relative to
that agent,
2. find distance of all those red things to the agent
3. for every one of those things, red_activation_left_eye += redness *
a * e^(-b * distance)

so when the distance = 0 (i.e. stimulus right on top of the eye), the
above will become redness * a because e^0 = 1, and when distance goes
to infinity, the activation it contributes goes to 0 because the
decaying exponential function goes to 0.

Your other question about the connections in brain is a bit too vague.
I'll try to make more accessible tutorial for this at some point.

sam...@intim8s.cc.cc

unread,
Jun 1, 2013, 8:19:07 AM6/1/13
to scrip...@googlegroups.com
On your third point, maybe I'm missing something, but I don't see you defining what those variables are.

"  for every one of those things, red_activation_left_eye += redness *
a * e^(-b * distance) "

What is a, e and b?

Sorry, I'm working on a similar program and my eyes are a lot simpler than yours and I would like to adopt this method.

Julian Hershey

unread,
Jun 3, 2013, 12:12:35 AM6/3/13
to scrip...@googlegroups.com
I can only say that a is multiplier acting on the eye sensitivity, and e is the standard mathematical exponent. b I don't remember seeing in the code.

Julian Hershey

unread,
Jun 3, 2013, 12:14:34 AM6/3/13
to scrip...@googlegroups.com
sorry, the official term for e is Euler's number, a mathematical constant.

sam...@intim8s.cc.cc

unread,
Jun 3, 2013, 4:30:59 AM6/3/13
to scrip...@googlegroups.com


On Monday, June 3, 2013 7:12:35 AM UTC+3, Julian Hershey wrote:
I can only say that a is multiplier acting on the eye sensitivity, and e is the standard mathematical exponent. b I don't remember seeing in the code.
So a is a constant? Thanks with all the help. I'll also check out the source. 
Reply all
Reply to author
Forward
0 new messages