Hackathon Proposal: CompositeViewer and Canvas: Difference between revisions

Jump to navigation Jump to search
Added second video.
No edit summary
(Added second video.)
Line 8: Line 8:
'''Post-hackathon write-up'''
'''Post-hackathon write-up'''


We came across some tricky issues, but made lots of progress.
''Summary''


We managed to get Canvas Views working, but the code changes we made are very hacky. It's on branch topics/cvcanvas of the main flightgear, simgear and fgdata repositories.
We came across some tricky issues, but made lots of progress and ended up with a couple of working demos.


Here's a demo video of a Canvas View on the panel of a Harrier-GR3 showing a view from the camera pod under the aircraft: [http://op59.net/cvcanvas-demo.ogv cvcanvas-demo.ogv].
The code changes we made are very hacky and will need a fair amount of cleaning up before we think of pushing to next. All the work we did is on branch topics/cvcanvas of the main flightgear, simgear and fgdata repositories.


We also managed to get a 777 to show an outside view (tail cam) on one of the cockpit displays.
''Demo videos''


Things we learnt or talked about:
* [http://op59.net/cvcanvas-777-tailcam.webm cvcanvas-777-tailcam.webm] Canvas View used for cockpit display of tail camera on a 777.
* [http://op59.net/cvcanvas-demo.ogv cvcanvas-demo.ogv] Canvas View on the panel of a Harrier-GR3 showing a view from the camera pod under the aircraft, plus a flying billboard and some extra view windows.


* Making an object in the aircraft model serve as a placement for a Canvas View is a little tricky:
''Things we learnt or talked about''
 
* We ran into some minor problems making an object in the aircraft model serve as a placement for a Canvas View:
** The object surface should uses a material with '''emis 1 1 1''', otherwise it seems to only shows up when lit up by sunlight. This can be confusing if one is testing while one's aircraft is facing into the sun.
** The object surface should uses a material with '''emis 1 1 1''', otherwise it seems to only shows up when lit up by sunlight. This can be confusing if one is testing while one's aircraft is facing into the sun.
** When the surface(s) of the object reference vertices, they need to specify differing texture coordinates (not just '''0 0''' for each vertice reference), otherwise nothing shows up.
** When the surface(s) of the object reference vertices, they need to specify differing texture coordinates (not just '''0 0''' for each vertice reference), otherwise nothing shows up.
219

edits

Navigation menu