? some neat little light thing idk (Page 2) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

some neat little light thing idk

1 2
  • #21 ✎ 481 chicken :> Posted
  • #22 ✎ 1828 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Hylian wastes your time: 3 Posted
  • #23 ✎ 14 Hylian wheres god of smilebasic 2????????????? Posted
  • #24 ✎ 185 seggiepants This might help anyone trying to make a similar program to the one in question. Watch "Line Of Sight or Shadow Casting in 2D" on YouTube https://youtu.be/fc3nnG2CG8U Posted
  • #25 ✎ 194 Nathaniel OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! OSP Contest 3 Contest Participant I participated in the third SmileBASIC Source OSP Contest! I'll make a 2D light engine similar to the shown in the screenshot next week (for everybody's sanity). Posted
  • #26 ✎ 377 Chemicalex Drawing I like to draw! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength osu! Is Awesome! I love osu! Express Yourself
    I'll make a 2D light engine similar to the shown in the screenshot next week (for everybody's sanity).
    Nathaniel saves the day again lol
    Posted
  • #27 ✎ 14 Hylian Wait, people actually want it? I didn't think people actually wanted it. It's just a tiny demo that I made. Also I didn't follow that tutorial, I just made it how i saw fit tbh. Before I upload anything, I'm going to make a more presentable demo and possibly more light sources Posted Edited by Hylian
  • #28 ✎ 995 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    Wait, people actually want it? I didn't think people actually wanted it. It's just a tiny demo that I made. Also I didn't follow that tutorial, I just made it how i saw fit tbh. Before I upload anything, I'm going to make a more presentable demo and possibly more light sources
    Cool
    Posted
  • #29 ✎ 340 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength
    Wait, people actually want it? I didn't think people actually wanted it. It's just a tiny demo that I made. Also I didn't follow that tutorial, I just made it how i saw fit tbh. Before I upload anything, I'm going to make a more presentable demo and possibly more light sources
    For sure, I can't seem to wrap my head around lighting mechanics
    Posted
  • #30 ✎ 194 Nathaniel OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! OSP Contest 3 Contest Participant I participated in the third SmileBASIC Source OSP Contest! This isn't well commentated but here: LDNQ23Z4 Also I haven't tested this on O3DS so it might lag a bit there. Posted Edited by Nathaniel
  • #31 ✎ 14 Hylian
    This isn't well commentated but here: LDNQ23Z4 Also I haven't tested this on O3DS so it might lag a bit there.
    Nice job! But it looks like there's no transparency. I haven't really had time to get my lighting engine all nice and tidy yet, but once spring break rolls around I'll probably have time.
    Posted Edited by Hylian
  • #32 ✎ 194 Nathaniel OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! OSP Contest 3 Contest Participant I participated in the third SmileBASIC Source OSP Contest!
    Nice job! But it looks like there's no transparency.
    What do you mean by this?
    Posted
  • #33 ✎ 14 Hylian
    Nice job! But it looks like there's no transparency.
    What do you mean by this?
    Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.
    Posted Edited by Hylian
  • #34 ✎ 194 Nathaniel OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! OSP Contest 3 Contest Participant I participated in the third SmileBASIC Source OSP Contest!
    Nice job! But it looks like there's no transparency.
    What do you mean by this?
    Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.
    I created a sprite on line 39... but I'm still confused by what you're saying.
    Posted
  • #35 ✎ 14 Hylian
    Nice job! But it looks like there's no transparency.
    What do you mean by this?
    Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.
    I created a sprite on line 39... but I'm still confused by what you're saying.
    Well, you focused on drawing the light itself. I focused on drawing the shadows. The shadows in my engine cover things up, but in yours they reveal things. We did very similar things, but basically reversed. The light in my engine isn't actually drawn, its just empty space that reveals whats behind it, like the sprite. This allows me to use things like BG tiles and other sprites. Although, you did give me an idea on how I could have a more accurate radial light using sprites.
    Posted Edited by Hylian
  • #36 ✎ 194 Nathaniel OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! OSP Contest 3 Contest Participant I participated in the third SmileBASIC Source OSP Contest!
    Nice job! But it looks like there's no transparency.
    What do you mean by this?
    Well, it looks like you drew everything only on the gpage, which doesn't support transparency. If you use a combination of sprites and the gpage, then you'll be able to use transparency.
    I created a sprite on line 39... but I'm still confused by what you're saying.
    Well, you focused on drawing the light itself. I focused on drawing the shadows. The shadows in my engine cover things up, but in yours they reveal things. We did very similar things, but basically reversed. The light in my engine isn't actually drawn, its just empty space that reveals whats behind it, like the sprite. This allows me to use things like BG tiles and other sprites. Although, you did give me an idea on how I could have a more accurate radial light using sprites.
    Oh, I see. Yeah, the only reason I made mine the way I did is because It allows two light sources to overlap smoothly. The way you made yours allows backgrounds and other elements to appear in the light, which is definitely the better approach.
    Posted
1 2