English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 08 September 2018, 16:53   #1
Marle
Pixel Vixen
 
Join Date: Feb 2018
Location: Mie, Japan
Posts: 219
Display HAM image in Blitz - left edge fringing?

Hiya,

I'm trying to display a HAM image which works but unlike Multiview when I view the image, I am getting fringing on the left edge, when I view the exact same image with Multiview, no fringing on the left edge, so I'm a bit confused where I am going wrong.

Any ideas?

The first image is the result of the below blitz code, the second is Multiview.

Please note the image shown is not mine, I am just experimenting before I start painting my own backdrops. Many thanks!

Vicky

Code:
WBStartup
DEFTYPE.w

imagew = 455
displayw = 320

BitMap 0,imagew,256,6
LoadBitMap 0,"school-ham.iff",0

InitCopList 0,44,256,$6 + $80 + $10,8,32,0

VWait 100

BLITZ

CreateDisplay 0
DisplayPalette 0,0
DisplayBitMap 0,0,0,0

While Joyb(0)=0
  VWait
Wend

QAMIGA

Free Palette 0
Free BitMap 0


End
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2018-09-08 at 15.49.15.jpg
Views:	195
Size:	198.6 KB
ID:	59731   Click image for larger version

Name:	Screen Shot 2018-09-08 at 15.51.18.jpg
Views:	190
Size:	191.8 KB
ID:	59732  
Marle is offline  
Old 08 September 2018, 17:12   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
The image is a few pixels wider than the screen. Your program seems to cut them off at the left while Multiview cuts them at the right edge.

You should get the same result in Multiview if you move the mouse pointer against the right border so that the screen scrolls a bit to the left.
thomas is offline  
Old 08 September 2018, 19:21   #3
Marle
Pixel Vixen
 
Join Date: Feb 2018
Location: Mie, Japan
Posts: 219
Thanks thomas, yes it does seem the case I didn't see that myself until I looked at the screenshots, hard to tell when I was working on it. I was experimenting panning a HAM bitmap but unfortunately you do get fringing doing that it seems, I would have thought the DisplayBitmap 0,0,0,0 would have ensured the left edge of the image was at the leftmost point but I'll experiment with a 320 wide bitmap.

Thanks!
Marle is offline  
Old 08 September 2018, 19:51   #4
Marle
Pixel Vixen
 
Join Date: Feb 2018
Location: Mie, Japan
Posts: 219
Ok I tracked it down, it appears to be to do with having smooth scrolling enabled as even when I cropped the image to 320x256 it still was fringing on the left edge.

Disabling smooth scrolling seemed to work. ($86 instead of $96 for the copper list options)
Marle is offline  
Old 16 November 2018, 01:49   #5
earok
Registered User
 
Join Date: Dec 2013
Location: Auckland
Posts: 3,539
With Time Gal we had an issue where there was a slight artifacting on the left edge (to do with the greyscale palette that was shared between every frame of the HAM animation).

We fixed it when we reused the engine for Road Avenger by simply displaying a black sprite on the left edge of the screen.

If you wanted to scroll HAM you could maybe cover up the left side with a black sprite the same as what we did. If the black sprite is 16 pixels wide it should (not totally guaranteed) be wide enough to cover up any artifacts on the left.
earok is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interlaced display in BLITZ mode. Anakirob Coders. Blitz Basic 9 25 June 2017 23:48
How to do AGA copperbars in Blitz using display library Coagulus Coders. Blitz Basic 9 25 January 2016 15:53
Image slightly shifted to the left Snowwie support.Hardware 4 21 February 2015 16:22
WinUAE Display Problem - Gloom Pushed Horizontally To Left CodyJarrett support.WinUAE 1 23 December 2014 10:29
Black Boarder on the left of display Steve C project.ClassicWB 12 15 June 2004 02:59

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:29.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11140 seconds with 16 queries