Author Topic: Idea: 3D Engine using nothing but unaltered 8x8 sprites  (Read 9712 times)

0 Members and 2 Guests are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #30 on: January 04, 2011, 09:42:15 pm »
And, once I get it working, it should work exactly like the screenshot. It'll use pt-offs, drawing back to front. You won't be able to see anything directly to the side of you, but anything in front of and up to 5-6 block to the sides. Still though, it's not showing me anything  :mad:  :banghead: I can't figure out why. Hang on and I'll post the source.

Also, my dithering sprites could be improved. I need 4-5 levels if someone's interested in making some for this.

Edit: Here's a Paste. It expires in a month though, hopefully by then it will be very different :P

http://pastebin.com/pR57e81a

I can't help much because of my poor Axe skills.  But will the engine support textures similar to the mockup on the very first post?

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #31 on: January 04, 2011, 09:44:27 pm »
Yes, they already do (except it doesn't render) in fact I used those same textures for the mockup :)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #32 on: January 04, 2011, 09:48:32 pm »
Okay, I said it once and I'll say it again, I'm really looking forward to this

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #33 on: January 05, 2011, 12:16:27 am »
I myself might go about making a raycaster using only sprites, i wanna see how this turns out :D

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #34 on: January 05, 2011, 12:18:55 am »
I myself might go about making a raycaster using only sprites, i wanna see how this turns out :D

I'm confused: Why do we call it raycasting?  Raycasting and drawing flat sprites are two different things.  Is it because we're so used to the term? 0_0

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #35 on: January 05, 2011, 12:21:35 am »
Oh whoops my bad, i thought this was about performing raycasting operations, but instead of displaying wall slices, display 8x8 sprites.  Hmmm this is interesting, i shall have to think about this

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #36 on: January 05, 2011, 12:23:57 am »
Oh whoops my bad, i thought this was about performing raycasting operations, but instead of displaying wall slices, display 8x8 sprites.  Hmmm this is interesting, i shall have to think about this

Ah, that makes sense.  Well, it depends on how you want to go about it, and I guess raycasting operations could work well.  ( Don't let me keep you down ;D )  My idea on the first page was something different from raycasting, so I wouldn't know if it could work or not

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #37 on: January 05, 2011, 12:27:51 am »
Hmmmm so what other methods could be used to display a map in 3D?

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #38 on: January 05, 2011, 12:35:35 am »
Hmmmm so what other methods could be used to display a map in 3D?

Well to make a long story short, I had in mind an absence of formulas.  Anything other than that is kind of hard for me to explain without doing it myself--which I don't have time for 8)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #39 on: January 05, 2011, 04:03:15 am »
Yep, that's right. I figured since the view distance is so short it shouldn't just cut off. Also, it made more sense to me to do it with the higher resolution, since it's one detection per column. Also, that allows for walls to have different sized holes, perhaps for peeking through a crack you don't fit through :P collision detection (and movement for that matter) are still not implemented.

Hang on, I'll make a mockup screenie of what I mean.

Edit: Who wants a Fake Screenie? :P  :evillaugh:

Sorry for the small size. It's actual calc resolution used for the actual bars (solid black covers full screen)

Nice. I wonder if the top/bottom parts could maybe use different sprites that are kinda diagonal so it looks smoother?
« Last Edit: January 05, 2011, 04:03:38 am by DJ Omnimaga »

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #40 on: January 05, 2011, 04:31:27 am »
Wouldn't it look a lot better to have the top and bottom sprites be triangles to make a smoother transition between slices?  Also, I'm pretty sure it would still be raycasting, but 8 times faster since there are 1/8 as many rays being casted which is plenty fast considering how fast the pure axe raycasters were already.  Any other way of doing it would not allow you to move around as smoothly since you would have to always stay in the center of the path.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #41 on: January 05, 2011, 04:40:11 am »
Yeah this is what I meant. I just couldn't find how to explain it.

One idea I had was to simply do the 90° rotation thing like in Phantasy Star or TI-BASIC FPS'es and display walls with different possible depth levels. I would probably need to make an example to explain what I mean.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Idea: 3D Engine using nothing but unaltered 8x8 sprites
« Reply #42 on: January 05, 2011, 04:39:06 pm »
Well, it's not really raycasting since walls do not move closer to the screen as you get further away. Also, the mockup I posted is larger than the actual calc screen, and the Black bars will extend all the way to the bottom.

Quigibo, that would work, but I'm not doing it yet. By the way, do you have any idea why my code isn't displaying anything? (I have a paste posted above)