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

Posted : Friday, 03 December 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!
Posted : Friday, 03 December 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!''
Posted : Friday, 03 December 2021, 05:54
rychan
Ooohhhh, Mode 7 ehhhh? (looks excitedly about the place)

-=-=-
Web / Game Dev, occasionally finishes off coding games also!

Refresh Games - Game Dev Blog - Doll Photos
Posted : Friday, 03 December 2021, 06:46
spinal
Divide by zero eh? Yup, that sounds like me alright

-=-=-
Check out my excellent homepage!
Posted : Friday, 03 December 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!
Posted : Friday, 03 December 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!''