Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
porting my project from blitzbasic
#11
Eventuually i'll move onto using hardware 3d but for now i'm seeing what i can do with software.

BTW: i use both a depth buffer and a sort.
Reply
#12
I've got some of this working but have a problem with some stuff in asm

i have some floats that i want to store as ints and later load them into eax and ebx

fistpd [ecx+4]
fistpd [ecx]
...
...
mov eax,[ecx]
mov ebx,[ecx+4]

but fistpd appears to be storing as a 16 bit int as -10 is loaded into eax as 65526

if i use fistpq and an offset of 8 instead of 4 it works but i'd rather use a dword

can anyone explain this or am i just being stupid and doing something wrong?
Reply
#13
It's ok, the problem is fixed by using

fistp dword ptr[ecx]
Reply
#14
yo from what i'm gathering your doing this with a 100% software render and using your own poly function i.e. doing all the math your self.


dam that is cool.


if that the case you should be able to port this to FB easy.
Reply
#15
Thanks ShadowWolf, yes it's all software rendered. It would be pretty easy to port it to fb as it is but i'm trying to do a fair bit of it in assembly.
Reply
#16
That demo was raw. I like the motion blur and realtime transitions.
Reply
#17
Holy shit, that is hot! Big Grin

Thats some awesome work youve got there, you could add that to pouet!
Reply
#18
Yeah, GAS is feed in intel syntax, using suffixes in mnemonics may confuse it, i'm not sure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)