Difference between revisions of "Element:PHOT"

From The Powder Toy
Jump to: navigation, search
(talk)
 
m (Enter a short summary [b])
 
(23 intermediate revisions by 13 users not shown)
Line 1: Line 1:
First of all, as I'm sure most people know from the older versions, photons were limited to only eight directions, up down left and right, and diagonal. They only had one color, white, and could transfer heat between themselves while travelling, going several spaces per frame and giving them the ability to travel through thin substances.
+
{{ infobox Element
 +
| icon = PHOT.png
 +
| longname = Photons
 +
| image =
  
A lot has happened to them now that makes them almost totally different, and a whole lot better.
+
| identifier = DEFAULT_PT_PHOT
 +
| name = PHOT
 +
| description = Refracts through glass, scattered by quartz, and color-changed by different elements. Ignites flammable materials.
 +
| colour = FFFFFF
 +
| menusection = SC_NUCLEAR
 +
| menuvisible = 1
 +
| advection = 0
 +
| airdrag = 0
 +
| airloss = 1
 +
| loss = 1
 +
| collision = -0.99
 +
| diffusion = 0
 +
| explosive = 0
 +
| falldown = 0
 +
| flammable = 0
 +
| gravity = 0
 +
| hardness = 0
 +
| heatconduct = 251
 +
| hotair = 0
 +
| meltable = 0
 +
| state = ST_GAS
 +
| temperature = 1195.15
 +
| weight = -1
 +
| properties = TYPE_ENERGY PROP_LIFE_DEC PROP_LIFE_KILL_DEC
 +
| lowtemperature =
 +
| lowtemperaturetransition =
 +
| hightemperature =
 +
| hightemperaturetransition =
 +
| lowpressure =
 +
| lowpressuretransition =
 +
| highpressure =
 +
| highpressuretransition =
 +
}}
  
'''1. Refraction and Transparency'''
+
Travels in straight lines, refracts through glass, scattered by quartz. Ignites flammable substances such as wood and explosives. Usually used as a medium to transfer heat.
  
