The controls are very clunky because I need to dive into 3D directions and see how to move the "player/camera" properly. I did a quick ground and cube in blender then exported as obj. The code is a mix of @hgy29 and @4aiman
some more 3D stuff. Ground collision + player jumping + better control.
I am surprised how easy it is to setup all the 3D stuff, only a couple of lines of code. I modified the obj importer class so I could move my .obj files to my gfx assets folder. I tried to make the camera follow the player à la FPS but I failed need some help here! I tried to animate some obj but left it for later, that was an extra (will try later).
That would be nice to build something up from this prototype to have a sample code for a 3D game. All your contributions would be much appreciated. The code is very straight forward, short and easy to understand.
camx, camy, camz, camrx, camry =
player1:getX(), player1:getY(), player1:getZ(),
player1:getRotationX(), player1:getRotationY()-- Let the cam be 16 units aboved and 32 units behindlocal camdx,camdz=math.cos(^<-camry),math.sin(^<-camry)
camy+=16
camx-=camdx*32
camz-=camdz*32
thank you @hgy29 . I lost myself in those formulas, I wouldn't have figured out your solution. And this is now an excellent following camera. I am gonna have more fun with it... and collisions (I already "collide" with the ground) ... and animations? ... and a super mario 3D
final test and source code. Camera: FPS thanks to hgy29 Basic AABB3D collisions: player vs ground, player vs wells
For the wall collisions I would have to draw each walls separately and check for collisions but I preferred to do the "map" in blender 2.8. Was quite fun to experiment! Learning both gideros 3D and blender 2.8.
And another yt video
Once again the code is very short, easy and straightforward. Hope I/you would find inspiration for my/your next or present gideros projects. Peace.
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
@Apollo14 I totally agree, I am not asking for anything, I am just testing what the engine has to offer (2d, 3d, arabic, networking, ads, ...). At the end of the day it all depends on the pull (or push?) requests on gideros github.
I have a very different opinion about 3D in Gideros. Gideros can do 3D rendering with the same efficiency as it does 2D, then if people out there want to do 3D with Gideros then I’ll encourage them and help them as much as I can. To me Gideros has never been a 2D game engine only, but a complete cross platform app development tool. Every kind of app. I already made a few full 3D games with it, and I love gideros for its simplicity. To me it just lacks one thing for 3D: a 3D physics/collision engine. And I think I’ve found it, and I began making a plugin for it. Actually I am not sure what gideros is missing in the 2D field nowadays, perhaps path findings algorithm or other things like that, but otherwise it is a pretty complete engine for 2D, so why not extend its use to new fields ?
You know how I go about gideros already, I mostly do stuff that I need or stuff that I find cool, and sometimes easy to fix issues. There is no issue on GH fitting either of those criteria today I am afraid
You know how I go about gideros already, I mostly do stuff that I need or stuff that I find cool, and sometimes easy to fix issues. There is no issue on GH fitting either of those criteria today I am afraid
You know how I go about gideros already, I mostly do stuff that I need or stuff that I find cool, and sometimes easy to fix issues. There is no issue on GH fitting either of those criteria today I am afraid
Maybe support of some opensource particle editor could be nice to have in Gideros? (or some library similar to 'particle candy' which is RIP unfortunately) Manual tweaking takes lots of time (there's TNT particle editor, but it's too basic, not much gain from manual tweaking) Particle candy I guess was a nice tool
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
I did! I spent a complete day trying to figure out how do do something on unity, and couldn’t make any sense out of it. Lots of graphical tools, but I didn’t find how to code something. I gave up and searched for something else, then I found gideros (well hidden) and I immediately felt at home: I had a code editor and a lot of easily accessible exemples. It took only a few minutes to adopt it.
I have nothing against unity, but I don’t understand how it works. It is a tool for artists, not for coders. And I am a coder. With gideros, I know what happens on the CPU/GPU for every line of code I type in lua, and it helps me deciding how to achieve my goals.
Btw, no need to try to find me something to do, I am still working on UI widgetkit for gideros, and also integrating opus codec in ogg plugin.
So true Raw lua gives certain freedom (sometimes pleasant, sometimes intimidating).
And Core.asyncCalls are extremely convenient (I have no words to express), I use them more and more. I'm starting to understand why SkookumScript creators and Tim Sweeney say that regular programming languages suck for game development. I wonder how hard it is to implement another scripting language - SkookumScript? (I'm not saying we need that, it's probably overcomplicated and totally unnecessary, I'm just curious in how Lua is binded to Gideros on low level?)
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
I did! I spent a complete day trying to figure out how do do something on unity, and couldn’t make any sense out of it. Lots of graphical tools, but I didn’t find how to code something.
@oleg, You’ll have hard time convincing me to take another look at Unity. So sad for them I am nor a fan of minecraft, actually I never played it so I don’t know what is required actually, but it doesn’t look that complex at first sight. Just a (huge) bunch of cubes ? Gideros could definitely handle that with a few minor additions.
Anyway I started adding reactphysics3D (see link in posts above) to gideros, and it looks awesome. Pretty much a box2d made for 3D.
@oleg, You’ll have hard time convincing me to take another look at Unity. So sad for them I am nor a fan of minecraft, actually I never played it so I don’t know what is required actually, but it doesn’t look that complex at first sight. Just a (huge) bunch of cubes ? Gideros could definitely handle that with a few minor additions.
Anyway I started adding reactphysics3D (see link in posts above) to gideros, and it looks awesome. Pretty much a box2d made for 3D.
In minecraft you can build logic circuits - because it's not just a bunch of cubes, it's an amazing game
About lua, i found out in a game of minecraft, i programmed a robot there
Comments
I am surprised how easy it is to setup all the 3D stuff, only a couple of lines of code.
I modified the obj importer class so I could move my .obj files to my gfx assets folder.
I tried to make the camera follow the player à la FPS but I failed
I tried to animate some obj but left it for later, that was an extra (will try later).
That would be nice to build something up from this prototype to have a sample code for a 3D game. All your contributions would be much appreciated.
The code is very straight forward, short and easy to understand.
Don't be shy, give it a try
Likes: keszegh, hgy29, Apollo14, antix
Likes: MoKaLux
I changed the below part of your code:
Likes: MoKaLux
Likes: MoKaLux
Camera: FPS thanks to hgy29
Basic AABB3D collisions: player vs ground, player vs wells
For the wall collisions I would have to draw each walls separately and check for collisions but I preferred to do the "map" in blender 2.8. Was quite fun to experiment! Learning both gideros 3D and blender 2.8.
And another yt video
Once again the code is very short, easy and straightforward. Hope I/you would find inspiration for my/your next or present gideros projects. Peace.
Next...
Likes: hgy29, SinisterSoft
Likes: MoKaLux, SinisterSoft
In 3D there're so much stuff that is extremely sophisticated and yet mandatory for modern game development.
Likes: MoKaLux, oleg
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
I am not asking for anything, I am just testing what the engine has to offer (2d, 3d, arabic, networking, ads, ...).
At the end of the day it all depends on the pull (or push?) requests on gideros github.
Likes: Apollo14
I just have enough of what is already in gideros, the main thing is to maintain the efficiency of what is already there.
I think that in addition to 2d, gideros can also be in the niche of games 2.5d, and 3d isometry.(With an orthogonal camera)
3d games where perspective camera i will never do in gideros, i will do on unity
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I already made a few full 3D games with it, and I love gideros for its simplicity. To me it just lacks one thing for 3D: a 3D physics/collision engine. And I think I’ve found it, and I began making a plugin for it.
Actually I am not sure what gideros is missing in the 2D field nowadays, perhaps path findings algorithm or other things like that, but otherwise it is a pretty complete engine for 2D, so why not extend its use to new fields ?
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
and yet again, thanks for maintaining gideros.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Gideros is open source so we are all responsible to making it better to the best of our abilities?
Likes: MoKaLux
or to add application:set for each screen separately? https://github.com/gideros/gideros/issues/370
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Manual tweaking takes lots of time (there's TNT particle editor, but it's too basic, not much gain from manual tweaking)
Particle candy I guess was a nice tool
Likes: hgy29
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
I have nothing against unity, but I don’t understand how it works. It is a tool for artists, not for coders. And I am a coder. With gideros, I know what happens on the CPU/GPU for every line of code I type in lua, and it helps me deciding how to achieve my goals.
Btw, no need to try to find me something to do, I am still working on UI widgetkit for gideros, and also integrating opus codec in ogg plugin.
Likes: Apollo14, keszegh, Atavismus, MoKaLux, SinisterSoft
And Core.asyncCalls are extremely convenient (I have no words to express), I use them more and more. I'm starting to understand why SkookumScript creators and Tim Sweeney say that regular programming languages suck for game development. I wonder how hard it is to implement another scripting language - SkookumScript?
(I'm not saying we need that, it's probably overcomplicated and totally unnecessary, I'm just curious in how Lua is binded to Gideros on low level?)
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://docs.unity3d.com/Manual/CreatingAndUsingScripts.html
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: antix, MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Anyway I started adding reactphysics3D (see link in posts above) to gideros, and it looks awesome. Pretty much a box2d made for 3D.
Likes: MoKaLux, SinisterSoft
crazywonderfulAbout lua, i found out in a game of minecraft, i programmed a robot there
Likes: MoKaLux, antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: MoKaLux, SinisterSoft, antix