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.
content
user account
popular content
Today's:
All time:
bbc science
new scientist
apple learning interchange
space
universe today
dlf events
eurekAlert!
- Look at Mie!
- Mayo Clinic researchers find younger, more diverse patients having total knee replacements
- NASA's Aqua Satellite shows strong convection in Tropical Storm Ului
- GOES-12 captures south Atlantic Tropical Storm 90Q far from Argentina's coast
- Chinese medicine societies reject tiger bones ahead of CITES conference
- AgriLife scientists do groundwork for genetic mapping of algae biofuel species
- A golden bullet for cancer
- Tropical Storm Tomas approaching Nadi this weekend
- New study identifies best treatment for childhood epilepsy
- Foiling an attack on general relativity
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!
Find us on :
twitter : @dlfresources
facebook : soon
youtube channel : dlfresources
vimeo channel : soon
posterous : dlf
linkedin : Phil Lavery

recent comments
6 days 18 hours ago
6 weeks 3 days ago
14 weeks 1 day ago
14 weeks 1 day ago
15 weeks 4 days ago
17 weeks 2 hours ago
18 weeks 1 day ago
18 weeks 1 day ago
19 weeks 3 days ago
20 weeks 3 days ago