Page 5 of 5

Re: Why faking 3D nowadays?

Posted: Fri May 18, 2018 1:40 pm
by 4aiman
Well, yeah, *any* shader designed to bring 3d failed for me prior to switching to 11.1.
Judging by the changelog which explicitly stated there were many canvas problems in 11.0.
Will test rc3 asap

Edit: rctest3.love works with 11.1.0 like a charm :crazy:
So, the recent update make it work for me. Gonna test other shaders (non-3d that were failing me earlier) as well.

Re: Why faking 3D nowadays?

Posted: Mon Jul 09, 2018 11:55 am
by Demonio
Hello so I tried to remake Löve3D demos but I have problems with depth can someone show me what I am doing wrong? I tried rc example on this page and that one works well but I can not figure out why depth does not work in this.

https://openfun.eu/owncloud/index.php/s/cogyBbnwei53B4T

Re: Why faking 3D nowadays?

Posted: Tue Jul 10, 2018 7:19 pm
by pgimeno
Welcome to the forums.
Demonio wrote: Mon Jul 09, 2018 11:55 am Hello so I tried to remake Löve3D demos but I have problems with depth can someone show me what I am doing wrong? I tried rc example on this page and that one works well but I can not figure out why depth does not work in this.

https://openfun.eu/owncloud/index.php/s/cogyBbnwei53B4T
Please attach the .love file to your post next time.

I don't see anything wrong when I try to run that file. What did you expect and what do you see instead?

Re: Why faking 3D nowadays?

Posted: Wed Jul 11, 2018 8:06 am
by Demonio
What I expect is this

Image

But what I get is this

Image

Re: Why faking 3D nowadays?

Posted: Wed Jul 11, 2018 8:44 am
by pgimeno
Thanks. The depth buffer is not the problem; the demo works in 0.10 even when disabling love3d entirely, you just see some polygons drawn in a weird order. It seems to me that the problem is in some lib that isn't upgraded to work with 11.x (probably IQM). I get the same result when I run the original love3d demo in 11.1.

Edit: I forgot, the problem is that shader:send requires the matrix transposed in 11.x. https://github.com/excessive/cpml/issues/32

Changing to_vec4s() to transpose the result works.

Note you should use dots for directories in require(). For example: require('libs.iqm'). That's not the problem, though, just a note.

Re: Why faking 3D nowadays?

Posted: Wed Jul 11, 2018 8:51 am
by Demonio
I tried to use IQM in rclib example and it works there (with poligons in wrong order). What I expect is problem in cpml. I will try to rewrite both of them and see how it will go.

Thanks you for your help.

Re: Why faking 3D nowadays?

Posted: Wed Jul 11, 2018 8:56 am
by pgimeno
Oops, I edited too late. Yes, it's this problem: https://github.com/excessive/cpml/issues/32

Edit: Note also that the love3D demo additionally performs backface culling to improve performance which you can activate with love.graphics.setMeshCullMode.