How to start and hold a video on the first frame in Aframe - aframe

What's the proper way to load the first frame of a video texture using Aframe?
I found this https://github.com/aframevr/aframe/issues/1271, which suggests having a separate image plane and hiding that then playing the video.
Is there no poster attribute?

Related

constructing a bitmap from stream rotates the image

I am using ASP.Net with VB and doing some file uploads. Sometimes, when a bitmap is constructed from the file input stream, the image gets rotated. It doesn't seem to happen if the image is wider than it is tall, but also doesn't seem to happen all the time if the image is taller than wide. I have provided a few screen shots where the properties of the image are show, and the created bitmap's properties are shown at run time.
Any ideas what is happening here or what we can do to prevent this rotation?
Rotated image:
Non-rotated image:
Using the rotation code found Here fixed it. The images were coming from a phone camera and had original orientation information stored in them that could be used to right them.

QT - Which method for showing a playerchar

In my PlayerSelectMenu i want to show the available characters. My idea is to have a Frame in which the character is shown. left and right of the frame are buttons to switch forward to the next character and back to the last character.
Is there a way to load the character sprite into the window?
I meant loading an list of playersprites into a frame in QT Creator. I'm developing a beat'm up game that has a playerselect-menu. in this menu i want to show the available characters in 2 seperate frames for player 1 and player 2.
If you question is about "How to load an image in QML", then you can simply use the Image element, and set its source property to give the path of your image
source: "qrc:/path/to/image.png"
or
source: "file:/system/path/to/image.png"
If your question is about loading multiple frames and animate them, then there is the AnimatedImage qml component, that allows you to play .gif animated images for instance (possibly animated png too), and the current frame. If you don't have format, then you can manually animate with a Timer and/or Animation element, manually changing the source of an Image element.

Procedure to find certain images in a CSS sprite?

Is there a correct procedure to locate certain image locations in an image sprite. Say I wanted to create 10 div images in my header using the image below, how do I find the precise location of each.
Is just a case of trial and error using CSS background position till the image fits?
http://www.argos.co.uk/wcsstore/argos/en_GB/siteAssets/brfp-2014/images/icons-s73f662fc84.png
Now if you are not adverse to uses SCSS/SASS, then I would highly recommend using Compass' method. It converts a folder of images into a sprite map and the creates classes that allows you to access these sprites. This has proven to be the easiest way for me to work with sprites without worrying about all of the messy calculations.
If you can't do that, then what I have personally done, is create multiple small sprite maps. For example, if I have an arrow that has a hover on/off state. It will stack it into one image and just create a class with a shifted background-position.

Difference between IMAGE MAPS and CSS SPRITES

I could not find the clear difference between IMAGE MAPS and CSS SPRITES. Both are looking like combining the images in the page into one? So we can reduce multiple requests to the server. So what is the real difference?
Image Map:
A single image in a page, with different areas you can click on, which then have different effects (eg launching different links).
There's a description of this here: http://www.javascriptkit.com/howto/imagemap.shtml
CSS Sprites:
Combining the images behind a number of css classes into a single file to improve performance - eg reducing number of requests and often overall download size.
For example you might combine various border elements of a colorbox dialog into a single image, or combine the clicked and unclicked images for a button.
The best description I've found of CSS sprites is this one: http://css-tricks.com/css-sprites/
An image map is one image that you can turn into an image map and place multiple links on top of the image.
A CSS sprite is one image made up of mutiple images that youy use CSS background positioning to display this reducing http requests.
An Image Map is the definition of coordinates that are lying over the image to be able to react to events on this areas.
a css sprite are two or more images joint in one image.
I know it been asked a year ago, just let me try to explain in own my words.
CSS Sprite is like a single file image repository that you can pull out any portion of it via css and place them individually in arbitrary area in your webpage real estate, while image map (to-url) , as it name suggest is a image that has a clickable area that maps to your target url.

Flex VideoDisplay: setting the thumbnail on a video which hasn't been played yet?

I have an mx:VideoDisplay object in Flex, and I wanted to change the initial image which is displayed for the VideoDisplay for the source video. The reason being, the frame that is initially being shown simply looks too funny to be taken seriously? An alternative is to layer an image on top of the videodisplay and then just remove it from the stage once I have set the video to play, but I would like to avoid having to do that.
You can use states and show the image before playing the video and use timer to remove it after n seconds and play video.
I am not sure it its the correct way, but I implemented the same way, when I got the same requirement.
Let m

Resources