123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|718|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz Max -> Raycaster: Textured walls?

Wed, 23 Feb 2011, 18:33
RetroBution
Hey all. My first time on the forums, I hope I'm worthy.

Anyway, I've been doing research into Raycasting, and I've decided I wanna use BlitzMax to do that. The only thing that's tripping me up is the textured walls.. what would you do to segment an image then draw it as if it were a wall? I can't seem to find anything that would allow me to split an image up (aside from DrawSubImageRect, but that's... eeehh).

Mind helping me out?

Please and thanks, sorry if I'm a noob. =P
Thu, 24 Feb 2011, 10:18
bram32
Maybe PixmapWindow?
Thu, 24 Feb 2011, 10:25
Jayenkai
No idea, I've never dared attempt that sort of thing.
I think I remember JL235 trying one, once. ?

-=-=-
''Load, Next List!''
Thu, 24 Feb 2011, 10:28
JL235
Yeah, there is one I built here (btw Jay build a PMC BB code so I could just dump it in).

You can see the code by clicking on 'code' in the top right. There are a few bugs; partly with drawing the corners incorrectly and it crashes when you touch certain walls. But I think it's just a typo somewhere.

There is also an excellent tutorial on raycasting here.