Why faking 3D nowadays?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
4aiman
Party member
Posts: 262
Joined: Sat Jan 16, 2016 10:30 am

Re: Why faking 3D nowadays?

Post 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.
Demonio
Prole
Posts: 9
Joined: Mon Jul 09, 2018 11:51 am

Re: Why faking 3D nowadays?

Post 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
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Why faking 3D nowadays?

Post 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?
Demonio
Prole
Posts: 9
Joined: Mon Jul 09, 2018 11:51 am

Re: Why faking 3D nowadays?

Post by Demonio »

What I expect is this

Image

But what I get is this

Image
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Why faking 3D nowadays?

Post 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.
Last edited by pgimeno on Wed Jul 11, 2018 8:55 am, edited 1 time in total.
Demonio
Prole
Posts: 9
Joined: Mon Jul 09, 2018 11:51 am

Re: Why faking 3D nowadays?

Post 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.
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Why faking 3D nowadays?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 62 guests