Author Topic: Optics  (Read 16178 times)

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Optics
« on: August 23, 2005, 09:21:55 AM »
I know Carlo will hate this but I think color recognition would be a real cool thing to add.
Team it up with a command for changing your own color and it is even more useful.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Optics
« Reply #1 on: August 23, 2005, 01:43:12 PM »
it seem to have quite some good feed back. But as I explained before you could change ur Color while you live (with cost of energy depending on how graet the change is) but also that if we have deepth where no light reaches they would be color less, its no use so why waste energy on it then? but then they could glow and other bots could see it. nums a question, could you make it so it follow the square rule like in real life? and do you ppl want it to be square like in pur 3d universe or linear like in 2d that db is?
« Last Edit: August 23, 2005, 01:54:56 PM by zelos »
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Optics
« Reply #2 on: August 23, 2005, 04:42:19 PM »
Depth would be a great feature to use in pond mode where we already have a light gradient that controls the feeding rate of veggies.

I like the darkness and glowing bots idea in this scenario. It could be combined with color/light vision such that none of the refvars would work in complete darkness and only bioluminescence can be seen.

We can make Angler bots with glowing lures  :D
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Optics
« Reply #3 on: August 23, 2005, 05:40:52 PM »
If you wana talk realistic we should have real dna , real protines , real molecules , and 3D. Good Bye Computer speed, have FUN!

 :evil: Bau

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Optics
« Reply #4 on: August 23, 2005, 06:53:06 PM »
The depth gradient for eye range isn't terribly difficult.  The harder part is the biolumiescence, because it would tend to be fairly computationally expensive depending on how you do it.

Let me think about it for a bit.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Optics
« Reply #5 on: August 24, 2005, 12:57:12 AM »
bot you maniac. sure it would be fun to have those but that is not possible today. maybe in a distant future its possible but now not so dont be so damn ironic.

how do you mean nums?
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Optics
« Reply #6 on: August 24, 2005, 03:22:01 PM »
Quote
The depth gradient for eye range isn't terribly difficult. The harder part is the biolumiescence, because it would tend to be fairly computationally expensive depending on how you do it.
I don't think so.
Just adjust their color towards black as they get deeper by multiplying the base RGB by a depth factor so that beyond a certain level they become all black.
Bioluminescence will just multiply the RGB by another factor, determined by the chosen bioluminescence factor of the robot.
Simple.

Also lets a robot choose to glow red, white, blue, yellow or any pale color.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Optics
« Reply #7 on: August 24, 2005, 05:09:32 PM »
If we assume that all bots cannot be seen further than the 12 bot lengths or whatever that's standard now, then the problem becomes considerably easier.

So the idea is that a bot has a minimal (and maybe maximal) level to detect R,G, and B values?  How do we handle bots that are actually all black?  Are we assuming they're invisible?  Do we calculate a color at a certain depth and have the difference of the bots color to that?

Just thoughts.  I'll admit it would be neat to have a bunch of white dots floating around because the bots are all perfectly blended into their environment.

We'll need a formula that factors in relative motion, color of the bot, background color (which is effected by depth I'd assume), and how sensitive the looking bot's eyes are.  Unless I've missed something.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Optics
« Reply #8 on: August 24, 2005, 05:31:44 PM »
Missed something?

I think you may be overcomplicating it.

Here is a simple suggestion. Instead of a bot always seeing what is in its eyes, make it only do so on a percentage basis. On some cycles it will see and on some it won't.
In normal light this will be 100% but as the amount of light reflected or created by the target bot decreases, it is not always seen. At zero light (blends into the background perfectly) it cannot be seen at all.

This system will also allow chameleon bots to blend with the background color at a cost.
A further mod would be to allow bots to boost their vision, allowing them to see better in bad light but worse in full light where their eyes will become saturated.

Opens up quite a few cans of worms really.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Optics
« Reply #9 on: August 24, 2005, 05:55:58 PM »
I'm not much for non-deterministic vision.  I'd vote to decrease range that a bot can be seen as the light level decreases.  Are we having bots have color vision or not?  If bots' vision is black and white it makes some things a bit easier.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Optics
« Reply #10 on: August 24, 2005, 06:17:28 PM »
I kind of like color vision actually.
I see your point about the non deterministic vision though.
Maybe sight range should be proportional to the luminosity of the target minus the background light.  (light difference or more accurately color difference)
Use an upper and lower fixed cap to determine if a bot is seen or not.
Allow bots to adjust their own sensitivity to light. ie. shift the working visibility window up or down.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Optics
« Reply #11 on: August 24, 2005, 06:24:15 PM »
That's more or less what I was thinking.  Just need an actual formula to start working from.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Optics
« Reply #12 on: August 24, 2005, 07:02:07 PM »
Well all the colors return an RGB value and the bots already have a color property stored in a long variable. Shouldn't be too hard. Add the RGB components Higher numbers make brighter colors.
If memory locations can be changed to long as well then bots can also have a direct color sense too.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Optics
« Reply #13 on: August 24, 2005, 07:06:57 PM »
Changing bot memory to long means alot of incredibly large and pointless numbers.  Which is something I'd rather not even mess with.

Storing R,G and B values seperately might be a better idea.  And then also store a value representing total emitted + reflected light.  Such a value would probably not be larger than 1800 (and that would be a white bot glowing as hard as it can).

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Optics
« Reply #14 on: August 24, 2005, 11:13:19 PM »
Ohh...Pretty Colors.

Seriously I like the idea since it will give me some nice markers to see what is happening. Sort of like using radiation to track cells.