New issue
Advanced search Search tips

Issue 846715 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jun 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Matrix computation returns odd results

Reported by sven.fra...@gmail.com, May 25 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Steps to reproduce the problem:
1. Run the scene here : http://playground.babylonjs.com/#SF5KIL
2. Comment / Uncomment the line about sphere.scaling (line 10)

What is the expected behavior?
You would expect this line not to change anything.
-> The scaling variation is very small and should not be noticeable.

What went wrong?
Vertices normal are not properly calculated by the shader, thus causing the odd lightning (you see stripes along the surface of the sphere, stripes whom intensity is depending on the object position)

The lowest I can track this issue is here : https://github.com/BabylonJS/Babylon.js/blob/master/src/Shaders/default.vertex.fx#L130

It seems the matrix operations :

transposeMat3(inverseMat3(normalWorld)) 

Does not returns the expect result.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 66.0.3359.181  Channel: stable
OS Version: OS X 10.11.6
Flash Version: 

It will work well with Chrome + Windows, or Safari + IOS, as far as I know it would be specific to Chrome + IOS.
 
It might help with the following pictures...

The expected sphere is the smooth one, the stripes on the other are not expected.
matrix-computation-ok.png
26.3 KB View Download
matrix-computation-bug.png
70.5 KB View Download

Comment 2 by kainino@google.com, May 25 2018

Labels: Needs-Feedback
This is almost certainly either a driver issue or a Babylon.js issue.

You said "it would be specific to Chrome + IOS". Do you mean Chrome+macOS? Any WebGL issues in Chrome+iOS should be exactly the same as Safari+iOS.

When I open your link, I don't seem to get your code - just the default playground code. Can you double check?

Finally, we will need the contents of chrome://gpu from your affected device. Please copy/paste or attach that. Thanks!
Labels: Needs-Triage-M66
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 27 2018

Status: Archived (was: Unconfirmed)
No feedback was received in the last 30 days from the reporter, so archiving this issue. Please re-open or file a new bug if necessary.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment