-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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
CanvasRenderer bad image mapping. #1227
Comments
Not sure to be honest... :/ |
Hello, I would like to notice, as the other guy, that you have such a great library here. I think i have a similar issue as he has. The only problem now with WebGL is that lines and curves don't look as smooth as in Canvas. Do you know how these problems can be addressed/solved? Great library! Keep developing it! |
Yeah, I'm afraid that's a CanvasRenderer limitation.
Did you tried with |
No, I havn't tried antialias:true. It seemed to be an antialiasing issue. Is it a issue of CanvasRenderer? Does the version that tedor modified solve this problem? Thanks for help! |
If you read his post carefully, you'll see that he wasn't able to fix the issue that you're having too. |
Yea, you're right. Thanks. |
Did you tried with new THREE.WebGLRenderer( { antialias: true } )? I have here an example with it enabled/disabled. It doesn't look like making a difference. Is it related to the videocard? |
Hi Mrdoob, firstly thanx for great library.
I try use library for flat cards, who should be rotate, so I have to use PlaneGeometry with > 1 polygons, currently it's:
THREE.PlaneGeometry(img.width, img.height, 8, 8)
and when added image texture, my flat card was rendered with white lines, after added "overdraw: true" for THREE.MeshBasicMaterial, flat card rendered much better, but still so bad for use in real project, like this:
http://tedor.kr.ua/project/html5-pageflip/index-overdraw.html
and I tried to fix it, and was got result like this:
http://tedor.kr.ua/project/html5-pageflip/index-fix.html
for fix it, I edited only CanvasRenderer script, you can take code here:
http://tedor.kr.ua/project/html5-pageflip/js/src/renderers/CanvasRenderer.js
my changes can be find by comments:
// Fix positions for triangles ...
and
// Fix UV mapping...
but still have problem with border flat card, if watch carefully You can see small dots around the card:
http://tedor.kr.ua/project/html5-pageflip/vertex_out.png
Do you have any idea how it can be fixed?
The text was updated successfully, but these errors were encountered: