TXG/MNX Posted December 8, 2020 Share Posted December 8, 2020 Hi, I like to mix RGB and CRY pictures, is that even possible? I did set the mode in the objectlist to is_Cry The reason is that I would like to try if I get a picture transulant instead of transparant. I failed to set a picture to cry any help would be great. Quote Link to comment Share on other sites More sharing options...
swapd0 Posted December 8, 2020 Share Posted December 8, 2020 (edited) I've never tried but if you set bit 8 in VMODE you can mix RGB & CrY pixels. oops, I don't know how to do it in raptor. Edited December 8, 2020 by swapd0 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 8, 2020 Share Posted December 8, 2020 jag_vidmode equ vidRGB16 jag_videnable equ vidENABLE jag_varmod equ vidVARMOD_OFF It's in _rapinit.s All documented in the manual. Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 8, 2020 Author Share Posted December 8, 2020 28 minutes ago, CyranoJ said: jag_vidmode equ vidRGB16 jag_videnable equ vidENABLE jag_varmod equ vidVARMOD_OFF It's in _rapinit.s All documented in the manual. Hi, In the manual I see these modes: CRY16, RGB16, RGB24, DIRECT16 When using RGB16 only RGB values are supported right or can I still use CRY objects? What about DIRECT16 mode I cannot find the info on that in the manual. Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 8, 2020 Share Posted December 8, 2020 10 minutes ago, TXG/MNX said: Hi, In the manual I see these modes: CRY16, RGB16, RGB24, DIRECT16 When using RGB16 only RGB values are supported right or can I still use CRY objects? What about DIRECT16 mode I cannot find the info on that in the manual. Use the "other" manual: JAG_V8.PDF Why don't you post what you've done and what it's doing along with code and a binary, because random out of context questions are really annoying (and is why ggn probably quit) (Thats a polite way of saying "put up or shut up"... for those who fail to grasp the art being not so subtle - I'm prepared to help if I can and there is a point, I'm not prepared to mind-read) Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 8, 2020 Author Share Posted December 8, 2020 Hi, I read the JAG_V8.PDF Okay I turned VARMODE ON and now I can mix cry with RGB, and have a transulent color in rapapp.s raptor_video_VARMOD equ vidVARMOD_ON In assets.txt I added this line: ABS,sprite_overlay,gfx_cry,ASSETS\GFX\overlay.bmp and in rapinit.s overlay dc.l 1 ; repeat dc.l is_active ; active dc.w 100,0 ; x dc.w 90,0 ; y dc.w 0,0 ; xadd dc.w 0,0 ; yadd dc.l 160 ; width dc.l 80 ; height dc.l is_normal ; flip dc.l 0 ; coffx dc.l 0 ; coffy dc.l 160 ; hbox dc.l 80 ; vbox dc.l sprite_overlay ; gfxbase dc.l 16 ; gfxbits dc.l is_cry ; gfxformat dc.l is_trans ; gfxbacktype jag_v8.pdf Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 8, 2020 Share Posted December 8, 2020 No bitmaps, no code, can't compile it. Don't know what it is you are expecting to see on the screen. Can't read minds. Sorry, can't help. Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 8, 2020 Author Share Posted December 8, 2020 No mind reading needed, I wanted to create a transulant box over an existing background see picture above. I also posted the changes I made to get it working. Varmode_on did the trick for me. Thanx for pointing me to the right direction CJ.Verstuurd vanaf mijn POCO F1 met Tapatalk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.