English Amiga Board


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

 
 
Thread Tools
Old 29 December 2020, 14:30   #21
DanScott
Lemon. / Core Design

DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 892
are you redrawing the lines to clear the buffer? or is it a blitter clear?
DanScott is offline  
Old 29 December 2020, 16:04   #22
Jobbo
Registered User

Jobbo's Avatar
 
Join Date: Jun 2020
Location: Lexington, MA
Posts: 115
Redrawing the lines. A 5 plane clear for 320x256 would by itself take over a frame.
Jobbo is online now  
Old 29 December 2020, 17:46   #23
Jobbo
Registered User

Jobbo's Avatar
 
Join Date: Jun 2020
Location: Lexington, MA
Posts: 115
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 online now  
Old 29 December 2020, 18:00   #24
hooverphonique
ex. demoscener "Bigmama"

 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,221
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, 18:59   #25
Antiriad_UK
OCS forever!

Antiriad_UK's Avatar
 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 355
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 online now  
Old 04 January 2021, 13:44   #26
defor
Registered User

 
Join Date: Jun 2020
Location: Brno
Posts: 25
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, 14:38   #27
Steril707
Tigerskunk!

Steril707's Avatar
 
Join Date: Sep 2016
Location: Amiga Island
Posts: 1,912
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...
Steril707 is offline  
Old 04 January 2021, 17:15   #28
rothers
Registered User

 
Join Date: Apr 2018
Location: UK
Posts: 125
Would a raycaster in HAM just be too slow to bother with?
rothers is offline  
Old 04 January 2021, 18:32   #29
DanScott
Lemon. / Core Design

DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 892
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, 19:02   #30
Frog
Junior Member

Frog's Avatar
 
Join Date: Aug 2001
Location: France
Posts: 1,331
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, 19:37   #31
Jobbo
Registered User

Jobbo's Avatar
 
Join Date: Jun 2020
Location: Lexington, MA
Posts: 115
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 online now  
 


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 20:49
Demos with music or sound effects in time with graphic effects mark_k request.Demos 7 07 December 2016 21:23
Looking for old, long HAM demo Foebane request.Demos 10 08 November 2014 12:26
Oldschool demo effects on websites! Kodoichi Amiga scene 3 08 November 2006 20:01
HAM Demo Frazor request.Demos 2 06 August 2003 15: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 17:24.


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