Polyvector in GP2X

Previous topic - Next topic

Neurox

Hi,
I've found an error using Polyvector with GP2X :-(
I've wrote this little program for test it .
Obviously under windows the program run ok
but under GP2X frozen it.
Please resolve it because the 7 July is near ;-)

// --------------------------------- //
// Project: TestPolyvector
// Start: Wednesday, June 27, 2007
// IDE Version: 4.230

SETSCREEN 320,240,0
WBciclo = TRUE
WHILE WBciclo
   STARTPOLY -1
      POLYVECTOR   0,   0,  0,  0, RGB(255,255,255)
      POLYVECTOR   0, 239, 64,  0, RGB(42,22,111)
      POLYVECTOR 319, 239, 64, 64, RGB(42,22,111)
      POLYVECTOR 319,  0,  0, 64,  RGB(255,255,255)
   ENDPOLY
   PRINT "Test PolyVector",50,50
   SHOWSCREEN
   IF KEY(32) = 1 // B key
      PRINT "bye", 50, 100
      WBciclo = FALSE
   ENDIF
WEND
//---------------------------

Regards,
Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

Oh dear. Polyvector is not working on GP2X/PocketPC, yet.
What's on 7th July?

Neurox

Quote from: GernotFrischWhat's on 7th July?
End of GBAX2007 :-)

Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

All righty. I see what I can do. But it might cause some trouble.

Neurox

Hi,
Quote from: GernotFrischAll righty. I see what I can do.
Thanks!!!

Quote from: GernotFrischBut it might cause some trouble.
???
What type of trouble ?

Bye,
Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

PolyVector trouble. ;) It is basically a rendering of a colored, textured triangle fan, which - on GP2X - does not work so far. I've been debugging this a lot, but it's totally crazy. Might be due to the software implementation of floating point number support in the gcc compiler. I don't know.

Neurox

Quote from: GernotFrischPolyVector trouble. ;) It is basically a rendering of a colored, textured triangle fan, which - on GP2X - does not work so far. I've been debugging this a lot, but it's totally crazy. Might be due to the software implementation of floating point number support in the gcc compiler. I don't know.
Ok, I understand!
Is very trouble, I'll resolve my problem in other way.

Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Lazarus

No way to fix this, Gernot?

bigsofty

There is quite a good mature development community at ...

http://www.gp32x.com/board/index.php?s=bc3fb3889fe1a79cf4798419950cf92d&showforum=45

... why not post a question, maybe someone else has already solved this type of thing?

More specifically, here's a discussion on a complete software triangle rasteriser using fixed point maths for divs...

http://www.gp32x.com/board/index.php?showtopic=36934
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

Yes, I'm planning to fix POLYVECTOR. It's a really useful function, thus it should work. I'm already working on it.

Kitty Hello

OK, I've got the first version of POLYVECTOR working. I'm working on the 3D fix now. If all works good, I might have a working 3D/Polyvector implementation for GP2X/PocketPC/XBox-Linux after the weekend.
It's quite fast. I expect it to be about as fast as RotoSprite. Maybe faster - then I'll be doing rotosprite with polyvector as well.

S.O.P.M.

That's really great! I look forward to this. Then a perfect Blockout clone for the GP2X could become reality.
Notebook PC Samsung E372 Core i5 @ 2,6 GHz; 4 GB RAM; Win 7 Home Premium