123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|548|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Mode 7 failure?

Fri, 03 Dec 2021, 05:15
spinal

Mode 7 failure?


I know this code crashes, but I don't know why...



I get nothing on the screen and then it closes, even though it should wait until 'Esc'

-=-=-
Check out my excellent homepage!
Fri, 03 Dec 2021, 05:32
Jayenkai
First guess.
You've done a "/z" before you've set z, so z would be 0, so it's a division by zero.

-=-=-
''Load, Next List!''
Fri, 03 Dec 2021, 05:54
cyangames
Ooohhhh, Mode 7 ehhhh? (looks excitedly about the place)

-=-=-
Web / Game Dev, occasionally finishes off coding games also!
Fri, 03 Dec 2021, 06:46
spinal
Divide by zero eh? Yup, that sounds like me alright

-=-=-
Check out my excellent homepage!
Fri, 03 Dec 2021, 09:11
spinal


A bit slow, but there seems to be something wrong with the y or z calculation, notice the tiles are the wrong way around and seem to mirror part way down the bottom half...

-=-=-
Check out my excellent homepage!
Fri, 03 Dec 2021, 12:24
Jayenkai
The quirk is happening on y-line 512, which, when you multiply it by 64 then shift left by 16, as you're doing, hits the 32 bit number limit of B3d.



You'll need to find a way around that..
*shrugs*


Additional tweak. Might help, might not.


This is one array lookup, instead of three. Not sure if it's quicker, though. Remote Desktop breaks any possible speed ups!!

-=-=-
''Load, Next List!''