Page 16 of 45

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Sun Oct 30, 2022 9:54 pm
by stevepoole
Hi Per,

Ok, I've tried to REMark in explanations of the code, which is a little tidier.
It is not too easy to explain perspective geometry, but here goes :

Imagine that the WINDOW#2 is lying flat behind your computer screen on the table. In that case think of the computer screen as a 3D 'GRID' as used by painters.
You spin the 'flatout_image' around its central axis, looking downwards somewhat. You (an eye) looks through the grid to a target_point, behind the flatout_image.
The exercise is to calculate where on the grid, the eyeline to a 'flatout_pixel' cuts it, relative to the 'central grid viewline'.

Sorry about that : There are a lot of triangular trigonometrical variables involved, making naming uneasy ! And this is just a very simple 3D projection...
It will run faster in this version, as I have used a different SC(ale) value. The image is the one in my last posting.
Hope this helps, if not let me know. Regards, Steve.
Wrapper3D2_bas.zip
(1.83 KiB) Downloaded 220 times

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Mon Oct 31, 2022 6:27 am
by stevepoole
Hi Derek,

You wrote << I cannot get this to run on sQLux, can you give me some hints how to get more colours on sQLux ? >>.

I presume you had indeed LRESPRed RPIX.bin & PHGTK.bin as mentioned in my posting ? (See oct 30-9h54 zip file for these toolkits).

Otherwise, I am no expert on the extra colours nor SQLux. Perhaps someone else can advise ?

Steve.
_________

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Mon Oct 31, 2022 8:56 am
by XorA
Steve, you program is cool, but I think you should probably break it out into its own thread otherwise it will be lost in time/deep in the sQLux release thread :-D

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Wed Nov 02, 2022 8:56 pm
by Derek_Stewart
Hi,

Is it possible to increase the colour depth of sQLux using SDL2?

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Wed Nov 02, 2022 10:03 pm
by XorA
Derek_Stewart wrote:Hi,

Is it possible to increase the colour depth of sQLux using SDL2?
What do you mean? You want more than 16 colours? That would mean Minerva would need a new GFX driver wouldnt it?

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Wed Nov 02, 2022 10:10 pm
by Derek_Stewart
XorA wrote:
Derek_Stewart wrote:Hi,

Is it possible to increase the colour depth of sQLux using SDL2?
What do you mean? You want more than 16 colours? That would mean Minerva would need a new GFX driver wouldnt it?
More than 4 colours.

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Wed Nov 02, 2022 10:32 pm
by XorA
Derek_Stewart wrote:
XorA wrote:
Derek_Stewart wrote:Hi,

Is it possible to increase the colour depth of sQLux using SDL2?
What do you mean? You want more than 16 colours? That would mean Minerva would need a new GFX driver wouldnt it?
More than 4 colours.
Well its undocumented but it currently supports 16 :-D in mode 8 :-D

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Wed Nov 02, 2022 10:45 pm
by Derek_Stewart
Sounds great, when is this to be documented?

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Wed Nov 02, 2022 10:53 pm
by XorA
Derek_Stewart wrote:Sounds great, when is this to be documented?
When everyone promises to never implement the flash bit :-D

Re: sQLux v1.0 (The Xmas Turkey)

Posted: Wed Nov 02, 2022 11:02 pm
by Derek_Stewart
XorA wrote:
Derek_Stewart wrote:Sounds great, when is this to be documented?
When everyone promises to never implement the flash bit :-D
... and a bit flash programming!?