2017-07-15 14:55:56 -07:00
<!doctype html>
< html >
< head >
< meta http-equiv = "X-UA-Compatible" content = "chrome=1" >
< title > Texture Mapping | LeoCAD< / title >
< link rel = "stylesheet" href = "../main.css" >
< / head >
< body >
< div class = "container" >
<!-- navbar start -->
< div class = "nav-main" >
< div class = "wrap" >
< a class = "nav-home" href = "../index.html" > < img class = "nav-logo" src = "../leocad-32.png" width = "32" height = "32" > LeoCAD < / a >
< ul class = "nav-site nav-site-internal" >
< li > < a href = "../download.html" > Download< / a > < / li >
< li > < a href = "start.html" class = "active" > Documentation< / a > < / li >
<!-- <li><a href="../help.html">Help</a></li> -->
< / ul >
< ul class = "nav-site nav-site-external" >
< li > < a href = "https://github.com/leozide/leocad" > GitHub< / a > < / li >
< / ul >
< / div >
< / div >
<!-- navbar end -->
< section class = "content wrap documentationContent" >
<!-- docbar start -->
< div class = "nav-docs" >
< div class = "nav-docs-section" >
< h3 > General Information< / h3 >
< ul >
< li > < a href = "start.html" > Getting Started< / a > < / li >
< li > < a href = "library.html" > Parts Library< / a > < / li >
< li > < a href = "compiling.html" > Compiling Guide< / a > < / li >
< li > < a href = "license.html" > License< / a > < / li >
< li > < a href = "history.html" > Version History< / a > < / li >
< / ul >
< / div >
< div class = "nav-docs-section" >
< h3 > Tutorials< / h3 >
< ul >
<!--
< li > < a href = "" > Choosing and Adding Pieces< / a > < / li >
< li > < a href = "" > Moving and Rotating Pieces< / a > < / li >
< li > < a href = "camera.html" > Camera and Viewport< / a > < / li >
< li > < a href = "" > Models< / a > < / li >
< li > < a href = "" > Flexible Parts< / a > < / li >
Keyframing
POV-Ray
-->
< li > < a href = "tutorial1.html" > Basic Tutorial< / a > < / li >
2018-02-24 18:08:50 -08:00
< li > < a href = "rotation.html" > Rotation Center< / a > < / li >
2017-07-15 14:55:56 -07:00
< / ul >
< / div >
<!-- <li><a href="">Coordinate System</a></li>
< li > < a href = "" > Configuration Shortcuts< / a > < / li >
-->
< div class = "nav-docs-section" >
< h3 > Reference< / h3 >
< ul >
< li > < a href = "meta.html" > Meta Commands< / a > < / li >
< li > < a href = "texmap.html" class = "active" > Texture Mapping< / a > < / li >
< / ul >
< / div >
< / div >
<!-- docbar end -->
< div class = "inner-content" >
< h2 > Texture Mapping< / h2 >
< div class = "subHeader" > < / div >
2018-02-17 11:49:01 -08:00
< p > LeoCAD supports texture-mapped primitives through the < a href = "http://www.ldraw.org/documentation/ldraw-org-file-format-standards/language-extension-for-texture-mapping.html" > LDraw TEXMAP extension< / a > .< / p >
2017-07-15 14:55:56 -07:00
< h4 > Example< / h4 >
2018-02-17 11:49:01 -08:00
< p > One of the uses for texture mapping could be to use photos or images as reference images for your model while building it.< / p >
2017-07-15 14:55:56 -07:00
< p class = "centerImage" > < img src = "texmap-01.png" / > < / p >
2018-02-17 11:49:01 -08:00
< p > The planes in the image above are drawn by the use of PNG files as textures by using the following code in the file:< / p >
2017-07-15 14:55:56 -07:00
< div class = "highlight" >
< code >
0 !TEXMAP START PLANAR 100 10 100 100 10 -100 -100 10 100 bottom.png< br / >
4 16 100 1 -100 100 1 100 -100 1 100 -100 1 -100< br / >
0 !TEXMAP END< br / >
< br / >
0 !TEXMAP START PLANAR -100 -200 10 100 -200 10 -100 0 10 side.png< br / >
4 16 100 -200 120 100 0 120 -100 0 120 -100 -200 120< br / >
0 !TEXMAP END< br / >
< br / >
0 !TEXMAP START PLANAR 0 -200 100 0 -200 -100 0 0 100 side.png< br / >
4 16 120 -200 100 120 0 100 120 0 -100 120 -200 -100< br / >
0 !TEXMAP END< br / >
< / code >
< / div >
< / div >
< / section >
<!-- footer start -->
< footer class = "wrap" > < div class = "right" > © LeoCAD.org < / div > < / footer >
<!-- footer end -->
< / div >
< / body >
< / html >