The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Canvas - the FlightGear 2D drawing API |
|
|
|
RFC |
|
|
Frameworks |
|
|
Tutorials |
|
|
Reference |
|
|
Related |
|
|
To be ported |
|
|
Deprecated by Canvas |
|
(click on headings to toggle) |
|
Event Handling
|
Work in progress This article or section will be worked on in the upcoming hours or days. See history for the latest developments.
|
|
please keep in mind that you need to set up your z-index properly, or the corresponding group may not even receive any events due to overlapping stuff.
|
|
Using Online Imagery
|
I'd try to troubleshoot this step-by-step, e.g.:
- use a static LOCAL raster image (on disk/in fgdata - e.g. a splash screen -if this doesn't work, your Canvas/Image isn't set up properly, check visibility and z-index)
- use a http URL (e.g. the google/flightgear logo - if this doesn't work, check for errors/networking issues)
- use a dynamically-built URL - if this doesn't work, check your URL building scheme
|
|
Textures not shown properly
|
For starters, I'd suggest to work with textures that can be more easily recognized, i.e. some checker pattern or red as a color, to see what could be going on - otherwise, there's too much guessing involved, which is tedious for us given that we don't have access to your aircraft. So if you are hoping for more specific advice, open the texture in GIMP/photoshop and use some pattern for each different face that we can more easliy identify to see what's going on
|
|
|
I'd just copy the livery texture to a new file and fill each part with a separate pattern/color to see what's going on - that will tell us if we can work around the issue by editing the model, the texture, the Nasal code - or if we need to look at the C++ code
So far, this could be just a simple matter of changing scale/transforming the texture a bit (hopefully)
|
|