lwdallas Posted May 20 Share Posted May 20 To overcome my BLITTER hurdles, I decided to cache my background off in a bmp. But I can't make it appear(???)for some reason. If anyone has a moment.. what have I pooched up?plottest.zip Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/ Share on other sites More sharing options...
+CyranoJ Posted May 20 Share Posted May 20 Couple of things: int(650/8) * 8 = 648.... so 650 wide is not a valid width you've created a CLUT based object (256c) and only loaded 8 colours you've set it to animate once (after which it will remove itself - this is why you can't see it) 1 Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5469866 Share on other sites More sharing options...
lwdallas Posted May 20 Author Share Posted May 20 INTEGER MATH! Huge oversight.. ok, I am halfway there. The image is still off in position and color. I changed assets.txt to gfx_clut16 I changed rapinit.s I changed plottest.bas to jsfLoadClut(strptr(SPRITE_STARMAP_BACK),0,16) -- is that 16 colors? 16-bit? Am I going in the right direction or am I worsening it? plottest.zip Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5470069 Share on other sites More sharing options...
lwdallas Posted May 20 Author Share Posted May 20 Screenshot: Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5470108 Share on other sites More sharing options...
+CyranoJ Posted May 20 Share Posted May 20 6 hours ago, lwdallas said: I changed assets.txt to gfx_clut16 Why? Its 8bit CLUT. 6 hours ago, lwdallas said: I changed plottest.bas to jsfLoadClut(strptr(SPRITE_STARMAP_BACK),0,16) -- is that 16 colors? 16-bit? 16 is 16. 16bit is 65536. 6 hours ago, lwdallas said: Am I going in the right direction or am I worsening it? I'd suggest reading the manual and examples a bit more Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5470302 Share on other sites More sharing options...
lwdallas Posted May 21 Author Share Posted May 21 2 hours ago, CyranoJ said: I'd suggest reading the manual and examples a bit more always the correct answer 1 1 Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5470384 Share on other sites More sharing options...
lwdallas Posted May 21 Author Share Posted May 21 @CyranoJAh, screen resolution is a mystery on the Jaguar I need to dip into. Everyone seems to have different opinions on it. I have made advances but I am tripped up by an offset somewhere. Do you have advice? Attaching project for anyone able to advise. Btw, my whiny posts are by no means complaints. I love JagStudio and I am trying to get on top of the concepts that are new to me! plottest.zip 1 Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5470802 Share on other sites More sharing options...
lwdallas Posted May 22 Author Share Posted May 22 SO close! I am missing the offset on the background images and the 3-d cursor sprite is messing up the color table somehow... plottest.zip Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5470993 Share on other sites More sharing options...
Sporadic Posted May 22 Share Posted May 22 I'm not really sure what the problem is. Which offset are you asking about? If it's to do with where the plot command is drawing in relation to the other sprites, then plot draws directly into the text/particle layer, which is the last object in your object list in rapinit.s. So you can see it's X and y position in there. If it's something else, then please add further description. 1 Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5471172 Share on other sites More sharing options...
lwdallas Posted May 22 Author Share Posted May 22 4 hours ago, Sporadic said: If it's to do with where the plot command is drawing in relation to the other sprites, then plot draws directly into the text/particle layer, which is the last object in your object list in rapinit.s. So you can see it's X and y position in there. Oh! I didn't know that. Thanks for that valuable tidbit. The offset I am concerned about is the position the background is displayed is several pixels to the right of the screen edge, lining up with the middle of the "B" text. In rapinit.s I have it placed at 0,0. How do I pull it over to the left? Thanks for the reply, @Sporadic Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5471285 Share on other sites More sharing options...
OVERRiDE Posted May 22 Share Posted May 22 5 hours ago, lwdallas said: Oh! I didn't know that. Thanks for that valuable tidbit. The offset I am concerned about is the position the background is displayed is several pixels to the right of the screen edge, lining up with the middle of the "B" text. In rapinit.s I have it placed at 0,0. How do I pull it over to the left? Thanks for the reply, @Sporadic Just subtract however many pixels you need to offset from your X position, i.e (-16, 0) instead of (0,0) Alternatively chop that many pixels off in your image editor. Just make sure your image width is evenly divisible by 16 for the Jag Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5471528 Share on other sites More sharing options...
lwdallas Posted May 22 Author Share Posted May 22 There is more to it. The left edge of the image is the grey line. Why isn't that at 0,0? I would like to control that extra real estate where the letters exist. Does that make sense, @OVERRiDE Quote Link to comment https://forums.atariage.com/topic/366787-help-with-a-simple-cached-screen/#findComment-5471571 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.