Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » [BYOB Project] Lighting Engine 'Tachyon'
- rdococ
-
1000+ posts
[BYOB Project] Lighting Engine 'Tachyon'
(If anyone has conceived this concept before, I promise I did not copy you. Even if our ideas were the same.)
(Unfortunately this engine is not realtime just yet; it is actually relatively slow even in turbo mode.)
Parameters:
X,Y: the coordinates the light will originate from. The more obstacles it is near, the faster.
STEP: the angular gap between each ray. The bigger, the faster. The smaller, the prettier.
START,STOP: the angles at which to start drawing rays and stop drawing rays. The smaller, the faster.
Tachyon is a 2D lighting engine (think lights and objects on an isolated surface) which renders 2D light rays giving the illusion of shadows when the obstacles in the template sprite block it. (It is easy and practical to change this for multiple sprites.)
I am programming a simple lighting engine into BYOB. Basically, there's this magical pen, you run the custom block on it, and slowly but surely it will trace from the centre to the angle range you specify. If there's something in the way, that essentially blocks the rays, creating the illusion of a shadow.
You won't even need to do much else to combine lights. Well, as you can't infinitely run processes, there will be gaps in between the rays that increase the further they go. However, it becomes harder to discern objects when the rays are further apart, thus gives the appeal of being ‘darker’. If two bunches of rays intersect, there will now be more rays hitting the far object; making it easier to discern; thus, ‘brighter’.
The name of the lighting engine as it currently stands, ‘Tachyon’ is only a codename, it may or will change in the future. (Actually, I quite like the name Tachyon. Maybe not?)
Click here to download the ‘Tachyon’ lighting engine.
Possibly frequent questions and complaints and the truthful answers and explanations
(Unfortunately this engine is not realtime just yet; it is actually relatively slow even in turbo mode.)
Parameters:
X,Y: the coordinates the light will originate from. The more obstacles it is near, the faster.
STEP: the angular gap between each ray. The bigger, the faster. The smaller, the prettier.
START,STOP: the angles at which to start drawing rays and stop drawing rays. The smaller, the faster.
Tachyon is a 2D lighting engine (think lights and objects on an isolated surface) which renders 2D light rays giving the illusion of shadows when the obstacles in the template sprite block it. (It is easy and practical to change this for multiple sprites.)
I am programming a simple lighting engine into BYOB. Basically, there's this magical pen, you run the custom block on it, and slowly but surely it will trace from the centre to the angle range you specify. If there's something in the way, that essentially blocks the rays, creating the illusion of a shadow.
You won't even need to do much else to combine lights. Well, as you can't infinitely run processes, there will be gaps in between the rays that increase the further they go. However, it becomes harder to discern objects when the rays are further apart, thus gives the appeal of being ‘darker’. If two bunches of rays intersect, there will now be more rays hitting the far object; making it easier to discern; thus, ‘brighter’.
The name of the lighting engine as it currently stands, ‘Tachyon’ is only a codename, it may or will change in the future. (Actually, I quite like the name Tachyon. Maybe not?)
Click here to download the ‘Tachyon’ lighting engine.
Possibly frequent questions and complaints and the truthful answers and explanations
- It's so slow! Unfortunately, it takes its time. If I set it to atomic, it nearly crashes BYOB.
- Are you sure you didn't copy me? I'm sure. Infact, my inspiration stems from various suggestion topics for… Minecraft.
- Turbo mode is still slow. Why? Again; it runs slowly.
- Optimize it! I tried to optimize it so it would be cloning the pen several times. Unfortunately, something messed up with the directions they were sent in or something.
- I know how to optimize it! By all means, suggest how to optimize the engine and modify my project to your satisfaction!
- It just keeps going round and round. Make sure the start and stop parameters are positive.
- This thread is disorganized. It was started late at night, so I was tired and just wanted to relax.
- Beminfire
-
22 posts
[BYOB Project] Lighting Engine 'Tachyon'
Is this about BYOB, the Scratch 1.4 mod? If so, can I get the download, since the site is now a SMS thing
- superben100
-
1000+ posts
[BYOB Project] Lighting Engine 'Tachyon'
But a tachyon is a particle that travels faster than light.
- -stache-
-
500+ posts
[BYOB Project] Lighting Engine 'Tachyon'
What a necropost… Please don't do it again 

- superben100
-
1000+ posts
[BYOB Project] Lighting Engine 'Tachyon'
Yeah, sorry. I posted and then I realized. What a necropost… Please don't do it again
- Discussion Forums
- » Advanced Topics
-
» [BYOB Project] Lighting Engine 'Tachyon'