Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little white flashing flower appearing in middle of sphere. #74

Closed
coderextreme opened this issue Jul 5, 2021 · 15 comments
Closed

Little white flashing flower appearing in middle of sphere. #74

coderextreme opened this issue Jul 5, 2021 · 15 comments
Labels
bug Something isn't working

Comments

@coderextreme
Copy link
Contributor

Describe the bug
Once the motion begins, a little white flashing flower? appears in the middle of the sphere.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://coderextreme.net/X3DJSONLD/src/main/html/bubbles.html

Expected behavior
No flashing flower. Empty sphere

Screenshots

Desktop (please complete the following information):

  • OS: Linux Groovy Gorilla 20.10
  • Browser Chromium, Firefox
  • Version latest X_ITE
@coderextreme coderextreme added the bug Something isn't working label Jul 5, 2021
@coderextreme
Copy link
Contributor Author

coderextreme commented Jul 5, 2021

First load after clear ache works. On second load, white flower comes back. Tried commenting out x3dom shader (x3dom doesn't do VRML scripts anyway).

@create3000
Copy link
Owner

create3000 commented Jul 5, 2021

Tested on Firefox and Safari on macOS and it works well. Can only be some kind of caching the browser does. There are 'Clear Cache' extensions for Firefox and Chrome, have you tried these?

@create3000
Copy link
Owner

See #46 at the end for Firefox and Chrome links.

@coderextreme
Copy link
Contributor Author

Clearing cache with extension for Chromium mentioned in #46 did not work. There must be some other kind of caching going on? Caching of shaders? I don't know if this scene ever had flowers. Maybe it's some kind of glitch?

@create3000
Copy link
Owner

Bildschirmfoto 2021-07-05 um 22 00 26

There is no flower, only one bubble.

@coderextreme
Copy link
Contributor Author

The white structure looks like a square with 2 opposite corners cut off, right in the the middle of the sphere, flashing. I see your picture. It seems like in some cases, the flashing begins at the end or beginning of a camera animation leg (as in journey--a key frame?). I have a pretty good idea what it looks like. I have been using chrome with the extension for clearing cache.

I'm going to say it's some kind of reflection of the sky, I guess.

Could it be a driver or linux GUI issue? I have a GTX 980

It doesn't show for most of the time. but the flashing does make it very obvious.

I've removed all the x3dom code, since the script is not suitable for X3DOM as it is, so it's not a shader loading issue.

@coderextreme
Copy link
Contributor Author

The flashing appears when the camera is level the most I think. I wish I could be more help! Maybe we could hook up on Discord and I can share my screen? I am yottzumm#9156.

@splace
Copy link

splace commented Jul 5, 2021

i get it, firefox r7-250, non-NVIDIA shader maths? rounding?

starts about 10s in

simplescreenrecorder-2021.mp4

@coderextreme
Copy link
Contributor Author

The non-issue may be easier to see on iOS with safari or chrome. There’s a big white light spot facing the camera on a nearly opaque sphere. Perhaps some transparency or reflection on the backside of the sphere. My guess is different issues come with differently capable graphics card. Does iOS support WebGL2? Apparently it’s an experimental feature. I guess I’ll stick to desktop.

@coderextreme
Copy link
Contributor Author

I will try to capture video. I am a Linux noob. But I am with family now.

@coderextreme
Copy link
Contributor Author

@splace, yes, that captures it nicely. I think it may be due to the lighting coming from the Viewpoint, not really sure.

@coderextreme
Copy link
Contributor Author

coderextreme commented Jul 5, 2021 via email

@coderextreme
Copy link
Contributor Author

coderextreme commented Jul 5, 2021

IOS: CEE75287-3581-436A-AB01-DFA981B862F5

@create3000
Copy link
Owner

create3000 commented Jul 6, 2021

On Samsung tablet in Chrome there is also this artifact.

@create3000
Copy link
Owner

create3000 commented Jul 6, 2021

I think, I got it. The problem comes from the rfac variable, it was in the wrong range. I fixed that by doing some clamp, and normalized fragNormal. By doing debug, I also beautified your shaders a bit, think so. Instead of using mpv, you can use x3d_NormalMatrix, think that is what you mean. At the end of the shader you can use a build-inmix,which should be faster and more clear what is going on there. And removed cube user-defined field from ComposedShader.

Here is the new bubbles.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants