Hello everyone!
Last days I tried to make 3D rendering ower 2D. Yes, there no hight performance, as for me that was small experiment for experience.
Simple render system, simple entity system ( models ). Any way that was my first experience with love 2d and with custom 3d rendering.
P.S I used only triangles, lines and dots
Enjoy!
Love 2D with 3D
Love 2D with 3D
- Attachments
-
- 3DTest.love
- Sources...
- (71.6 KiB) Downloaded 660 times
Re: Love 2D with 3D
Wow... Pretty awesome !
You just need to add the ability to use texture, and... You'll be hire by Khronos Group !
You just need to add the ability to use texture, and... You'll be hire by Khronos Group !
Founder of NeoShadow Studio. Currently working on the project "Sirami".
github / linkpy
github / linkpy
Re: Love 2D with 3D
No problemLinkpy wrote:Linkpy
How to use
Keys from 1 to 4 change draw method
Keys W A S D to fly
Keys arrows to rotate cube
- Attachments
-
- 3DTest.love
- v2
- (115.73 KiB) Downloaded 632 times
Re: Love 2D with 3D
OMFG...
I predict that you'll receive a letter from Khronos Group
Soon...
In a few month...
Maybe...
I predict that you'll receive a letter from Khronos Group
Soon...
In a few month...
Maybe...
Founder of NeoShadow Studio. Currently working on the project "Sirami".
github / linkpy
github / linkpy
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: Love 2D with 3D
Awesome mate!
I think there is a little error in the transformations you are doing, probably a sine or cosine. If you try to look at the bottom of the crate it looks more like a rhombus than a square.
As I said in the top this is awesome and really well done... Too bad meshes dont warp the images the right way!! you could be doing a lot of things...
I think there is a little error in the transformations you are doing, probably a sine or cosine. If you try to look at the bottom of the crate it looks more like a rhombus than a square.
As I said in the top this is awesome and really well done... Too bad meshes dont warp the images the right way!! you could be doing a lot of things...
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: Love 2D with 3D
When I move the camera closer, there is a really noticeable transformation error. Otherwise it's not bad.
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: Love 2D with 3D
That is probably caused by meshes trying to transform the image in a 2D plane instead of a 3D one, can only be fixed with shaders but would destroy the whole point of doing all this in software I thinkraingloom wrote:When I move the camera closer, there is a really noticeable transformation error. Otherwise it's not bad.
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: Love 2D with 3D
This is what Jasoco and I use in our 3D projects for textured polygons: https://www.love2d.org/forums/viewtopic.php?t=12483Positive07 wrote:That is probably caused by meshes trying to transform the image in a 2D plane instead of a 3D one, can only be fixed with shaders but would destroy the whole point of doing all this in software I thinkraingloom wrote:When I move the camera closer, there is a really noticeable transformation error. Otherwise it's not bad.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Love 2D with 3D
I would still recommend a shader. Löve's built-in meshes don't correct for perspective so you get the warping. The shader is the best way to do it without it being built into Löve itself.
Note: I've highly modified my version of the Perspective.lua file since Monkey Man gave it to me, but it still works the same way. (I added the ability to tint the image a certain color like for doing darkness and fog and made it so I could use it with any size resolution I need like for drawing to canvases that are smaller or bigger than the current resolution of the window.)
Note: I've highly modified my version of the Perspective.lua file since Monkey Man gave it to me, but it still works the same way. (I added the ability to tint the image a certain color like for doing darkness and fog and made it so I could use it with any size resolution I need like for drawing to canvases that are smaller or bigger than the current resolution of the window.)
-
- Citizen
- Posts: 67
- Joined: Sat May 08, 2021 9:45 pm
Re: Love 2D with 3D
What version uses? to try to get back to life again
That texture warping is a master piece like PS1 & N64 thing
oh and look for my bad luck it crashes
tested on 11.4
That texture warping is a master piece like PS1 & N64 thing
oh and look for my bad luck it crashes
Code: Select all
Error
3Dlib.lua:159: Invalid Mesh vertex data type name '500', expected one of: 'byte', 'unorm16', 'float'
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newMesh'
3Dlib.lua:159: in function 'Render'
main.lua:104: in function 'draw'
[love "callbacks.lua"]:168: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
Code: Select all
target = boardIndex.getWhosPeekingThisLine()
target:setObey(true)
Who is online
Users browsing this forum: Google [Bot] and 3 guests