[[Transparency| {{http://img507.imageshack.us/img507/9657/transparency.png}}]]
+
The colors of PHOT can be changed when passing through {{MaterialBtn|FILT}}. PHOT wavelengths can be split with a prism of {{MaterialBtn|GLAS}}.
  
Originally photons could pass through liquid crystal, clone (the bottom sphere), and glass. That's still the same, but as the screenshot displays, glass now changes the direction of incoming and outgoing photons and randomly assigns them a different color and speed. Colors on different parts of the spectrum are reflected at different speeds/angles, and so..
+
When traveling through non-pressurized {{MaterialBtn|INVS}}, PHOT turns into {{MaterialBtn|NEUT}}, which go almost as straight as PHOT.
  
 +
When traveling through {{MaterialBtn|HYGN}}, PHOT turns into {{MaterialBtn|PROT}}, which goes in the same direction, as well as {{MaterialBtn|ELEC}}, which goes in a random direction.
  
[[Rainbow1| {{http://img827.imageshack.us/img827/6682/rainbow1.png}}]]
+
When traveling through {{MaterialBtn|BIZR}}/{{MaterialBtn|BIZS}}/{{MaterialBtn|BIZG}}, PHOT will turn into {{MaterialBtn|ELEC}}. This makes electron lasers possible.
  
Rainbows are possible now. Notice that the bar of metal on the screen, Breakable Metal, only reflects 50% of the photons that touch it now, while the other half pass through.  
+
Also, when traveling through deactivated {{MaterialBtn|GPMP}}, PHOT turns into {{MaterialBtn|GRVT}}.
  
[[Image| {{http://imgur.com/GNi25.png}}]]
+
Photons change color when they bounce off of {{MaterialBtn|URAN}}, {{MaterialBtn|PLNT}}, {{MaterialBtn|PLUT}}, {{MaterialBtn|C-4}}, and other elements.
  
Photons now calculate the angle of surfaces they touch, and use that information to determine their new angle, meaning that a photon can change direction while touching a surface depending on pixels that are actually somewhat far away, though the exact distance I can't remember. The pixels it takes this from must at least all touch one another, with some exception (like the diagonals displayed here.) Photons don't check for empty space while calculating angle, so if the pixels wouldn't be found in a flood fill they likely won't affect the end result. Play around with it, you'll see what I mean.  
+
== How To Use ==
 +
 
 +
In early version of TPT, photons were limited to only eight directions, up down left and right, and diagonal. They only had one color, white, and could transfer heat between themselves while traveling, going several spaces per frame and giving them the ability to travel through thin substances. A lot has happened to them in more recent updates that makes them almost totally different, and a whole lot better.
 +
 
 +
=== Refraction and Transparency ===
 +
 
 +
[[File:Transparency.png]]
  
 +
Originally photons could pass through {{MaterialBtn|LCRY}}, {{MaterialBtn|CLNE}}, and {{MaterialBtn|GLAS}}. That's still the same, but as the screenshot displays, glass now changes the direction of incoming and outgoing photons and randomly assigns them a different color and speed. Colors on different parts of the spectrum are reflected at different speeds/angles, and so..
  
[[Image| {{http://img638.imageshack.us/img638/8391/photondelay.png}}]]
+
[[File:Rainbow1.png]]
  
Because photons move more slowly through substances that are transparent to them, you can use elements like liquid crystal to change the position of traveling photons to better suit your needs.
+
Rainbows are possible now. Notice that the bar of {{MaterialBtn|BMTL}} only reflects 50% of the photons that touch it now, while the other half pass through.  
  
'''2. Angle and Reflection'''
+
[[File:GNi25.png]]
  
[[Image| {{http://img38.imageshack.us/img38/8752/rainbow2c.png}}]]
+
Photons now calculate the angle of surfaces they touch, and use that information to determine their new angle, meaning that a photon can change direction while touching a surface depending on pixels that are actually somewhat far away, though the exact distance I can't remember. The pixels it takes this from must at least all touch one another, with some exception (like the diagonals displayed here.) Photons don't check for empty space while calculating angle, so if the pixels wouldn't be found in a flood fill they likely won't affect the end result. Play around with it, you'll see what I mean.  
  
Because of the way refraction works, if you push photons through an angle of glass or solid that is the exact opposite of the previous angle touched, the photons will be moved in the exact direction they started in.
+
[[File:Photondelay.png]]
  
[[Image| {{http://img521.imageshack.us/img521/9453/reflection2.png}}]]
+
Because photons move more slowly through substances that are transparent to them, you can use elements like LCRY to change the position of traveling photons to better suit your needs.
  
There's nothing to stop you from bending photons in any number of ways you like.
+
=== Angle and Reflection ===
 +
 
 +
[[File:Rainbow2c.png]]
  
[[Image| {{http://img263.imageshack.us/img263/3499/reflectionm.png}}]]
+
Because of the way refraction works, if you push photons through an angle of GLAS or other solid that is the exact opposite of the previous angle touched, the photons will be moved in the exact direction they started in.
  
When photons touch an object that has a specific color (besides certain metals), the wavelengths of light that the object does not reflect will no longer appear in the photon that touches it. IE, photons touching plant turn green, touching lava turn red. But if an only-green photon touches lava, it's likely to disappear.
+
[[File:Reflection2.png]]
  
[[Image| {{http://imgur.com/7MfIT.png}}]]
+
There's nothing to stop you from bending photons in any number of ways you like.
  
As a result, you can actually make just about any color you want if you know the right combination of element bounces will produce the color you need. Take Cracker's tiny rainbow gun for example.
+
[[File:Reflectionm.png]]
  
[[Image| {{http://img143.imageshack.us/img143/4660/crackerm.png}}]]
+
When photons touch an object that has a specific color (besides certain metals), the wavelengths of light that the object does not reflect will no longer appear in the photon that touches it. IE, photons touching PLNT turn green, touching LAVA turn red. But if an only-green photon touches LAVA, it's likely to disappear. You can learn more about wavelengths here -> (https://powdertoy.co.uk/Wiki/W/Wavelengths.html).
 +
[[File:7MfIT.png]]
  
'''3. Other tricks'''
+
As a result, you can actually make just about any color you want if you know the right combination of element bounces will produce the color you need. Take Cracker64's tiny rainbow gun for example.
  
[[Image| {{http://img80.imageshack.us/img80/6264/tir1.png}}]]
+
[[File:Crackerm.png]]
  
This is called Total Internal Reflection, when light passes through something and bounces off of its inside. It's easy to do in powder toy now, but the tricky part is finding the correct angle to make it happen with. Light particles will generally get stuck TIR'ing inside of glass if random particles are dropped nearby, even though most of the light will tend to escape.
+
=== Other tricks ===
  
[[Image| {{http://img194.imageshack.us/img194/8762/glowaccum1.png}}]]
+
[[File:Tir1.png]]
  
[[Image| {{http://img40.imageshack.us/img40/4707/glowaccum2.png}}]]
+
This is called total internal reflection, when light passes through something and bounces off of its inside. It's easy to do in TPT now, but the tricky part is finding the correct angle to make it happen with. Photons will generally get stuck TIR'ing inside of GLAS if random particles are dropped nearby, even though most of the photons will tend to escape.  
  
Glow particles now have a use besides looking pretty. They augment photons when they pass through them after a preset amount of time (about one second.) The newly created photons will appear to have a preset color, which depends on the exact temperature of the Glow.  ... It doesn't change the color of already-existing photons, however. It only adds colors to the photons it creates.
+
[[File:Glowaccum1.png]]
  
When Photons travel through glow, glow particles use Life to determine how much longer until they can augment the photons again.
+
[[File:Glowaccum2.png]]
  
[[Image| {{http://img51.imageshack.us/img51/2231/glowcannon.png}}]]
+
GLOW particles now have a use besides looking pretty. They augment photons when they pass through them after a preset amount of time (about one second.) The newly created photons will appear to have a preset color, which depends on the exact temperature of the GLOW. It doesn't change the color of already-existing photons, however. It only adds colors to the photons it creates. When photons travel through GLOW, GLOW particles use life to determine how much longer until they can augment the photons again.
  
Combining Broken Metal, Insulation and very specific temperatures of glow can have interesting effects.
+
[[File:Glowcannon.png]]
  
[[Image| {{http://img833.imageshack.us/img833/980/neutron.png}}]]
+
Combining BRMT, INSL and very specific temperatures of GLOW can have interesting effects.
  
Neutrons, while not photons, are technically related now. Neutrons travelling through glass have a small chance of turning into/generating photons, which isn't immediately obvious due to how blue photons and blue neutrons now look effectively identical.
+
[[File:Neutron.png]]
 +
 
 +
Neutrons (NEUT), while not photons, are technically related now. Neutrons traveling through GLAS have a small chance of turning into/generating photons, which isn't immediately obvious due to how blue photons and blue neutrons now look effectively identical.
  
 
As an example in the above picture, there's a small chamber that contains glass on the left (which permits photons as well as neutrons) and activated liquid crystal on the right (which permits photons but reflects neutrons.)
 
As an example in the above picture, there's a small chamber that contains glass on the left (which permits photons as well as neutrons) and activated liquid crystal on the right (which permits photons but reflects neutrons.)
  
[[Image| {{http://img193.imageshack.us/img193/3853/neutron2.png}}]]
+
[[File:Neutron2.png]]
  
 
So, by pouring neutrons into one end, photons come out the other end. This effect is called Cherenkov radiation.  
 
So, by pouring neutrons into one end, photons come out the other end. This effect is called Cherenkov radiation.  
  
[[Image| {{http://img155.imageshack.us/img155/9922/photoelectric.png}}]]
+
[[File:Photoelectric.png]]
 +
 
 +
And finally, photoelectricity. When photons touch PSCN which is touching NSCN, SPRK is created.
 +
 
 +
[[File:51401347.png]]
  
And finally, photo electricity. When light particles touch PSCN which is touching NSCN in a certain combination, spark results.
+
This new element, FILT, changes the colors of incoming photons depending on its temperature and other properties. The image here shows three different colors and the resulting photon colors. For more advanced usage of FILT, check [[Element:FILT]].
This means fancy tricks aren't needed anymore to produce sparks from photons.
 
  
[[Image| {{http://img684.imageshack.us/img684/4200/51401347.png}}]]
+
== List of elements that will reflect PHOT with a different colour ==
  
This new element, Filter, changes the colors of incoming photons -unconditionally- depending on its temperature. The image here shows three different colors and the resulting photon colors.
+
{|border="1" cellpadding="5" cellspacing="0"
 +
| Element
 +
| Reflected Value(HEX)
 +
| Reflected Value(BIN)
 +
| Preview
 +
|-
 +
| [[File:ACID.png|link=Element:ACID]]
 +
| 0x1FE001FE
 +
| 0011111111000000000000111111110
 +
| style="background: #000000;" | <span style="color: #FF00FF">███</span>
 +
|-
 +
| [[File:BCOL.png|link=Element:BCOL]]
 +
| Absorbed
 +
| Absorbed
 +
| style="color: #FFFFFF; background: #000000;" | Absorbed
 +
|-
 +
| [[File:COAL.png|link=Element:COAL]]
 +
| Absorbed
 +
| Absorbed
 +
| style="color: #FFFFFF; background: #000000;" | Absorbed
 +
|-
 +
| [[File:DUST.png|link=Element:DUST]]
 +
| 0x3FFFFFC0
 +
| 0111111111111111111111111000000
 +
| style="background: #000000;" | <span style="color: #FFFFEF">███</span>
 +
|-
 +
| [[File:GOLD.png|link=Element:GOLD]]
 +
| 0x3C038100
 +
| 0111100000000111000000100000000
 +
| style="background: #000000;" | <span style="color: #FFFF89">███</span>
 +
|-
 +
| [[File:GOO.png|link=Element:GOO]]
 +
| 0x3FFAAA00
 +
| 0111111111110101010101000000000
 +
| style="background: #000000;" | <span style="color: #FFFF73">███</span>
 +
|-
 +
| [[File:LAVA.png|link=Element:LAVA]]
 +
| 0x3FF00000
 +
| 0111111111100000000000000000000
 +
| style="background: #000000;" | <span style="color: #FF6700">███</span>
 +
|-
 +
| [[File:NBLE.png|link=Element:NBLE]]
 +
| 0x3FFF8000
 +
| 0111111111111111000000000000000
 +
| style="background: #000000;" | <span style="color: #FFFF00">███</span>
 +
|-
 +
| [[File:NITR.png|link=Element:NITR]]
 +
| 0x0007C000
 +
| 0000000000001111100000000000000
 +
| style="background: #000000;" | <span style="color: #B1FF00">███</span>
 +
|-
 +
| [[File:NSCN.png|link=Element:NSCN]]
 +
| Absorbed
 +
| Absorbed
 +
| style="color: #FFFFFF; background: #000000;" | Absorbed
 +
|-
 +
| [[File:C-4.png|link=Element:C-4]]
 +
| 0x1F00003E
 +
| 0011111000000000000000000111110
 +
| style="background: #000000;" | <span style="color: #FF00FF">███</span>
 +
|-
 +
| [[File:PLNT.png|link=Element:PLNT]]
 +
| 0x0007C000
 +
| 0000000000001111100000000000000
 +
| style="background: #000000;" | <span style="color: #B1FF00">███</span>
 +
|-
 +
| [[File:PLUT.png|link=Element:PLUT]]
 +
| 0x001FCE00
 +
| 0000000000111111100111000000000
 +
| style="background: #000000;" | <span style="color: #D7FFD7">███</span>
 +
|-
 +
| [[File:POLO.png|link=Element:POLO]]
 +
| 0x000FF200
 +
| 0000000000011111111001000000000
 +
| style="background: #000000;" | <span style="color: #BFFF5F">███</span>
 +
|-
 +
| [[File:PSCN.png|link=Element:PSCN]]
 +
| Absorbed
 +
| Absorbed
 +
| style="color: #FFFFFF; background: #000000;" | Absorbed
 +
|-
 +
| [[File:SNOW.png|link=Element:SNOW]]
 +
| 0x03FFFFFF
 +
| 0000011111111111111111111111111
 +
| style="background: #000000;" | <span style="color: #FFFFFF">███</span>
 +
|-
 +
| [[File:SPRK.png|link=Element:SPRK]]
 +
| Absorbed
 +
| Absorbed
 +
| style="color: #FFFFFF; background: #000000;" | Absorbed
 +
|-
 +
| [[File:URAN.png|link=Element:URAN]]
 +
| 0x003FC000
 +
| 0000000001111111100000000000000
 +
| style="background: #000000;" | <span style="color: #FFFF00">███</span>
 +
|}

Latest revision as of 22:22, 7 October 2024

PHOT.png Photons
Properties
Section Radioactive
Spawn temperature 922°C
Heat Conductivity 100%
Relative weight -1
Gravity 0
Acid dissolve rate 0%
Flammability 0
State Energy particle
Misc properties
Source code


Travels in straight lines, refracts through glass, scattered by quartz. Ignites flammable substances such as wood and explosives. Usually used as a medium to transfer heat.

The colors of PHOT can be changed when passing through FILT.png. PHOT wavelengths can be split with a prism of GLAS.png.

When traveling through non-pressurized INVS.png, PHOT turns into NEUT.png, which go almost as straight as PHOT.

When traveling through HYGN.png, PHOT turns into PROT.png, which goes in the same direction, as well as ELEC.png, which goes in a random direction.

When traveling through BIZR.png/BIZS.png/BIZG.png, PHOT will turn into ELEC.png. This makes electron lasers possible.

Also, when traveling through deactivated GPMP.png, PHOT turns into GRVT.png.

Photons change color when they bounce off of URAN.png, PLNT.png, PLUT.png, C-4.png, and other elements.

How To Use

In early version of TPT, photons were limited to only eight directions, up down left and right, and diagonal. They only had one color, white, and could transfer heat between themselves while traveling, going several spaces per frame and giving them the ability to travel through thin substances. A lot has happened to them in more recent updates that makes them almost totally different, and a whole lot better.

Refraction and Transparency

Transparency.png

Originally photons could pass through LCRY.png, CLNE.png, and GLAS.png. That's still the same, but as the screenshot displays, glass now changes the direction of incoming and outgoing photons and randomly assigns them a different color and speed. Colors on different parts of the spectrum are reflected at different speeds/angles, and so..

Rainbow1.png

Rainbows are possible now. Notice that the bar of BMTL.png only reflects 50% of the photons that touch it now, while the other half pass through.

GNi25.png

Photons now calculate the angle of surfaces they touch, and use that information to determine their new angle, meaning that a photon can change direction while touching a surface depending on pixels that are actually somewhat far away, though the exact distance I can't remember. The pixels it takes this from must at least all touch one another, with some exception (like the diagonals displayed here.) Photons don't check for empty space while calculating angle, so if the pixels wouldn't be found in a flood fill they likely won't affect the end result. Play around with it, you'll see what I mean.

Photondelay.png

Because photons move more slowly through substances that are transparent to them, you can use elements like LCRY to change the position of traveling photons to better suit your needs.

Angle and Reflection

Rainbow2c.png

Because of the way refraction works, if you push photons through an angle of GLAS or other solid that is the exact opposite of the previous angle touched, the photons will be moved in the exact direction they started in.

Reflection2.png

There's nothing to stop you from bending photons in any number of ways you like.

Reflectionm.png

When photons touch an object that has a specific color (besides certain metals), the wavelengths of light that the object does not reflect will no longer appear in the photon that touches it. IE, photons touching PLNT turn green, touching LAVA turn red. But if an only-green photon touches LAVA, it's likely to disappear. You can learn more about wavelengths here -> (https://powdertoy.co.uk/Wiki/W/Wavelengths.html). 7MfIT.png

As a result, you can actually make just about any color you want if you know the right combination of element bounces will produce the color you need. Take Cracker64's tiny rainbow gun for example.

Crackerm.png

Other tricks

Tir1.png

This is called total internal reflection, when light passes through something and bounces off of its inside. It's easy to do in TPT now, but the tricky part is finding the correct angle to make it happen with. Photons will generally get stuck TIR'ing inside of GLAS if random particles are dropped nearby, even though most of the photons will tend to escape.

Glowaccum1.png

Glowaccum2.png

GLOW particles now have a use besides looking pretty. They augment photons when they pass through them after a preset amount of time (about one second.) The newly created photons will appear to have a preset color, which depends on the exact temperature of the GLOW. It doesn't change the color of already-existing photons, however. It only adds colors to the photons it creates. When photons travel through GLOW, GLOW particles use life to determine how much longer until they can augment the photons again.

Glowcannon.png

Combining BRMT, INSL and very specific temperatures of GLOW can have interesting effects.

Neutron.png

Neutrons (NEUT), while not photons, are technically related now. Neutrons traveling through GLAS have a small chance of turning into/generating photons, which isn't immediately obvious due to how blue photons and blue neutrons now look effectively identical.

As an example in the above picture, there's a small chamber that contains glass on the left (which permits photons as well as neutrons) and activated liquid crystal on the right (which permits photons but reflects neutrons.)

Neutron2.png

So, by pouring neutrons into one end, photons come out the other end. This effect is called Cherenkov radiation.

Photoelectric.png

And finally, photoelectricity. When photons touch PSCN which is touching NSCN, SPRK is created.

51401347.png

This new element, FILT, changes the colors of incoming photons depending on its temperature and other properties. The image here shows three different colors and the resulting photon colors. For more advanced usage of FILT, check Element:FILT.

List of elements that will reflect PHOT with a different colour

Element Reflected Value(HEX) Reflected Value(BIN) Preview
ACID.png 0x1FE001FE 0011111111000000000000111111110 ███
BCOL.png Absorbed Absorbed Absorbed
COAL.png Absorbed Absorbed Absorbed
DUST.png 0x3FFFFFC0 0111111111111111111111111000000 ███
GOLD.png 0x3C038100 0111100000000111000000100000000 ███
GOO.png 0x3FFAAA00 0111111111110101010101000000000 ███
LAVA.png 0x3FF00000 0111111111100000000000000000000 ███
NBLE.png 0x3FFF8000 0111111111111111000000000000000 ███
NITR.png 0x0007C000 0000000000001111100000000000000 ███
NSCN.png Absorbed Absorbed Absorbed
C-4.png 0x1F00003E 0011111000000000000000000111110 ███
PLNT.png 0x0007C000 0000000000001111100000000000000 ███
PLUT.png 0x001FCE00 0000000000111111100111000000000 ███
POLO.png 0x000FF200 0000000000011111111001000000000 ███
PSCN.png Absorbed Absorbed Absorbed
SNOW.png 0x03FFFFFF 0000011111111111111111111111111 ███
SPRK.png Absorbed Absorbed Absorbed
URAN.png 0x003FC000 0000000001111111100000000000000 ███