English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 29 December 2020, 13:30   #21
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,211
are you redrawing the lines to clear the buffer? or is it a blitter clear?
DanScott is offline  
Old 29 December 2020, 15:04   #22
Jobbo
Registered User
 
Jobbo's Avatar
 
Join Date: Jun 2020
Location: Druidia
Posts: 387
Redrawing the lines. A 5 plane clear for 320x256 would by itself take over a frame.
Jobbo is offline  
Old 29 December 2020, 16:46   #23
Jobbo
Registered User
 
Jobbo's Avatar
 
Join Date: Jun 2020
Location: Druidia
Posts: 387
Incidentally does anyone know how to consistently capture video from Winuae at 50hz in such a way that youtube will process it correctly?
Jobbo is offline  
Old 29 December 2020, 17:00   #24
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
Nice HAM object :-)

Quote:
Originally Posted by Jobbo View Post
Incidentally does anyone know how to consistently capture video from Winuae at 50hz in such a way that youtube will process it correctly?
I think the resolution must be above a certain size (720p ?) to get 50Hz.
hooverphonique is offline  
Old 29 December 2020, 17:59   #25
Antiriad_UK
OCS forever!
 
Antiriad_UK's Avatar
 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
I use the free Lagarith lossless codec to capture to .avi (after installing you select it in WinUAE). Then I use ffmpeg and a command line like this to crop it and convert to something that looks good after uploading to youtube.
https://lags.leetcode.net/codec.html

Code:
ffmpeg -i "output.avi" -vf "crop=704:544:44:20,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" -c:a aac -b:a 320k -ar 48000 -c:v libx264 -crf 1 -profile:v high -level 4.0 -preset slow -bf 2 -coder 1 -b:v 15M -r 50 -pix_fmt yuv420p -threads 8 -cpu-used 0 -f matroska "output_youtube_50fps.mkv"
Antiriad_UK is offline  
Old 04 January 2021, 12:44   #26
defor
Registered User
 
Join Date: Jun 2020
Location: Brno
Posts: 90
Quote:
Originally Posted by Antiriad_UK View Post
Code:
 ;(dx+1)*64 + 2
 .bltsize:
a set 0
    rept    BPL_BUF_WIDTH
    dc.w    ((a+1)<<6)+2        
a set a+1
    endr
Just an off-topic: Default REPTN counter can be used inside rept block in vasm.
defor is offline  
Old 04 January 2021, 13:38   #27
Tigerskunk
Inviyya Dude!
 
Tigerskunk's Avatar
 
Join Date: Sep 2016
Location: Amiga Island
Posts: 2,770
Quote:
Originally Posted by Jobbo View Post
This is how it's looking after a lot of tricky changes to when and how each line is drawn.

It's a lot more trouble than it's probably worth but I don't think you could pull off a 4 bitplane poly shape this large with the blitter doing the fill.

It's running at 50hz with a screen size of 320x256.

[ Show youtube player ]
Amazing...
Tigerskunk is offline  
Old 04 January 2021, 16:15   #28
rothers
Registered User
 
Join Date: Apr 2018
Location: UK
Posts: 487
Would a raycaster in HAM just be too slow to bother with?
rothers is offline  
Old 04 January 2021, 17:32   #29
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,211
Quote:
Originally Posted by rothers View Post
Would a raycaster in HAM just be too slow to bother with?
For what purpose? For a "Wolfenstein" style engine ? You could render to a chunky screen and then C2P to HAM, but it's certainly not very quick unless you have a very low resolution

This HAM object exploits the fact that you can set a colour on the edge of the polygon, and then hold that colour across the line (very similar to how a blitter fill, can fill a convex object)
DanScott is offline  
Old 04 January 2021, 18:02   #30
Frog
Junior Member
 
Frog's Avatar
 
Join Date: Aug 2001
Location: France
Posts: 1,385
in the demo Colors by Devils there's some HAM mode effect, i'm not sure about the rest of the demo :
[ Show youtube player ]

http://janeway.exotica.org.uk/release.php?id=752
Frog is offline  
Old 04 January 2021, 18:37   #31
Jobbo
Registered User
 
Jobbo's Avatar
 
Join Date: Jun 2020
Location: Druidia
Posts: 387
Quote:
Originally Posted by rothers View Post
Would a raycaster in HAM just be too slow to bother with?
It’s hard to imagine a way that HAM would help with a Wolf3D engine.

If you flipped your tv on its side then maybe you could do something clever. But even then there’s probably other approaches that’d be faster.

Where it could come into its own is if you have a fast method for generating a span buffer for flat shaded worlds. Then you could use HAM to draw the spans quite efficiently.
Jobbo 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
Looking for mod player with GFX demo effects lifeschool request.Apps 14 18 April 2018 19:49
Demos with music or sound effects in time with graphic effects mark_k request.Demos 7 07 December 2016 20:23
Looking for old, long HAM demo Foebane request.Demos 10 08 November 2014 11:26
Oldschool demo effects on websites! Kodoichi Amiga scene 3 08 November 2006 19:01
HAM Demo Frazor request.Demos 2 06 August 2003 14:36

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 02:38.

Top

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