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)
What is the basic requirement for 3d stuff?
Re: What is the basic requirement for 3d stuff?
That you can't make sense of it doesn't mean it isn't 3D
Re: What is the basic requirement for 3d stuff?
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.
Re: What is the basic requirement for 3d stuff?
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.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests