Jump to content

Recommended Posts

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)

 

  • Like 1

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

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 :)

@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?

image.thumb.png.032c5bbebf592cb796e09732817de0fd.png
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

  • Like 1

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.

  • Like 1
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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...