log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
- RISC OS London Show Report 2024 (News:1)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: 32K plotter
 
  32K plotter
  andreww (15:04 27/3/2002)
  Phlamethrower (22:04 27/3/2002)
    andreww (09:44 28/3/2002)
      andreww (09:49 29/3/2002)
 
Andrew Message #86229, posted by andreww at 15:04, 27/3/2002
AA refugee
Posts: 555
I'm plotting a 32K sprite using a routine I've used before but I'm getting a double image effect (the sprite is appearing twice: once where it should be on the rhs and once in the middle of the x-axis of the screen)
i can't see a problem with the code and I'm using a mode selector block to get the 640x480 32K mode which also works with the original plotter program.

What could be wrong?
regards

Andrew

  ^[ Log in to reply ]
 
Jeffrey Lee Message #86230, posted by Phlamethrower at 22:04, 27/3/2002, in reply to message #86229
PhlamethrowerHot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff

Posts: 15100
The most obvious problem would be adding on 1 times the screen width instead of 2 times at the end of each row... Try fiddling round with drawing the sprite at the mouse coordinates to see if you can work out how the two images are related.

Either that or if it is the full image being duplicated (i.e. not squished to half height), then it might be a branching problem in the code causing it to draw twice. Check that all branches go to the right place, and that all registers are stored and loaded as they should be.

  ^[ Log in to reply ]
 
Andrew Message #86231, posted by andreww at 09:44, 28/3/2002, in reply to message #86230
AA refugee
Posts: 555
Yes, I think you've got it Jeffrey! I don't know why it worked with the original 32K plotter program though.
I'll check this and get back.
Thanks again.


Andrew

  ^[ Log in to reply ]
 
Andrew Message #86232, posted by andreww at 09:49, 29/3/2002, in reply to message #86231
AA refugee
Posts: 555
Yes that's right, forgot to add 1280 at the end of each scanline plot!
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: 32K plotter