How to : Apply a Movie to a Model
Applying a Movie to a Model:
Using .obj Files
Create your model with a known texture/s that you want to replace, lets call it "picture.jpg" or "picture.png" if using alpha channels. Save or export as a .obj file.
Convert the .obj file to a .osg by using the osgconv function:
% osgconv file.obj file.osg
replacing "file" with the name of your model.
Now open "file.osg" in a text editor (BBEDIT) and search for - file "picture.jpg" or file "picture.png" and replace with the name and relative path from the P3D xml file to the .mov file that you want replace the texture with.
file "models/movie.mov"
There is one other change that you need to make to allow your model to display correctly.
search for : diffuseColor and you will find it is set as follows :
diffuseColor 0 0 0 1
change this to
diffuseColor 0.8 0.8 0.8 1
You can now test your model by running your P3D show. It will not work with OsgViewer.
Note that movies may need to be flipped horizontally and vertically to appear correctly - this can be done easily in Quicktime Pro.
The Digital Learning Foundation is a registered Educational Charity, SC036588 and a Non-Profit Company Limited by Guarantee, SC282280.
The DLF is dedicated to assisting educators and students adopt new technologies and integrate them into everyday teaching and learning, while inspiring, motivating and making it fun!
content
user account
Popular content
Today's:
All time:
Recent blog posts
- The Beauty Of A Second : Competition
- Feet CT Scan Present3D Volume Render
- Preview : The Story of Electricity : BBC
- New Messenger Data From Mercury
- Prof John Ellis Interview
- drawing (on) riverside : the process
- Kepler Finds First Planet Candiates In Habitable Zone
- How to : Looping Video on iPod
- Opportunity Celebrates 7 years on Mars
- AntiHydrogen at CERN : SixtySymbols
bbc science
new scientist
space
universe today
eurekAlert!
- Henry Ford Hospital researchers identity potential biomarker for osteoarthritis
- NYU Courant researchers weigh methods to more accurately measure genome sequencing
- NYU Courant researchers weigh methods to more accurately measure genome sequencing
- Hearing metaphors activates brain regions involved in sensory experience
- Why 2 new studies represent important breakthrough in Alzheimer's disease research
- Whole exome sequencing identifies cause of metabolic disease
- Study: Stroke victims recover much better after temporary stent procedure
- Discovery of extremely long-lived proteins may provide insight into cell aging
- Dieting with the denomination, determination
- Study published in Neuro-Oncology shows brain tumor eradication and prolonged survival






