Let me create this post to share my progress with gideros and react physics 3d and animations.
What I have done:-imported a 3d model from mixamo to blender to gideros
-animated it in gideros
-built a level with Tiled (from a top down view perspective)
-you control the player with arrow keys
What is left:-"writing" a class for each type of shape I would like (plane, cube, circle, ...)
-"writing" a class to import obj or fbx
-adding other characters (why always enemies)
-I don't want to make it an FPS (I am a peaceman)
-but he needs to throw something (pebbles?)
-...
-always having fun
I try to keep GH up to date:
https://github.com/mokalux/gideros-3D-FP
Comments
It is usable with any engine, even Gideros of course.
Likes: MoKaLux
I can't seem to use materials anymore in gideros r3d. According to the r3d 0.8 official doc this should still work:Now we need to call get and set material on the fixture:
Will try to update wiki asapDONE.Likes: hgy29, SinisterSoft
I have a problemSOLVED How can I apply 2 matrices to 1 object? 1 matrix to apply position/rotation and the other matrix to apply scale?-when I comment the line PROBLEM the ball rolls but has wrong scale
-when I uncomment the line PROBLEM the ball doesn't roll but has correct scale
How would you go about it please?
One solution would be to implement R3d.Body:getTransform() to return the scale of the body along the position and rotation values. That would be cool! https://wiki.gideros.rocks/index.php/R3d.Body:getTransform
Another solution was to modify the sphere class to add a radius to it:
I have a problemI have some fbx files with apparently more than one textures embeded. They produce:"attributes": [
"POSITION", "NORMAL", "COLOR", "TEXCOORD0", "TEXCOORD1", "TEXCOORD2", "TEXCOORD3", "TEXCOORD4",
"TEXCOORD5", "TEXCOORD6", "TEXCOORD7", "BLENDWEIGHT0", "BLENDWEIGHT1", "BLENDWEIGHT2", "BLENDWEIGHT3"
],
only TEXCOORD0 is recognised by gideros 3DGdxLoader. I tried to add the other TEXCOORD
but that doesn't seem to work (I don't see my fbx in the scene).EDIT: that seems to work I have lost my texture though will try to find where the texture is (ps: it is animated too).
GH updated
I tried to look at some programs to build them but found Tiled to be the best so far. I build my level from a top down view but that's not a problem at all.
The biggest issue I have is attaching collision shapes to my meshes. For example I have some houses scattered around the level and I would like the player to be able to enter those.
My process was placing the mesh houses with no collision in a Tiled layer then on another
levellayer I was adding the collision for the walls, that works but it takes tooooo long to do.Another solution would be to build the houses from parts (walls, roof, doors, ...) and build them by hand but that seems complicated too
I need to give it some time and get back to it later. In the meantime I had the idea to make a 3d platformer That seems feasible, it should be a mario like 2d platformer but in 3d
I think I have everything I need: gideros - Tiled - reactphysics3d - animation
Wish me luck and a nice YT serie should I succeed.
Viva gideros!
Likes: hgy29, SinisterSoft, antix
I am looking for this r3d file: ContactSolverSystem.cpp
more precisely this line: if (mContactPoints[contactPointIndex].penetrationDepth > SLOP) biasPenetrationDepth = -(beta/mTimeStep) *
or even this file? reactphysics3d/reactphysics3d.h
They are hidden somewhere
Thank you
Likes: MoKaLux
Feel free to ask any questions, I will try to answer
You control the character (the female from the gideros 3d sample) with IJKL + W to jump. The level is built using Tiled (available in the repo). I am looking forward to enhance it
Viva Gideros Luau!
PS: at hgy29 I would like to make it an official demo in a future Gideros release with your permission of course
Likes: SinisterSoft, hito9
DELETED
PS: I barely know any shaders programming so cannot help on this side, sorry
Likes: hito9
Likes: MoKaLux
Likes: MoKaLux