⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultmaterials.java

📁 JAVA3D矩陈的相关类
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * $RCSfile: DefaultMaterials.java,v $ * * Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistribution of source code must retain the above copyright *   notice, this list of conditions and the following disclaimer. * * - Redistribution in binary form must reproduce the above copyright *   notice, this list of conditions and the following disclaimer in *   the documentation and/or other materials provided with the *   distribution. * * Neither the name of Sun Microsystems, Inc. or the names of * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * This software is provided "AS IS," without a warranty of any * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY * EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL * NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF * USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR * ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, * CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND * REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR * INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed, licensed or * intended for use in the design, construction, operation or * maintenance of any nuclear facility. * * $Revision: 1.4 $ * $Date: 2007/02/09 17:20:10 $ * $State: Exp $ */package com.sun.j3d.loaders.objectfile;/** * This class provides default materials for the object file loader */class DefaultMaterials {  /**   * String that describes the default materials.   */  static final String materials =     "newmtl amber\n" +    "Ka 0.0531 0.0531 0.0531\n" +    "Kd 0.5755 0.2678 0.0000\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl amber_trans\n" +    "Ka 0.0531 0.0531 0.0531\n" +    "Kd 0.5755 0.2678 0.0000\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "d 0.8400\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl charcoal\n" +    "Ka 0.0082 0.0082 0.0082\n" +    "Kd 0.0041 0.0041 0.0041\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl lavendar\n" +    "Ka 0.1281 0.0857 0.2122\n" +    "Kd 0.2187 0.0906 0.3469\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl navy_blue\n" +    "Ka 0.0000 0.0000 0.0490\n" +    "Kd 0.0000 0.0000 0.0531\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl pale_green\n" +    "Ka 0.0444 0.0898 0.0447\n" +    "Kd 0.0712 0.3796 0.0490\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl pale_pink\n" +    "Ka 0.0898 0.0444 0.0444\n" +    "Kd 0.6531 0.2053 0.4160\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl pale_yellow\n" +    "Ka 0.3606 0.3755 0.0935\n" +    "Kd 0.6898 0.6211 0.1999\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl peach\n" +    "Ka 0.3143 0.1187 0.0167\n" +    "Kd 0.6367 0.1829 0.0156\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl periwinkle\n" +    "Ka 0.0000 0.0000 0.1184\n" +    "Kd 0.0000 0.0396 0.8286\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl redwood\n" +    "Ka 0.0204 0.0027 0.0000\n" +    "Kd 0.2571 0.0330 0.0000\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl smoked_glass\n" +    "Ka 0.0000 0.0000 0.0000\n" +    "Kd 0.0041 0.0041 0.0041\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "d 0.9800\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl aqua_filter\n" +    "Ka 0.0000 0.0000 0.0000\n" +    "Kd 0.3743 0.6694 0.5791\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "d 0.9800\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl yellow_green\n" +    "Ka 0.0000 0.0000 0.0000\n" +    "Kd 0.1875 0.4082 0.0017\n" +    "Ks 0.1878 0.1878 0.1878\n" +    "illum 2\n" +    "Ns 91.4700\n" +    "\n" +    "newmtl bluetint\n" +    "Ka 0.1100 0.4238 0.5388\n" +    "Kd 0.0468 0.7115 0.9551\n" +    "Ks 0.3184 0.3184 0.3184\n" +    "illum 9\n" +    "d 0.5700\n" +    "Ns 60.0000\n" +    "sharpness 60.0000\n" +    "\n" +    "newmtl plasma\n" +    "Ka 0.4082 0.0816 0.2129\n" +    "Kd 1.0000 0.0776 0.4478\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 9\n" +    "d 0.7500\n" +    "Ns 60.0000\n" +    "sharpness 60.0000\n" +    "\n" +    "newmtl emerald\n" +    "Ka 0.0470 1.0000 0.0000\n" +    "Kd 0.0470 1.0000 0.0000\n" +    "Ks 0.2000 0.2000 0.2000\n" +    "illum 9\n" +    "d 0.7500\n" +    "Ns 60.0000\n" +    "sharpness 60.0000\n" +    "\n" +    "newmtl ruby\n" +    "Ka 1.0000 0.0000 0.0000\n" +    "Kd 1.0000 0.0000 0.0000\n" +    "Ks 0.2000 0.2000 0.2000\n" +    "illum 9\n" +    "d 0.7500\n" +    "Ns 60.0000\n" +    "sharpness 60.0000\n" +    "\n" +    "newmtl sapphire\n" +    "Ka 0.0235 0.0000 1.0000\n" +    "Kd 0.0235 0.0000 1.0000\n" +    "Ks 0.2000 0.2000 0.2000\n" +    "illum 9\n" +    "d 0.7500\n" +    "Ns 60.0000\n" +    "sharpness 60.0000\n" +    "\n" +    "newmtl white\n" +    "Ka 0.4000 0.4000 0.4000\n" +    "Kd 1.0000 1.0000 1.0000\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl red\n" +    "Ka 0.4449 0.0000 0.0000\n" +    "Kd 0.7714 0.0000 0.0000\n" +    "Ks 0.8857 0.0000 0.0000\n" +    "illum 2\n" +    "Ns 136.4300\n" +    "\n" +    "newmtl blue_pure\n" +    "Ka 0.0000 0.0000 0.5000\n" +    "Kd 0.0000 0.0000 1.0000\n" +    "Ks 0.0000 0.0000 0.5000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl lime\n" +    "Ka 0.0000 0.5000 0.0000\n" +    "Kd 0.0000 1.0000 0.0000\n" +    "Ks 0.0000 0.5000 0.0000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl green\n" +    "Ka 0.0000 0.2500 0.0000\n" +    "Kd 0.0000 0.2500 0.0000\n" +    "Ks 0.0000 0.2500 0.0000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl yellow\n" +    "Ka 1.0000 0.6667 0.0000\n" +    "Kd 1.0000 0.6667 0.0000\n" +    "Ks 1.0000 0.6667 0.0000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl purple\n" +    "Ka 0.5000 0.0000 1.0000\n" +    "Kd 0.5000 0.0000 1.0000\n" +    "Ks 0.5000 0.0000 1.0000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl orange\n" +    "Ka 1.0000 0.1667 0.0000\n" +    "Kd 1.0000 0.1667 0.0000\n" +    "Ks 1.0000 0.1667 0.0000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl grey\n" +    "Ka 0.5000 0.5000 0.5000\n" +    "Kd 0.1837 0.1837 0.1837\n" +    "Ks 0.5000 0.5000 0.5000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl rubber\n" +    "Ka 0.0000 0.0000 0.0000\n" +    "Kd 0.0100 0.0100 0.0100\n" +    "Ks 0.1000 0.1000 0.1000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl flaqua\n" +    "Ka 0.0000 0.4000 0.4000\n" +    "Kd 0.0000 0.5000 0.5000\n" +    "illum 1\n" +    "\n" +    "newmtl flblack\n" +    "Ka 0.0000 0.0000 0.0000\n" +    "Kd 0.0041 0.0041 0.0041\n" +    "illum 1\n" +    "\n" +    "newmtl flblue_pure\n" +    "Ka 0.0000 0.0000 0.5592\n" +    "Kd 0.0000 0.0000 0.7102\n" +    "illum 1\n" +    "\n" +    "newmtl flgrey\n" +    "Ka 0.2163 0.2163 0.2163\n" +    "Kd 0.5000 0.5000 0.5000\n" +    "illum 1\n" +    "\n" +    "newmtl fllime\n" +    "Ka 0.0000 0.3673 0.0000\n" +    "Kd 0.0000 1.0000 0.0000\n" +    "illum 1\n" +    "\n" +    "newmtl florange\n" +    "Ka 0.6857 0.1143 0.0000\n" +    "Kd 1.0000 0.1667 0.0000\n" +    "illum 1\n" +    "\n" +    "newmtl flpurple\n" +    "Ka 0.2368 0.0000 0.4735\n" +    "Kd 0.3755 0.0000 0.7510\n" +    "illum 1\n" +    "\n" +    "newmtl flred\n" +    "Ka 0.4000 0.0000 0.0000\n" +    "Kd 1.0000 0.0000 0.0000\n" +    "illum 1\n" +    "\n" +    "newmtl flyellow\n" +    "Ka 0.7388 0.4925 0.0000\n" +    "Kd 1.0000 0.6667 0.0000\n" +    "illum 1\n" +    "\n" +    "newmtl pink\n" +    "Ka 0.9469 0.0078 0.2845\n" +    "Kd 0.9878 0.1695 0.6702\n" +    "Ks 0.7429 0.2972 0.2972\n" +    "illum 2\n" +    "Ns 106.2000\n" +    "\n" +    "newmtl flbrown\n" +    "Ka 0.0571 0.0066 0.0011\n" +    "Kd 0.1102 0.0120 0.0013\n" +    "illum 1\n" +    "\n" +    "newmtl brown\n" +    "Ka 0.1020 0.0185 0.0013\n" +    "Kd 0.0857 0.0147 0.0000\n" +    "Ks 0.1633 0.0240 0.0000\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl glass\n" +    "Ka 1.0000 1.0000 1.0000\n" +    "Kd 0.4873 0.4919 0.5306\n" +    "Ks 0.6406 0.6939 0.9020\n" +    "illum 2\n" +    "Ns 200.0000\n" +    "\n" +    "newmtl flesh\n" +    "Ka 0.4612 0.3638 0.2993\n" +    "Kd 0.5265 0.4127 0.3374\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl aqua\n" +    "Ka 0.0000 0.4000 0.4000\n" +    "Kd 0.0000 0.5000 0.5000\n" +    "Ks 0.5673 0.5673 0.5673\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl black\n" +    "Ka 0.0000 0.0000 0.0000\n" +    "Kd 0.0020 0.0020 0.0020\n" +    "Ks 0.5184 0.5184 0.5184\n" +    "illum 2\n" +    "Ns 157.3600\n" +    "\n" +    "newmtl silver\n" +    "Ka 0.9551 0.9551 0.9551\n" +    "Kd 0.6163 0.6163 0.6163\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl dkblue_pure\n" +    "Ka 0.0000 0.0000 0.0449\n" +    "Kd 0.0000 0.0000 0.1347\n" +    "Ks 0.0000 0.0000 0.5673\n" +    "illum 2\n" +    "Ns 65.8900\n" +    "\n" +    "newmtl fldkblue_pure\n" +    "Ka 0.0000 0.0000 0.0449\n" +    "Kd 0.0000 0.0000 0.1347\n" +    "illum 1\n" +    "\n" +    "newmtl dkgreen\n" +    "Ka 0.0000 0.0122 0.0000\n" +    "Kd 0.0058 0.0245 0.0000\n" +    "Ks 0.0000 0.0490 0.0000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl dkgrey\n" +    "Ka 0.0490 0.0490 0.0490\n" +    "Kd 0.0490 0.0490 0.0490\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl ltbrown\n" +    "Ka 0.1306 0.0538 0.0250\n" +    "Kd 0.2776 0.1143 0.0531\n" +    "Ks 0.3000 0.1235 0.0574\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl fldkgreen\n" +    "Ka 0.0000 0.0122 0.0000\n" +    "Kd 0.0058 0.0245 0.0000\n" +    "illum 1\n" +    "\n" +    "newmtl flltbrown\n" +    "Ka 0.1306 0.0538 0.0250\n" +    "Kd 0.2776 0.1143 0.0531\n" +    "illum 1\n" +    "\n" +    "newmtl tan\n" +    "Ka 0.4000 0.3121 0.1202\n" +    "Kd 0.6612 0.5221 0.2186\n" +    "Ks 0.5020 0.4118 0.2152\n" +    "illum 2\n" +    "Ns 60.0000\n" +    "\n" +    "newmtl fltan\n" +    "Ka 0.4000 0.3121 0.1202\n" +    "Kd 0.6612 0.4567 0.1295\n" +    "illum 1\n" +    "\n" +    "newmtl brzskin\n" +    "Ka 0.4408 0.2694 0.1592\n" +    "Kd 0.3796 0.2898 0.2122\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 25.0000\n" +    "\n" +    "newmtl lips\n" +    "Ka 0.4408 0.2694 0.1592\n" +    "Kd 0.9265 0.2612 0.2898\n" +    "Ks 0.3000 0.3000 0.3000\n" +    "illum 2\n" +    "Ns 25.0000\n" +    "\n" +    "newmtl redorange\n" +    "Ka 0.3918 0.0576 0.0000\n" +    "Kd 0.7551 0.0185 0.0000\n" +    "Ks 0.4694 0.3224 0.1667\n" +    "illum 2\n" +    "Ns 132.5600\n" +    "\n" +    "newmtl blutan\n" +    "Ka 0.4408 0.2694 0.1592\n" +    "Kd 0.0776 0.2571 0.2041\n" +    "Ks 0.1467 0.1469 0.0965\n" +    "illum 2\n" +    "Ns 25.0000\n" +    "\n" +    "newmtl bluteal\n" +    "Ka 0.0041 0.1123 0.1224\n" +    "Kd 0.0776 0.2571 0.2041\n" +    "Ks 0.1467 0.1469 0.0965\n" +    "illum 2\n" +    "Ns 25.0000\n" +    "\n" +    "newmtl pinktan\n" +    "Ka 0.4408 0.2694 0.1592\n" +    "Kd 0.6857 0.2571 0.2163\n" +    "Ks 0.1467 0.1469 0.0965\n" +    "illum 2\n" +    "Ns 25.0000\n" +    "\n" +    "newmtl brnhair\n" +    "Ka 0.0612 0.0174 0.0066\n" +    "Kd 0.0898 0.0302 0.0110\n" +    "Ks 0.1306 0.0819 0.0352\n" +    "illum 2\n" +    "Ns 60.4700\n" +    "\n" +    "newmtl blondhair\n" +    "Ka 0.4449 0.2632 0.0509\n" +    "Kd 0.5714 0.3283 0.0443\n" +    "Ks 0.7755 0.4602 0.0918\n" +

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -