sQLux v1.0 (The Xmas Turkey)
-
- Aurora
- Posts: 890
- Joined: Mon Nov 24, 2014 2:03 pm
Re: sQLux v1.0 (The Xmas Turkey)
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.
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.
-
- Aurora
- Posts: 890
- Joined: Mon Nov 24, 2014 2:03 pm
Re: sQLux v1.0 (The Xmas Turkey)
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.
_________
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.
_________
- XorA
- Site Admin
- Posts: 1644
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: sQLux v1.0 (The Xmas Turkey)
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 

-
- Font of All Knowledge
- Posts: 4756
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: sQLux v1.0 (The Xmas Turkey)
Hi,
Is it possible to increase the colour depth of sQLux using SDL2?
Is it possible to increase the colour depth of sQLux using SDL2?
Regards,
Derek
Derek
- XorA
- Site Admin
- Posts: 1644
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: sQLux v1.0 (The Xmas Turkey)
What do you mean? You want more than 16 colours? That would mean Minerva would need a new GFX driver wouldnt it?Derek_Stewart wrote:Hi,
Is it possible to increase the colour depth of sQLux using SDL2?
-
- Font of All Knowledge
- Posts: 4756
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: sQLux v1.0 (The Xmas Turkey)
More than 4 colours.XorA wrote:What do you mean? You want more than 16 colours? That would mean Minerva would need a new GFX driver wouldnt it?Derek_Stewart wrote:Hi,
Is it possible to increase the colour depth of sQLux using SDL2?
Regards,
Derek
Derek
- XorA
- Site Admin
- Posts: 1644
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: sQLux v1.0 (The Xmas Turkey)
Well its undocumented but it currently supports 16Derek_Stewart wrote:More than 4 colours.XorA wrote:What do you mean? You want more than 16 colours? That would mean Minerva would need a new GFX driver wouldnt it?Derek_Stewart wrote:Hi,
Is it possible to increase the colour depth of sQLux using SDL2?


-
- Font of All Knowledge
- Posts: 4756
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
- XorA
- Site Admin
- Posts: 1644
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: sQLux v1.0 (The Xmas Turkey)
When everyone promises to never implement the flash bitDerek_Stewart wrote:Sounds great, when is this to be documented?

-
- Font of All Knowledge
- Posts: 4756
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: sQLux v1.0 (The Xmas Turkey)
... and a bit flash programming!?XorA wrote:When everyone promises to never implement the flash bitDerek_Stewart wrote:Sounds great, when is this to be documented?
Regards,
Derek
Derek