question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression with standard materials

See original GitHub issue

Dear all, I am encoutering a problem with the latest preview version of Babylon, I am creating standard materials using the following code (As GLTF1Loader) :

var result = new BABYLON.StandardMaterial(material.name || "mat" + material.index,loader._babylonScene);

result.sideOrientation = BABYLON.Material.CounterClockWiseSideOrientation;
if (properties.technique === "CONSTANT") {
    result.disableLighting = true;
}
result.backFaceCulling = properties.doubleSided === undefined ? false : !properties.doubleSided;
result.alpha = properties.values.transparency === undefined ? 1.0 : (1.0 - properties.values.transparency);
result.specularPower = properties.values.shininess === undefined ? 0.0 : properties.values.shininess;
result.ambientColor = BABYLON.Color3.FromArray(properties.values.ambient || [0, 0, 0]);
result.diffuseColor = BABYLON.Color3.FromArray(properties.values.diffuse || [0, 0, 0]);
result.emissiveColor = BABYLON.Color3.FromArray(properties.values.emission || [0, 0, 0]);
result.specularColor = BABYLON.Color3.FromArray(properties.values.specular || [0, 0, 0]);
return result;

The materials look wrong (There is transparency, flickering…). That issue have been solved in a previous release but It appeared again. Any idea? Thanks,

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
deltakoshcommented, Mar 12, 2018

So it is fixed:)

0reactions
deltakoshcommented, Mar 12, 2018

It is…😃 it is the preview of the upcoming release while the dist folder contains the current immutable release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple regression model for identification of material ...
IOP Conference Series: Materials Science and Engineering ... of a substance and a reagent, and then compared with a standard color chart to...
Read more >
Using Regression Analysis for Automated Material ...
The proposed method is based on the comprehensive use of normalization and probability approaches and the linear regression procedure formulated in a matrix ......
Read more >
Simple Linear Regression
- xi values that are quite spread out = estimator with a low standard error. - xi all close to one another =...
Read more >
Linear Regression
The dependent variable Y has a linear relationship to the independent variable X. · For each value of X, the probability distribution of...
Read more >
Regression Analysis – Riskprep
The standard error can be used to calculate confidence intervals around an estimate provided by our regression model, because using this we can ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found