Changes

Jump to navigation Jump to search
Line 168: Line 168:     
=== Canvas Code ===
 
=== Canvas Code ===
From the code snippets above and [[Howto:Using_raster_images_and_nested_canvases]], I've put together my first attempt at some Canvas code. It appears that the canvas is the right size, and both .jpg and .png textures are loaded. But the placement line does not seem to make any difference to the texture on the named model object ("Fuselage").
+
From the code snippets above and [[Howto:Using_raster_images_and_nested_canvases]], I've put together my first attempt at some Canvas code. It appears that the canvas is the right size, and both .jpg and .png textures are loaded. But the placement line did not seem to make any difference to the texture on the named model object ("Fuselage"). When the native XML/Nasal livery object was commented out, the image was successfully displayed on the fuselage, but incorrectly sized and apparently without UV mapping (see image below).
    
<syntaxhighlight lang="nasal">
 
<syntaxhighlight lang="nasal">
80

edits

Navigation menu