mrdoob/three.js — Issue #1107: Blender -> Obj -> Converter -> WebGL renderer question
Author: plopidou
Created: 2012-01-14 19:17:49+00:00
State: open

Hello all

As this is my first post in here, thanks for three.js! :)

Second is as in subject:

* I have this model in blender 2.61, that I export to an OBJ file (Include normals ticked, Material groups ticked).
* I run the OBJ converter just fine.
* Now when I use the OBJ file from Javascript, it seems as if the two material files that are _actually_ declared in the final .js ... are never called (checking the network tabs on FF and Chrome).

Since I am obviously forgetting something or doing it altogether wrong, here is the code fragment: :-)

var tree_loader = new THREE.JSONLoader();
var trees_merged = new THREE.Geometry();
var trees_mesh;

var tree_callback = function(geometry){

var tree_mesh;

for ( var i=0,l=terrain_geometry.vertices.length;i 2.98){
tree_mesh = new THREE.Mesh(
geometry,
new THREE.MeshFaceMaterial({transparent:true})
);

tree_mesh.position.set(
Math.random()*2560-1280,
0,
Math.random()*2560-1280
);

tree_mesh.rotation.set(
Math.random() * ( Math.PI / 180 ),
Math.random() * 360 * ( Math.PI / 180 ),
Math.random() * ( Math.PI / 180 )
);

tree_mesh.scale.set(
Math.random()+0.5,
Math.random()+0.5,
Math.random()+0.5
);

THREE.GeometryUtils.merge(trees_merged, tree_mesh);
}
}

trees_mesh = new THREE.Mesh(
trees_merged,
new THREE.MeshFaceMaterial()
);
trees_mesh.castShadow = true;
trees_mesh.updateMatrix();
trees_mesh.doubleSided = true;

scene.add(trees_mesh);
};

tree_loader.load(
'myfile.js',
function(geometry){
tree_callback(geometry);
}
);

"myfile.js" is:

{

"metadata" :
{
"formatVersion" : 3,
"sourceFile" : "tree277.obj",
"generatedBy" : "OBJConverter",
"vertices" : 328,
"faces" : 277,
"normals" : 150,
"colors" : 0,
"uvs" : 49,
"materials" : 2
},

"scale" : 1.000000,

"materials": [	{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "cross09png_cross09.pn_cross09.png.001",
"colorAmbient" : [0.0, 0.0, 0.0],
"colorDiffuse" : [0.64, 0.64, 0.64],
"colorSpecular" : [0.0, 0.0, 0.0],
"illumination" : 2,
"mapDiffuse" : "cross09.png",
"opticalDensity" : 1.0,
"specularCoef" : 92.156863,
"transparency" : 1.0
},

{
"DbgColor" : 15597568,
"DbgIndex" : 1,
"DbgName" : "wood02png_wood02.png._wood02.png.001",
"colorAmbient" : [0.0, 0.0, 0.0],
"colorDiffuse" : [0.64, 0.64, 0.64],
"colorSpecular" : [0.0, 0.0, 0.0],
"illumination" : 2,
"mapDiffuse" : "wood02.png",
"opticalDensity" : 1.0,
"specularCoef" : 92.156863,
"transparency" : 1.0
}],

"vertices": [-1.585200,6.429183,-8.401948,-1.074440,13.586800,-2.731786,0.181550,6.596828,2.686582,-0.329209,-0.560767,-2.983580,3.226220,9.992742,-5.958037,-5.885850,10.023202,-5.175698,-4.629860,3.033270,0.242666,4.482200,3.002790,-0.539668,-7.768430,4.237820,0.336783,-6.072320,12.624500,1.313104,0.753754,8.048200,0.298483,-0.942355,-0.338507,-0.677834,-7.345030,9.011292,-3.420628,-6.495720,7.851058,5.070512,0.330353,3.274728,4.055892,-0.518954,4.434972,-4.435248,0.718208,6.252646,7.804122,0.340836,13.282998,3.811074,-0.303457,8.206860,-2.227378,0.073915,1.176470,1.765680,-3.491140,9.812688,6.266532,4.550180,9.722998,5.348662,3.905890,4.646820,-0.689784,-4.135430,4.736510,0.228083,7.943140,6.821720,-1.125958,3.611230,12.809800,0.609273,-2.301200,8.522510,0.595589,2.030710,2.534450,-1.139640,6.239200,9.079258,3.436582,5.315170,10.552202,-3.953266,-0.597256,6.264970,-3.966948,0.326772,4.791998,3.422902,-0.819690,7.274192,-7.169398,-0.340108,13.712702,-4.203746,0.084078,9.584570,1.169623,-0.395504,3.146030,-1.796030,2.936930,10.462202,-6.187476,-4.096730,10.524702,-5.185666,-3.672540,6.396530,0.187705,3.361120,6.334070,-0.814106,-7.594110,5.978690,0.699674,-4.729140,11.852300,1.839644,1.256300,10.138900,0.215610,-1.608670,4.265290,-0.924360,-6.652430,9.769620,-1.897597,-5.670820,8.061408,4.436913,0.314623,6.348010,2.812872,-0.666991,8.056222,-3.521628,-0.077214,10.612798,6.356624,-0.930111,13.684000,1.063994,-0.623103,9.574552,-3.041866,0.229794,6.503320,2.250762,-3.549160,12.191498,4.226084,2.541840,12.105298,3.194524,2.848840,7.995850,-0.911331,-3.242150,8.082020,0.120229,4.732480,10.310100,-1.981256,2.351560,15.115100,0.061596,-1.407580,11.278300,0.584703,0.973333,6.473250,-1.458158,4.026850,11.813000,1.721244,3.057190,13.612202,-3.640906,-0.701957,9.775372,-3.117796,0.267705,7.976130,2.244342,-1.042700,14.592100,-1.008256,-0.027752,14.193798,4.192945,0.269879,9.513390,2.122704,-0.745072,9.911752,-3.078496,2.072520,14.381300,1.082584,-3.142970,14.404600,2.102114,-2.845340,9.724260,0.031864,2.370150,9.700880,-0.987664,-4.515760,13.840400,0.910997,0.299549,14.091800,0.008190,2.149590,10.675100,-0.970478,-2.665720,10.423700,-0.067672,-2.573170,14.896200,-1.761906,-1.643040,13.036000,2.681094,0.207000,9.619330,1.702424,-0.723135,11.479400,-2.740576,0.757540,0.001438,-0.414112,-0.335588,13.718300,-0.675001,0.364561,0.001494,-0.006181,-0.335588,13.718300,-0.675001,0.107451,-0.000223,-0.161453,-0.335588,13.718300,-0.675001,0.041393,-0.001476,-0.396979,-0.335588,13.718300,-0.675001,-0.095346,-0.001390,-0.239112,-0.335588,13.718300,-0.675001,-0.495486,-0.003826,-0.424198,-0.335588,13.718300,-0.675001,-0.387745,-0.001984,-0.088627,-0.335588,13.718300,-0.675001,-0.311574,-0.000956,0.082423,-0.335588,13.718300,-0.675001,-0.340583,-0.000123,0.312189,-0.335588,13.718300,-0.675001,-0.038839,0.000286,0.107886,-0.335588,13.718300,-0.675001,0.047388,0.001617,0.341797,-0.335588,13.718300,-0.675001,0.281817,0.002810,0.393841,-0.335588,13.718300,-0.675001,0.215264,0.001347,0.108367,-0.335588,13.718300,-0.675001,0.364561,0.001494,-0.006181,-0.335588,13.718300,-0.675001,0.435407,2.713290,-0.434081,-1.329820,10.008002,-5.566867,0.203293,3.017100,-0.172294,-1.329820,10.008002,-5.566867,-0.036138,2.907760,-0.239646,-1.329820,10.008002,-5.566867,-0.183744,2.791720,-0.319984,-1.329820,10.008002,-5.566867,-0.238562,2.928220,-0.206473,-1.329820,10.008002,-5.566867,-0.569586,3.019690,-0.105937,-1.329820,10.008002,-5.566867,-0.308439,3.158430,-0.016930,-1.329820,10.008002,-5.566867,-0.136466,3.201280,0.002967,-1.329820,10.008002,-5.566867,0.053402,3.280000,0.049999,-1.329820,10.008002,-5.566867,-0.000453,3.058030,-0.122679,-1.329820,10.008002,-5.566867,0.203293,3.017100,-0.172294,-1.329820,10.008002,-5.566867,-0.212273,3.575270,-0.711104,-6.920370,8.431180,0.824941,-0.119428,3.889170,-0.440891,-6.920370,8.431180,0.824941,-0.123815,3.734970,-0.245578,-6.920370,8.431180,0.824941,-0.138043,3.584910,-0.134767,-6.920370,8.431180,0.824941,-0.100772,3.732270,-0.058173,-6.920370,8.431180,0.824941,-0.049349,3.793440,0.259736,-6.920370,8.431180,0.824941,-0.039949,3.983650,0.050553,-6.920370,8.431180,0.824941,-0.045252,4.054060,-0.096773,-6.920370,8.431180,0.824941,-0.043666,4.167310,-0.253232,-6.920370,8.431180,0.824941,-0.091417,3.909450,-0.248250,-6.920370,8.431180,0.824941,-0.119428,3.889170,-0.440891,-6.920370,8.431180,0.824941,-0.540712,4.416470,-0.021421,0.529522,9.767838,5.807592,-0.344975,4.694230,-0.204574,0.529522,9.767838,5.807592,-0.147144,4.590270,-0.168704,0.529522,9.767838,5.807592,-0.025653,4.481260,-0.120730,0.529522,9.767838,5.807592,0.021199,4.606680,-0.198421,0.529522,9.767838,5.807592,0.297049,4.687070,-0.277857,0.529522,9.767838,5.807592,0.081464,4.818450,-0.327336,0.529522,9.767838,5.807592,-0.060973,4.860160,-0.334125,0.529522,9.767838,5.807592,-0.217930,4.935210,-0.358319,0.529522,9.767838,5.807592,-0.175336,4.729520,-0.245295,0.529522,9.767838,5.807592,-0.344975,4.694230,-0.204574,0.529522,9.767838,5.807592,0.079368,5.221510,0.051056,5.777190,9.815750,-0.258341,-0.109815,5.487950,-0.068675,5.777190,9.815750,-0.258341,-0.070761,5.438470,-0.262756,5.777190,9.815750,-0.258341,-0.019742,5.370650,-0.390524,5.777190,9.815750,-0.258341,-0.100298,5.483250,-0.407990,5.777190,9.815750,-0.258341,-0.180729,5.600990,-0.635806,5.777190,9.815750,-0.258341,-0.234115,5.669910,-0.420872,5.777190,9.815750,-0.258341,-0.242397,5.678080,-0.287429,5.777190,9.815750,-0.258341,-0.268939,5.711180,-0.134857,5.777190,9.815750,-0.258341,-0.150807,5.548630,-0.211463,5.777190,9.815750,-0.258341,-0.109815,5.487950,-0.068675,5.777190,9.815750,-0.258341,0.180201,6.127110,-0.471805,-0.579899,10.493502,-5.686576,0.028784,6.363660,-0.339479,-0.579899,10.493502,-5.686576,-0.131751,6.279600,-0.356872,-0.579899,10.493502,-5.686576,-0.231219,6.190030,-0.385299,-0.579899,10.493502,-5.686576,-0.266314,6.296150,-0.330473,-0.579899,10.493502,-5.686576,-0.485767,6.368230,-0.266191,-0.579899,10.493502,-5.686576,-0.310472,6.475040,-0.240130,-0.579899,10.493502,-5.686576,-0.195533,6.507720,-0.240627,-0.579899,10.493502,-5.686576,-0.068310,6.568190,-0.229744,-0.579899,10.493502,-5.686576,-0.106448,6.396100,-0.305507,-0.579899,10.493502,-5.686576,0.028784,6.363660,-0.339479,-0.579899,10.493502,-5.686576,-0.321333,7.080840,-0.693789,-6.161630,8.915510,1.269662,-0.200466,7.244370,-0.511072,-6.161630,8.915510,1.269662,-0.216026,7.135560,-0.394397,-6.161630,8.915510,1.269662,-0.241753,7.036560,-0.330728,-6.161630,8.915510,1.269662,-0.191725,7.117690,-0.276577,-6.161630,8.915510,1.269662,-0.132745,7.126520,-0.074056,-6.161630,8.915510,1.269662,-0.109312,7.257990,-0.198005,-6.161630,8.915510,1.269662,-0.109973,7.312720,-0.287869,-6.161630,8.915510,1.269662,-0.100285,7.393760,-0.381749,-6.161630,8.915510,1.269662,-0.169261,7.239730,-0.389030,-6.161630,8.915510,1.269662,-0.200466,7.244370,-0.511072,-6.161630,8.915510,1.269662,-0.437721,7.944420,-0.180677,-0.503662,12.148398,3.710304,-0.336751,8.040920,-0.371825,-0.503662,12.148398,3.710304,-0.209758,8.003530,-0.330070,-0.503662,12.148398,3.710304,-0.128841,7.964720,-0.276841,-0.503662,12.148398,3.710304,-0.108494,8.008490,-0.358586,-0.503662,12.148398,3.710304,0.053970,8.035390,-0.437996,-0.503662,12.148398,3.710304,-0.085593,8.082480,-0.494546,-0.503662,12.148398,3.710304,-0.174879,8.097780,-0.504369,-0.503662,12.148398,3.710304,-0.275152,8.124840,-0.532963,-0.503662,12.148398,3.710304,-0.235924,8.052500,-0.412017,-0.503662,12.148398,3.710304,-0.336751,8.040920,-0.371825,-0.503662,12.148398,3.710304,-0.108645,8.663160,-0.280890,3.542020,12.712600,-0.959831,-0.196784,8.838010,-0.324239,3.542020,12.712600,-0.959831,-0.188515,8.818550,-0.439916,3.542020,12.712600,-0.959831,-0.172007,8.783580,-0.519394,3.542020,12.712600,-0.959831,-0.208017,8.855480,-0.518761,3.542020,12.712600,-0.959831,-0.253515,8.943270,-0.637960,3.542020,12.712600,-0.959831,-0.267104,8.973690,-0.508521,3.542020,12.712600,-0.959831,-0.264670,8.970800,-0.431426,3.542020,12.712600,-0.959831,-0.269352,8.982450,-0.341035,3.542020,12.712600,-0.959831,-0.221183,8.884780,-0.400186,3.542020,12.712600,-0.959831,-0.196784,8.838010,-0.324239,3.542020,12.712600,-0.959831,-0.077905,9.722060,-0.649015,-0.535227,14.393000,1.592344,-0.140505,9.712130,-0.496879,-0.535227,14.393000,1.592344,-0.231196,9.716250,-0.530000,-0.535227,14.393000,1.592344,-0.290110,9.720440,-0.572284,-0.535227,14.393000,1.592344,-0.300894,9.715900,-0.507240,-0.535227,14.393000,1.592344,-0.411287,9.713350,-0.443947,-0.535227,14.393000,1.592344,-0.311168,9.708200,-0.399066,-0.535227,14.393000,1.592344,-0.248233,9.706450,-0.391318,-0.535227,14.393000,1.592344,-0.176809,9.703460,-0.368646,-0.535227,14.393000,1.592344,-0.209402,9.711090,-0.464831,-0.535227,14.393000,1.592344,-0.140505,9.712130,-0.496879,-0.535227,14.393000,1.592344,-0.392522,10.600300,-0.634051,-2.108110,13.966100,0.459593,-0.272809,10.578900,-0.589492,-2.108110,13.966100,0.459593,-0.299097,10.552200,-0.523411,-2.108110,13.966100,0.459593,-0.332534,10.535300,-0.480359,-2.108110,13.966100,0.459593,-0.281318,10.530900,-0.472917,-2.108110,13.966100,0.459593,-0.231695,10.496600,-0.393104,-2.108110,13.966100,0.459593,-0.196123,10.525900,-0.466105,-2.108110,13.966100,0.459593,-0.189883,10.544700,-0.511870,-2.108110,13.966100,0.459593,-0.171869,10.565700,-0.563891,-2.108110,13.966100,0.459593,-0.247711,10.557600,-0.539635,-2.108110,13.966100,0.459593,-0.272809,10.578900,-0.589492,-2.108110,13.966100,0.459593],

"morphTargets": [],

"morphColors": [],

"normals": [0.98593,0.054745,-0.15792,0.98593,0.054745,-0.15792,0.069243,0.61893,0.78239,0.069244,0.61892,0.78239,-0.061538,0.12768,-0.9899,-0.061537,0.12768,-0.9899,0.56175,0.82537,0.05659,0.56175,0.82537,0.056592,-0.99475,0.004662,0.10222,-0.06428,0.76725,-0.63812,0.1327,-0.18611,0.97353,0.1327,-0.18611,0.97353,-0.57184,0.78789,0.22854,-0.57184,0.78788,0.22855,0.99459,-0.028008,-0.10003,0.99459,-0.028007,-0.10003,0.092789,0.7931,0.60198,0.092784,0.7931,0.60198,-0.17907,0.27091,-0.9458,0.31947,0.92619,0.20026,-0.98637,-0.14718,0.073549,-0.98637,-0.14717,0.073549,-0.10989,0.6984,-0.70722,-0.1099,0.69839,-0.70723,0.34732,-0.21588,0.91256,0.34732,-0.21587,0.91256,-0.64643,0.68041,0.3452,-0.64644,0.68041,0.34521,0.97364,0.14117,-0.17918,0.97364,0.14117,-0.17918,0.17507,-0.38894,0.90448,0.17506,-0.38894,0.90448,-0.19023,0.17376,-0.96624,-0.19023,0.17376,-0.96624,0.88091,0.47308,0.013653,0.88092,0.47307,0.013633,0.7184,0.070414,0.69206,0,0,0,-0.36176,-0.046539,-0.93111,0.96261,0.020976,-0.27009,-0.75545,-0.034017,-0.65433,0.41983,-0.021476,-0.90735,-0.95202,0.016679,0.30557,-0.91336,0.02085,0.40661,-0.99209,-0.00865,-0.12523,0.55961,0.059281,0.82663,-0.93828,-0.000557,0.34588,-0.21657,0.066156,0.97402,0.97352,0.026126,-0.22709,0.6072,0.069586,0.79149,0.86438,0.412,0.28827,-0.50317,-0.57543,-0.64475,0.65291,-0.37485,-0.65817,-0.95421,-0.25961,-0.14863,-0.37958,-0.59494,-0.7085,-0.5046,0.49685,0.70606,-0.23636,0.59019,0.77189,-0.40547,0.53526,0.741,0.96317,-0.025452,-0.26768,0.30097,0.62308,0.72193,0.24971,0.58825,-0.76916,-0.48974,-0.79191,0.36473,-0.46028,-0.49871,-0.73446,-0.17351,-0.41929,0.89112,-0.52906,-0.81333,0.24207,0.48022,0.63812,0.60182,0.53622,0.76892,0.34818,0.51009,0.69428,0.50772,-0.14967,0.008615,-0.9887,0.52649,0.83414,-0.16437,-0.86134,0.44305,-0.2486,0.50069,-0.6815,0.53373,-0.67358,-0.51919,0.52606,0.95299,-0.26494,0.14701,0.37763,-0.71784,0.5849,0.52135,0.64514,-0.55855,0.24771,0.74512,-0.61922,0.42037,0.6887,-0.59074,-0.9764,-0.095867,0.1935,-0.29775,0.75048,-0.59002,-0.1839,0.29129,0.93879,0.45912,-0.61272,-0.64326,0.49889,-0.66706,0.55329,0.09079,-0.088905,-0.99189,0.51183,-0.67604,-0.53009,-0.51937,0.76778,-0.3752,-0.56411,0.82128,-0.085293,-0.54498,0.79473,-0.26722,0.21296,-0.28559,0.93439,-0.51749,0.72393,0.45621,0.87299,0.42903,0.23199,-0.52202,-0.68988,-0.50156,0.65341,-0.56612,-0.50255,-0.95941,-0.2465,-0.137,-0.40163,-0.7321,-0.5502,-0.4971,0.68629,0.53094,-0.21921,0.7799,0.58626,-0.39408,0.72818,0.56076,0.97325,-0.1333,-0.18713,0.32329,0.76638,0.55511,0.00805,0.74247,-0.66983,-0.21354,-0.94498,0.24782,-0.36125,-0.43617,-0.82417,0.040088,-0.57169,0.81949,-0.25845,-0.95891,0.11708,0.34069,0.61209,0.71364,0.33863,0.80472,0.48761,0.3463,0.69216,0.63323,-0.22561,0.14656,-0.96313,0.26144,0.96475,-0.030169,-0.89892,0.28992,-0.32847,0.55026,-0.56251,0.61709,-0.62492,-0.56721,0.53642,0.97674,-0.095472,0.192,0.42657,-0.61295,0.66508,0.46257,0.65989,-0.5921,0.19632,0.71458,-0.67145,0.36469,0.68539,-0.63027,-0.95716,-0.2341,0.17043,-0.34352,0.65496,-0.67307,-0.055689,0.21373,0.9753,0.44168,-0.52069,-0.73062,0.68595,-0.60272,0.40767,-0.083269,-0.032935,-0.99598,0.52218,-0.57926,-0.62593,-0.69516,0.68011,-0.23282,-0.69671,0.71569,0.048819,-0.70425,0.69859,-0.12651,0.43273,-0.30119,0.84972,-0.54894,0.62141,0.55903,0.92313,-0.089096,0.37403,-0.59194,0.30084,-0.74773,0.55843,0.37264,-0.74114,-0.98653,0.023268,-0.16194,-0.47352,0.34086,-0.81216,-0.39516,-0.37531,0.83845,-0.12311,-0.39321,0.91117,-0.29359,-0.3878,0.87374,0.93318,0.19702,-0.30059,0.40011,-0.34518,0.84897,0.38092,0.45559,-0.80458,-0.75168,-0.51643,0.41021,-0.73356,-0.20185,-0.64896,-0.16373,-0.33859,0.92658,-0.81175,-0.50927,0.28584,0.80118,0.30706,0.51364,0.86832,0.40587,0.28512,0.8345,0.34614,0.42871,-0.31314,0.10576,-0.9438,0.83409,0.51398,-0.2003],

"colors": [],

"uvs": [[0,1,1,1,1,2,0,2,-0.076923,1,0,-7,-0.076923,-7,-0.15385,1,-0.15385,-7,-0.23077,1,-0.23077,-7,-0.30769,1,-0.30769,-7,-0.38461,1,-0.38461,-7,-0.46154,1,-0.46154,-7,-0.53846,1,-0.53846,-7,-0.61538,1,-0.61538,-7,-0.69231,1,-0.69231,-7,-0.76923,1,-0.76923,-7,-0.84615,1,-0.84615,-7,-0.92308,1,-0.92308,-7,-1,1,-1,-7,-0.1,1,-0.1,-7,-0.2,1,-0.2,-7,-0.3,1,-0.3,-7,-0.4,1,-0.4,-7,-0.5,1,-0.5,-7,-0.6,1,-0.6,-7,-0.7,1,-0.7,-7,-0.8,1,-0.8,-7,-0.9,1,-0.9,-7]],

"faces": [42,0,1,2,0,0,1,2,0,0,0,42,0,2,3,0,0,2,3,1,1,1,42,4,5,6,0,0,1,2,2,2,2,42,4,6,7,0,0,2,3,3,3,3,42,8,9,10,0,0,1,2,4,4,4,42,8,10,11,0,0,2,3,5,5,5,42,12,13,14,0,0,1,2,6,6,6,42,12,14,15,0,0,2,3,7,7,7,42,16,17,18,0,0,1,2,8,8,8,42,16,18,19,0,0,2,3,8,8,8,42,20,21,22,0,0,1,2,9,9,9,42,20,22,23,0,0,2,3,9,9,9,42,24,25,26,0,0,1,2,10,10,10,42,24,26,27,0,0,2,3,11,11,11,42,28,29,30,0,0,1,2,12,12,12,42,28,30,31,0,0,2,3,13,13,13,42,32,33,34,0,0,1,2,14,14,14,42,32,34,35,0,0,2,3,15,15,15,42,36,37,38,0,0,1,2,16,16,16,42,36,38,39,0,0,2,3,17,17,17,42,40,41,42,0,0,1,2,18,18,18,42,40,42,43,0,0,2,3,18,18,18,42,44,45,46,0,0,1,2,19,19,19,42,44,46,47,0,0,2,3,19,19,19,42,48,49,50,0,0,1,2,20,20,20,42,48,50,51,0,0,2,3,21,21,21,42,52,53,54,0,0,1,2,22,22,22,42,52,54,55,0,0,2,3,23,23,23,42,56,57,58,0,0,1,2,24,24,24,42,56,58,59,0,0,2,3,25,25,25,42,60,61,62,0,0,1,2,26,26,26,42,60,62,63,0,0,2,3,27,27,27,42,64,65,66,0,0,1,2,28,28,28,42,64,66,67,0,0,2,3,29,29,29,42,68,69,70,0,0,1,2,30,30,30,42,68,70,71,0,0,2,3,31,31,31,42,72,73,74,0,0,1,2,32,32,32,42,72,74,75,0,0,2,3,33,33,33,42,76,77,78,0,0,1,2,34,34,34,42,76,78,79,0,0,2,3,35,35,35,42,80,81,82,1,4,5,0,36,36,36,42,80,83,81,1,4,6,5,37,37,37,42,83,80,84,1,6,4,7,38,38,38,42,84,85,83,1,7,8,6,37,37,37,42,86,85,84,1,9,8,7,39,39,39,42,86,87,85,1,9,10,8,37,37,37,42,88,87,86,1,11,10,9,40,40,40,42,88,89,87,1,11,12,10,37,37,37,42,90,89,88,1,13,12,11,41,41,41,42,90,91,89,1,13,14,12,37,37,37,42,92,91,90,1,15,14,13,42,42,42,42,92,93,91,1,15,16,14,37,37,37,42,94,93,92,1,17,16,15,43,43,43,42,94,95,93,1,17,18,16,37,37,37,42,96,95,94,1,19,18,17,44,44,44,42,96,97,95,1,19,20,18,37,37,37,42,98,97,96,1,21,20,19,45,45,45,42,98,99,97,1,21,22,20,37,37,37,42,100,99,98,1,23,22,21,46,46,46,42,100,101,99,1,23,24,22,37,37,37,42,102,101,100,1,25,24,23,47,47,47,42,102,103,101,1,25,26,24,37,37,37,42,104,103,102,1,27,26,25,48,48,48,42,104,105,103,1,27,28,26,37,37,37,42,106,105,104,1,29,28,27,49,49,49,42,106,107,105,1,29,30,28,37,37,37,42,81,107,106,1,5,30,29,37,37,37,42,108,109,110,1,31,5,0,50,50,50,42,108,111,109,1,31,32,5,37,37,37,42,112,111,108,1,33,32,31,51,51,51,42,112,113,111,1,33,34,32,37,37,37,42,114,113,112,1,35,34,33,52,52,52,42,114,115,113,1,35,36,34,37,37,37,42,116,115,114,1,37,36,35,53,53,53,42,116,117,115,1,37,38,36,37,37,37,42,118,117,116,1,39,38,37,54,54,54,42,118,119,117,1,39,40,38,37,37,37,42,120,119,118,1,41,40,39,55,55,55,42,120,121,119,1,41,42,40,37,37,37,42,122,121,120,1,43,42,41,56,56,56,42,122,123,121,1,43,44,42,37,37,37,42,124,123,122,1,45,44,43,57,57,57,42,124,125,123,1,45,46,44,37,37,37,42,126,125,124,1,47,46,45,58,58,58,42,126,127,125,1,47,48,46,37,37,37,42,128,127,126,1,29,48,47,59,59,59,42,128,129,127,1,29,30,48,37,37,37,42,109,129,128,1,5,30,29,37,37,37,42,130,131,132,1,31,5,0,60,60,60,42,130,133,131,1,31,32,5,37,37,37,42,134,133,130,1,33,32,31,61,61,61,42,134,135,133,1,33,34,32,37,37,37,42,136,135,134,1,35,34,33,62,62,62,42,136,137,135,1,35,36,34,37,37,37,42,138,137,136,1,37,36,35,63,63,63,42,138,139,137,1,37,38,36,37,37,37,42,140,139,138,1,39,38,37,64,64,64,42,140,141,139,1,39,40,38,37,37,37,42,142,141,140,1,41,40,39,65,65,65,42,142,143,141,1,41,42,40,37,37,37,42,144,143,142,1,43,42,41,66,66,66,42,144,145,143,1,43,44,42,37,37,37,42,146,145,144,1,45,44,43,67,67,67,42,146,147,145,1,45,46,44,37,37,37,42,148,147,146,1,47,46,45,68,68,68,42,148,149,147,1,47,48,46,37,37,37,42,150,149,148,1,29,48,47,69,69,69,42,150,151,149,1,29,30,48,37,37,37,42,131,151,150,1,5,30,29,37,37,37,42,152,153,154,1,31,5,0,70,70,70,42,152,155,153,1,31,32,5,37,37,37,42,156,155,152,1,33,32,31,71,71,71,42,156,157,155,1,33,34,32,37,37,37,42,158,157,156,1,35,34,33,72,72,72,42,158,159,157,1,35,36,34,37,37,37,42,160,159,158,1,37,36,35,73,73,73,42,160,161,159,1,37,38,36,37,37,37,42,162,161,160,1,39,38,37,74,74,74,42,162,163,161,1,39,40,38,37,37,37,42,164,163,162,1,41,40,39,75,75,75,42,164,165,163,1,41,42,40,37,37,37,42,166,165,164,1,43,42,41,76,76,76,42,166,167,165,1,43,44,42,37,37,37,42,168,167,166,1,45,44,43,77,77,77,42,168,169,167,1,45,46,44,37,37,37,42,170,169,168,1,47,46,45,78,78,78,42,170,171,169,1,47,48,46,37,37,37,42,172,171,170,1,29,48,47,79,79,79,42,172,173,171,1,29,30,48,37,37,37,42,153,173,172,1,5,30,29,37,37,37,42,174,175,176,1,31,5,0,80,80,80,42,174,177,175,1,31,32,5,37,37,37,42,178,177,174,1,33,32,31,81,81,81,42,178,179,177,1,33,34,32,37,37,37,42,180,179,178,1,35,34,33,82,82,82,42,180,181,179,1,35,36,34,37,37,37,42,182,181,180,1,37,36,35,83,83,83,42,182,183,181,1,37,38,36,37,37,37,42,184,183,182,1,39,38,37,84,84,84,42,184,185,183,1,39,40,38,37,37,37,42,186,185,184,1,41,40,39,85,85,85,42,186,187,185,1,41,42,40,37,37,37,42,188,187,186,1,43,42,41,86,86,86,42,188,189,187,1,43,44,42,37,37,37,42,190,189,188,1,45,44,43,87,87,87,42,190,191,189,1,45,46,44,37,37,37,42,192,191,190,1,47,46,45,88,88,88,42,192,193,191,1,47,48,46,37,37,37,42,194,193,192,1,29,48,47,89,89,89,42,194,195,193,1,29,30,48,37,37,37,42,175,195,194,1,5,30,29,37,37,37,42,196,197,198,1,31,5,0,90,90,90,42,196,199,197,1,31,32,5,37,37,37,42,200,199,196,1,33,32,31,91,91,91,42,200,201,199,1,33,34,32,37,37,37,42,202,201,200,1,35,34,33,92,92,92,42,202,203,201,1,35,36,34,37,37,37,42,204,203,202,1,37,36,35,93,93,93,42,204,205,203,1,37,38,36,37,37,37,42,206,205,204,1,39,38,37,94,94,94,42,206,207,205,1,39,40,38,37,37,37,42,208,207,206,1,41,40,39,95,95,95,42,208,209,207,1,41,42,40,37,37,37,42,210,209,208,1,43,42,41,96,96,96,42,210,211,209,1,43,44,42,37,37,37,42,212,211,210,1,45,44,43,97,97,97,42,212,213,211,1,45,46,44,37,37,37,42,214,213,212,1,47,46,45,98,98,98,42,214,215,213,1,47,48,46,37,37,37,42,216,215,214,1,29,48,47,99,99,99,42,216,217,215,1,29,30,48,37,37,37,42,197,217,216,1,5,30,29,37,37,37,42,218,219,220,1,31,5,0,100,100,100,42,218,221,219,1,31,32,5,37,37,37,42,222,221,218,1,33,32,31,101,101,101,42,222,223,221,1,33,34,32,37,37,37,42,224,223,222,1,35,34,33,102,102,102,42,224,225,223,1,35,36,34,37,37,37,42,226,225,224,1,37,36,35,103,103,103,42,226,227,225,1,37,38,36,37,37,37,42,228,227,226,1,39,38,37,104,104,104,42,228,229,227,1,39,40,38,37,37,37,42,230,229,228,1,41,40,39,105,105,105,42,230,231,229,1,41,42,40,37,37,37,42,232,231,230,1,43,42,41,106,106,106,42,232,233,231,1,43,44,42,37,37,37,42,234,233,232,1,45,44,43,107,107,107,42,234,235,233,1,45,46,44,37,37,37,42,236,235,234,1,47,46,45,108,108,108,42,236,237,235,1,47,48,46,37,37,37,42,238,237,236,1,29,48,47,109,109,109,42,238,239,237,1,29,30,48,37,37,37,42,219,239,238,1,5,30,29,37,37,37,42,240,241,242,1,31,5,0,110,110,110,42,240,243,241,1,31,32,5,37,37,37,42,244,243,240,1,33,32,31,111,111,111,42,244,245,243,1,33,34,32,37,37,37,42,246,245,244,1,35,34,33,112,112,112,42,246,247,245,1,35,36,34,37,37,37,42,248,247,246,1,37,36,35,113,113,113,42,248,249,247,1,37,38,36,37,37,37,42,250,249,248,1,39,38,37,114,114,114,42,250,251,249,1,39,40,38,37,37,37,42,252,251,250,1,41,40,39,115,115,115,42,252,253,251,1,41,42,40,37,37,37,42,254,253,252,1,43,42,41,116,116,116,42,254,255,253,1,43,44,42,37,37,37,42,256,255,254,1,45,44,43,117,117,117,42,256,257,255,1,45,46,44,37,37,37,42,258,257,256,1,47,46,45,118,118,118,42,258,259,257,1,47,48,46,37,37,37,42,260,259,258,1,29,48,47,119,119,119,42,260,261,259,1,29,30,48,37,37,37,42,241,261,260,1,5,30,29,37,37,37,42,262,263,264,1,31,5,0,120,120,120,42,262,265,263,1,31,32,5,37,37,37,42,266,265,262,1,33,32,31,121,121,121,42,266,267,265,1,33,34,32,37,37,37,42,268,267,266,1,35,34,33,122,122,122,42,268,269,267,1,35,36,34,37,37,37,42,270,269,268,1,37,36,35,123,123,123,42,270,271,269,1,37,38,36,37,37,37,42,272,271,270,1,39,38,37,124,124,124,42,272,273,271,1,39,40,38,37,37,37,42,274,273,272,1,41,40,39,125,125,125,42,274,275,273,1,41,42,40,37,37,37,42,276,275,274,1,43,42,41,126,126,126,42,276,277,275,1,43,44,42,37,37,37,42,278,277,276,1,45,44,43,127,127,127,42,278,279,277,1,45,46,44,37,37,37,42,280,279,278,1,47,46,45,128,128,128,42,280,281,279,1,47,48,46,37,37,37,42,282,281,280,1,29,48,47,129,129,129,42,282,283,281,1,29,30,48,37,37,37,42,263,283,282,1,5,30,29,37,37,37,42,284,285,286,1,31,5,0,130,130,130,42,284,287,285,1,31,32,5,37,37,37,42,288,287,284,1,33,32,31,131,131,131,42,288,289,287,1,33,34,32,37,37,37,42,290,289,288,1,35,34,33,132,132,132,42,290,291,289,1,35,36,34,37,37,37,42,292,291,290,1,37,36,35,133,133,133,42,292,293,291,1,37,38,36,37,37,37,42,294,293,292,1,39,38,37,134,134,134,42,294,295,293,1,39,40,38,37,37,37,42,296,295,294,1,41,40,39,135,135,135,42,296,297,295,1,41,42,40,37,37,37,42,298,297,296,1,43,42,41,136,136,136,42,298,299,297,1,43,44,42,37,37,37,42,300,299,298,1,45,44,43,137,137,137,42,300,301,299,1,45,46,44,37,37,37,42,302,301,300,1,47,46,45,138,138,138,42,302,303,301,1,47,48,46,37,37,37,42,304,303,302,1,29,48,47,139,139,139,42,304,305,303,1,29,30,48,37,37,37,42,285,305,304,1,5,30,29,37,37,37,42,306,307,308,1,31,5,0,140,140,140,42,306,309,307,1,31,32,5,37,37,37,42,310,309,306,1,33,32,31,141,141,141,42,310,311,309,1,33,34,32,37,37,37,42,312,311,310,1,35,34,33,142,142,142,42,312,313,311,1,35,36,34,37,37,37,42,314,313,312,1,37,36,35,143,143,143,42,314,315,313,1,37,38,36,37,37,37,42,316,315,314,1,39,38,37,144,144,144,42,316,317,315,1,39,40,38,37,37,37,42,318,317,316,1,41,40,39,145,145,145,42,318,319,317,1,41,42,40,37,37,37,42,320,319,318,1,43,42,41,146,146,146,42,320,321,319,1,43,44,42,37,37,37,42,322,321,320,1,45,44,43,147,147,147,42,322,323,321,1,45,46,44,37,37,37,42,324,323,322,1,47,46,45,148,148,148,42,324,325,323,1,47,48,46,37,37,37,42,326,325,324,1,29,48,47,149,149,149,42,326,327,325,1,29,30,48,37,37,37,42,307,327,326,1,5,30,29,37,37,37]

}

Thanks!

Plop