POV-Ray : Newsgroups : povray.binaries.animations : Playing with matrix transforms Server Time
12 Mar 2025 20:09:21 EDT (-0400)
  Playing with matrix transforms (Message 25 to 26 of 26)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Bald Eagle
Subject: Re: Playing with matrix transforms
Date: 15 Feb 2025 21:40:00
Message: <web.67b14f9828e999341f9dae3025979125@news.povray.org>
OK, so I was diagramming this all out, and that got me to focus on the fact that
the text not only gets rotated, but MOVED.

That's because it's not rotating the text around the origin.
Just apply the following fix:


 object {
  Object
  translate -OL
  transform {Object_Transform}
  translate OL
 }
#end // end macro FaceCamera


Post a reply to this message


Attachments:
Download 'howfacethecameraworks.png' (26 KB)

Preview of image 'howfacethecameraworks.png'
howfacethecameraworks.png


 

From: Josh English
Subject: Re: Playing with matrix transforms
Date: 1 Mar 2025 13:17:02
Message: <67c34f1e$1@news.povray.org>
On 1/25/2025 6:47 AM, Kenneth wrote:
> 
> So I downloaded your video-- and it plays fine in*most* of my Windows 10 media
> players: VLC Media Player, SM Player, and even my old VirtualDub2. But it does
> not play in Windows' own Media Player (a black screen)-- and actually breaks
> Irfanview (the app hangs and has to be terminated via Windows Task Manager.)
> Irfanview will usually play just about any video that I throw at it, so its
> behavior in this case is very weird.
> 
> In VLC Media Player, I took a look at your first posted video's encoding
> statistics:
> 
> Codec: H264-MPEG-4 AVC (part 10) (avc1)
> Video Resolution: 450 X 450
> Buffer Dimensions: 464 X 482
> Decoded Format: Planar 4:4:4 YUV
> Color Primaries: ITU-R BT.709
> 
> I did some research (yet again!) about video encoding and codecs, because it is
> all so complicated to remember. Your video's stats are fairly standard stuff
> AFAIU-- except for the 4:4:4 chroma subsampling.  4:2:0 is the typical scheme
> for h.264; I use that myself. Take a look at Wikipedia's "h.264" page,
> particularly the subsection "Feature support in particular profiles". It appears
> that 4:4:4 is only supported in a particular high-end 'flavor' of h.264; perhaps
> that presents a problem for Firefox, and/or for Windows 10's built-in video
> codecs.

I'm late to reviewing this thread. I use ffmpeg on Windows 10 to make my 
animations.

ffmpeg -i <file_pattern> -c:v libx264 -strict -2 -preset slow -pix_fmt 
yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -f mp4 candle2.mp4

I think it's the -pix_fmt yuv420p that makes Windows Media Player like 
the file. It might by the -c:v libx264 that's doing it though. It's been 
a while and I don't remember.

Josh


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.