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

LineBasicMaterial.linewidth is ignored when using WebGLRenderer #269

Closed
ilyabo opened this issue Jun 16, 2011 · 10 comments
Closed

LineBasicMaterial.linewidth is ignored when using WebGLRenderer #269

ilyabo opened this issue Jun 16, 2011 · 10 comments
Labels

Comments

@ilyabo
Copy link

ilyabo commented Jun 16, 2011

It seems that the "linewidth" property of LineBasicMaterial only works with CanvasRenderer and not with WebGLRenderer. When I use CanvasRenderer and set the linewidth e.g. to 10 thick lines are rendered, but when I switch to WebGLRenderer the linewidth is ignored and the lines are rendered with the width of just one pixel.

Is it supposed to be this way? If yes, how could I draw a thick line so that it works with WebGLRenderer?

Thanks in advance.

@mrdoob
Copy link
Owner

mrdoob commented Jun 16, 2011

If I remember correctly it didn't work on Windows (because of ANGLE) but it worked on linux and macos. The look of thick lines in OpenGL isn't pretty though.

@ilyabo
Copy link
Author

ilyabo commented Jun 16, 2011

Yes, I experienced the issue in Chrome on Windows. Will try it on Linux later.

What do you mean by "not pretty"? The joints? antialiasing?

@alteredq
Copy link
Contributor

Yes, it's ANGLE issue, please star these if you want to bump up priority:

http://code.google.com/p/angleproject/issues/detail?id=119
http://code.google.com/p/chromium/issues/detail?id=60124

http://www.khronos.org/message_boards/viewtopic.php?f=43&t=3416

"Not pretty" mainly because of joints.

You can try it also on Windows if you switch to OpenGL renderer: in Chrome it's command line flag --use-gl=desktop, in Firefox it's webgl.prefer-native-gl option in about:config.

@ilyabo
Copy link
Author

ilyabo commented Jun 16, 2011

Thanks alteredq, that's very useful!

@mrdoob mrdoob closed this as completed Jun 18, 2011
@drsagitn
Copy link

Hi alteredq,

I use Chrome 16.0.912.77 m and when I started it with --use-gl=desktop param, it disable WebGL. Could you tell me why and how to switch to OpenGL with that Chrome version

And another problem is that on FireFox when switching to OpenGL, it's very slow when rendering WebGL compare to ANGEL mode. Is there any way to overcome this?

Thanks.

@alteredq
Copy link
Contributor

Probably your system doesn't have OpenGL driver or it's bad / buggy / obsolete so browsers blacklist it.

You can try to update your graphic card driver to see if this helps.

@drsagitn
Copy link

I installed the latest driver version (6.14.10.5390) of my on board graphic card (Intel G41 Express Chipset) already but it still doesn't work with Chrome and works very slowly on FireFox.

Where can I find the blacklist of Chrome to enable it? And will a standalone graphic card help it better?

Thanks.

@alteredq
Copy link
Contributor

Yup, standalone GPU would be better, yours is among the worst GPUs you could have, there isn't much you could do with it (newer integrated Intel HD 3000 is better, but still discrete Nvidia / AMD GPUs are much more preferable).

@mjkaufer
Copy link

mjkaufer commented Nov 4, 2015

Any resolution yet?

@mrdoob
Copy link
Owner

mrdoob commented Nov 4, 2015

It's a limitation of WebGL/Windows. We can't do much about it.

cfobel added a commit to wheeler-microfluidics/microdrop-client-webgl__deprecated that referenced this issue Jun 13, 2016
Note that `linewidth` is not followed during rendering on Windows (see
[here][1]).

A workaround is to use native WebGL rendering instead of [ANGLE][2] (see
[here][3]).

[1]: mrdoob/three.js#269
[2]: https://github.com/google/angle
[3]: https://github.com/mrdoob/three.js/wiki/How-to-use-OpenGL-or-ANGLE-rendering-on-Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants