Lary

Members
  • Content count

    5
  • Joined

  • Last visited

  1. friend, your heartful and long reply is very much appreciated. and I'm happy that you treat me like a child, lol. Actually I'm rather a rookie at babylonjs, I really like using it to make fancy and fantastic effect, thanks for your guys' effort in contributing to this incredible framework. regards! Lastly, I will try to put my project at PG, and will @ you once finished. Time to sleep in China, good night!
  2. Thanks for your example, Wingnut. I know new BABYLON.GradientMaterial() can be applied in gradient material. But I came across errors with "Uncaught TypeError: Cannot read property 'getTextureMatrix' of null" Do you have the same problem? Could you tell me which version of babylonjs file you include ?
  3. Thanks for correcting the category, DK. I haven't tried to post on PG before. I may create one later. Can you tell me which files to include if I want to use gradientMaterial? I included gradientMaterial.js and Babylonjs.3.0.js, but came across above errors. I was told there maybe a conflict between material.js and babylon.js / Do you have any ideas?
  4. Hi all, I want to make a gradient material, which has silver color from top and purple color at bottm ( pls. see attached pic); I found "babylon.gradientMaterial.min.js" this file from github. and copied code from https://doc.babylonjs.com/extensions/gradient ; var sphere = BABYLON.Mesh.CreateSphere("sphere", 32, 2, scene); var gradientMaterial = new BABYLON.GradientMaterial("grad", scene); gradientMaterial.topColor = BABYLON.Color3.Red(); // Set the gradient top color gradientMaterial.bottomColor = BABYLON.Color3.Blue(); // Set the gradient bottom color gradientMaterial.offset = 0.25; sphere.material = gradientMaterial; but I came across the problem with "Uncaught TypeError: Cannot read property 'getTextureMatrix' of null" Can anybody help me what caused this error? can you suggest any other solution to gradient effect, except shadows, coz it's quite hard for me to learn in short time in my project. Thanks in advance.
  5. Hi All, plz. help me with this issue. I'm applying a texture mapping to an object, but it turns out to be multicolors on the surface. see the below left picture shown(desk and sofa). I wonder if it's caused by binary file? Coz when I set binary false, it worked as the mapping picture I wanted(see below right picture). What can I do if I want to use binary file while showing the correct mapping on object. Thanks in advance.