Updates!
* Updated Love3D github repo (OVR support is there)
* Fixed some relevant CPML bugs and added mat4.hmd_perspective
* Posted the IQM loader! https://github.com/excessive/iqm - no animation loading yet as IQE has (soon), but it's something like 40x faster than the old IQE loader was.
* GLES should be fixed, as long as your shaders are compatible (the ones in the demo attached aren't, I'll fix them at some point)
I should have a camera library for this ready to post here soon, too, I'm just waiting on a pull request.
@Alexar: Here's a demo .love, be sure to run it with a Love 0.10 nightly (you can get one here if you use Windows: https://ci.appveyor.com/project/AlexSzp ... /artifacts)
Hopefully it's commented well enough, I tried to leave a lot in main.lua.
EDIT: The demo requires sRGB support. If your GPU doesn't have it, set t.window.srgb = false in conf.lua and it should run (but it will look a bit wrong).
EDIT 2: Updated attachment to fix undefined behavior in the shader
EDIT 3: Updated again to fix error on nvidia gt 330m (it's more sensitive than the 9600 gt apparently)
also, a picture for the lazy
LÖVE3D
Re: LÖVE3D
- Attachments
-
- love3d-demo_2015-07-26.love
- Love3D demo v3
- (6.45 MiB) Downloaded 4143 times
excessive ❤ moé (LÖVE3D, CPML, ...). holo on IRC.
- FlattenedTesseract
- Prole
- Posts: 14
- Joined: Mon Jul 27, 2015 9:01 am
- Location: Bucharest, Romania
Re: LÖVE3D
Awesome stuff you've got there!
I have this question though:
Did you create the 3D renderer from scratch or did you magically use OpenGL through SDL?
I have this question though:
Did you create the 3D renderer from scratch or did you magically use OpenGL through SDL?
Re: LÖVE3D
Wow, this is amazing!
So LOVE 0.10.0 will support LÖVE3D out of the box? That's nice, I can't wait to mess around with this.
Side question: Who makes the 3D models? They're really neat.
So LOVE 0.10.0 will support LÖVE3D out of the box? That's nice, I can't wait to mess around with this.
Side question: Who makes the 3D models? They're really neat.
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
Re: LÖVE3D
It's using OpenGL via FFI and SDL to load the function pointers.FlattenedTesseract wrote:Did you create the 3D renderer from scratch or did you magically use OpenGL through SDL?
Yep! No need for custom builds anymore like when this was first posted.Davidobot wrote:So LOVE 0.10.0 will support LÖVE3D out of the box? That's nice, I can't wait to mess around with this.
They're all my own models, other than the Miku model used in the video in the opening post (that one was from MMD). Thanks!Side question: Who makes the 3D models? They're really neat.
excessive ❤ moé (LÖVE3D, CPML, ...). holo on IRC.
Re: LÖVE3D
It insta-crashes without error message on Windows.
Re: LÖVE3D
Are you using love 0.10? it requires 0.10.undef wrote:It insta-crashes without error message on Windows.
excessive ❤ moé (LÖVE3D, CPML, ...). holo on IRC.
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: LÖVE3D
love-hg on Arch Linux can run the demo. If you're able to compile love from mercurial (hg) repository, you can start messing around now. Instructions at https://bitbucket.org/rude/love/overviewSo LOVE 0.10.0 will support LÖVE3D out of the box? That's nice, I can't wait to mess around with this.
http://youtu.be/apTzVcRtTLM
If you run this with love 9.2, you will get this error message:
Code: Select all
$ love love3d-demo_2015-07-26.love
Error: iqm/init.lua:178: bad argument #2 to 'newMesh' (Texture expected, got FileData)
stack traceback:
[C]: in function 'newMesh'
iqm/init.lua:178: in function 'load'
main.lua:38: in function 'load'
[string "boot.lua"]:418: in function <[string "boot.lua"]:413>
[C]: in function 'xpcall
Code: Select all
Distro 4.1.2-2-ARCH x86_64
Mainboard FOXCONN A7GM-S 2.0
CPU AMD Phenom(tm) 9550 Quad-Core Processor
4 x 2200 MHz, 64-bit
RAM 7.8G
Video Advanced Micro Devices, Inc. [AMD/ATI]
Cape Verde PRO [Radeon HD 7750 / R7 250E]
OpenGL 4.4.13397 Core Profile Context 15.20.1013, GLSL 4.40
GCC gcc (GCC) 5.1.0
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Re: LÖVE3D
I forgot to make the demo declare itself as being for 0.10, next update will do so (so people stop reporting it as broken because they're using 0.9.2...)If you run this with love 9.2, you will get this error message:Code: Select all
$ love love3d-demo_2015-07-26.love Error: iqm/init.lua:178: bad argument #2 to 'newMesh' (Texture expected, got FileData) stack traceback: [C]: in function 'newMesh' iqm/init.lua:178: in function 'load' main.lua:38: in function 'load' [string "boot.lua"]:418: in function <[string "boot.lua"]:413> [C]: in function 'xpcall
Nice, I don't have any AMD hardware to test with so it's good to know the shader works properly.Just for the record, love-hg + love3d does run with the following system specs:Code: Select all
Video Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde PRO [Radeon HD 7750 / R7 250E] OpenGL 4.4.13397 Core Profile Context 15.20.1013, GLSL 4.40
I should put together a demo or two with some actual interaction and content - latest one is, again, just a minimal tutorial. Next time I'll make sure GLES support is working, too (at least for desktops and raspberry pi, I haven't looked into it on Android & iOS, it crashes there).
excessive ❤ moé (LÖVE3D, CPML, ...). holo on IRC.
Re: LÖVE3D
hi~ thanks for your reply but here comes an error
i downloaded the 0.10 and dragged the love file to the exe. but an error occured "unable to initialize opengl, this program requires a graphics card which support opengl 2.1 or opengl es 2.
but when i print(love.graphics.getRendererInfo()) ,the resulte is "OpenGL 4.0.0 - Build 9.18.10.3220 Intel Intel(R) HD Graphics 4400"
so...how can i fix it ? thanks~
-----
i print(love.graphics.getRendererInfo()) in the version 0.92. for the 0.10 version , i can double click the love.exe, it shows the default screen. but when i drag the .love file to the love.exe. the error occured in the boot.lua..
i downloaded the 0.10 and dragged the love file to the exe. but an error occured "unable to initialize opengl, this program requires a graphics card which support opengl 2.1 or opengl es 2.
but when i print(love.graphics.getRendererInfo()) ,the resulte is "OpenGL 4.0.0 - Build 9.18.10.3220 Intel Intel(R) HD Graphics 4400"
so...how can i fix it ? thanks~
-----
i print(love.graphics.getRendererInfo()) in the version 0.92. for the 0.10 version , i can double click the love.exe, it shows the default screen. but when i drag the .love file to the love.exe. the error occured in the boot.lua..
Re: LÖVE3D
Looks like you need to upgrade your drivers, 9.xx is old.
other options (all in conf.lua) :
- try setting MSAA to 0
- if that doesn't work, try disabling sRGB (your GPU supports it, but it might be misbehaving)
other options (all in conf.lua) :
- try setting MSAA to 0
- if that doesn't work, try disabling sRGB (your GPU supports it, but it might be misbehaving)
excessive ❤ moé (LÖVE3D, CPML, ...). holo on IRC.
Who is online
Users browsing this forum: No registered users and 0 guests