Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Papervision3D Essentials

You're reading from  Papervision3D Essentials

Product type Book
Published in Sep 2009
Publisher Packt
ISBN-13 9781847195722
Pages 428 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Papervision3D Essentials
Credits
About the Authors
About the Reviewers
1. Preface
1. Setting Up 2. Building Your First Application 3. Primitives 4. Materials 5. Cameras 6. Moving Things Around 7. Shading 8. External Models 9. Z-Sorting 10. Particles 11. Filters and Effects 12. 3D Vector Drawing and Text 13. Optimizing Performance

VideoStreamMaterial


Although you can apply video as a material manually when using MovieMaterial, the VideoStreamMaterial class does this automatically for you.

The class is called VideoStreamMaterial and extends MovieMaterial. Its constructor takes four parameters:

Parameter

Data type

Default value

Description

1

video

Video

A video instance used as the source to take snapshots from.

2

stream

NetStream

A NetStream instance used to control the video.

3

precise

Boolean

false

Stands for precision of the material.

4

transparent

Boolean

false

Defines whether or not to create a material that supports transparency.

This class allows you to show streaming or progressive videos. You can also use your webcam output as the input for this class. Let's create an example based on video coming from your webcam. This example uses quite a few different classes.

import flash.events.Event;
import flash.media.Camera;
import flash.media.Video;
import flash...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}