What is the basic requirement for 3d stuff?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
findux
Prole
Posts: 6
Joined: Wed Jul 29, 2020 6:46 pm

What is the basic requirement for 3d stuff?

Post by findux »

Hello, as I asked in the title, what are the basic things to make 3d things?

I created a transformation with the line
local camera = love.math.newTransform()

I slightly rotated the transformation matrix that I created.
camera: setMatrix (0.9876883,0.0244717, -0.1545085,0,0,0.9876883,0.1564345,0,0.1564345, -0.1545085,0.9755283,0,0,0,0,1)

then I tried line bellow in draw function but I got a meaningless drawing.
love.graphics.applyTransform (camera)

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

Re: What is the basic requirement for 3d stuff?

Post by pgimeno »

That you can't make sense of it doesn't mean it isn't 3D :)
findux
Prole
Posts: 6
Joined: Wed Jul 29, 2020 6:46 pm

Re: What is the basic requirement for 3d stuff?

Post by findux »

Do I need to load shaders and do matrix manipulation? How to send fragment and vertex information to the graphics card? I'm a newbie in these things. I might be saying something stupid. Also, the drawing screen is not the normalized device coordinate as in opengl.
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: What is the basic requirement for 3d stuff?

Post by pgimeno »

The default view is orthographic. I'm not sure but I believe you need to replace the vertex shader in order to have control over the projection matrix. At least that's how I did it.
Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests