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
- Making Maths Education Relevant : Conrad Wolfram
- 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
bbc science
new scientist
space
universe today
eurekAlert!
- First drug to improve heart failure mortality in over a decade
- Death highest in heart failure patients admitted in January, on Friday, and overnight
- Heart failure accelerates male 'menopause'
- New analysis yields improvements in a classic 3-D imaging technique
- Understanding the past and predicting the future by looking across space and time
- Driving and hands-free talking lead to spike in errors: UAlberta study
- New research shows that potatoes provide one of the best nutritional values per penny
- Researchers identify first drug targets in childhood genetic tumor disorder
- June 2013 LITHOSPHERE now online
- Facial-recognition technology proves its mettle






