Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:09 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMite VGA Mode 1 Sprite Transparency ???

Author Message
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 02:26am 24 Jul 2022
Copy link to clipboard 
Print this post

PicoMite VGA  V5.07.05b15

Sprite transparency does not seem to be working in Mode 1

For example, This test program works in Mode 2 but the sprite is not transparent in Mode 1



 CLS

 XMax = MM.HRes - 1
 YMax = MM.VRes - 1

 'Make a Sprite
 Line 10,0,10,20
 Line 0,10,20,10
 Circle 10,10,7
 Sprite Read #1,0,0,20,20
 CLS

 'Put some art on the screen
 For X = 1 To 100
   Line Rnd(0) * XMax,Rnd(0) * YMax,Rnd(0) * XMax,Rnd(0) * YMax
 Next X

 'Now move the sprite across the screen
 For X = 10 To 300
   Sprite Show #1,X,MM.VRes/2,1
   Pause 10
 Next X


Regards,
-Carl
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 05:50am 24 Jul 2022
Copy link to clipboard 
Print this post

I don't think it can. Mode 1 is a 2-colour mode, there is only foreground and background. It is superimposed over the TILE matrix to add some colour, you can't actually draw several different things in different colours.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 07:37am 24 Jul 2022
Copy link to clipboard 
Print this post

  Quote  Sprite transparency does not seem to be working in Mode 1

I sort of assumed no-one would use it so it hasn't been implemented. I'll look at it next time I open that code
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 07:24pm 24 Jul 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  I don't think it can. Mode 1 is a 2-colour mode, there is only foreground and background. It is superimposed over the TILE matrix to add some colour, you can't actually draw several different things in different colours.


Black or RGB(0,0,0) is the transparent "color" on the PicoMite VGA.  I was trying to overlay a cursor sprite on Mode 1 graphics.  The Sprite works perfectly but it has black square around it.  I hadn't considered the color tiles, but I suppose they would also affect the Sprite color in Mode 1.
-Carl
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 07:41pm 24 Jul 2022
Copy link to clipboard 
Print this post

Tiles may make things interesting as they change both the foreground and background colours on a cell by cell basis. As you can (currently anyway) only have one of each at any one moment it might be like waving a rainbow around (where's Jeff MInter when you need him?). Very cool, but distinctly odd. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025