Howto:Canvas Troubleshooting

From FlightGear wiki
Jump to: navigation, search


Event Handling

WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.
Cquote1.png 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.
— Hooray (Sat Jul 26). Re: Event Click Listener on SVG element.
(powered by Instant-Cquotes)
Cquote2.png

Using Online Imagery

Cquote1.png 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

Cquote2.png

Textures not shown properly

Cquote1.png 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
— Hooray (Wed Sep 17). Re: Two Images to a Texture.
(powered by Instant-Cquotes)
Cquote2.png
Cquote1.png 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)


— Hooray (Wed Sep 17). Re: Two Images to a Texture.
(powered by Instant-Cquotes)
Cquote2.png