Q3D V-2.4 [3D Physics + Skeletal Animation UPDATE]

From the Asset Store
Fantasy Game includes more than 600 sound effects inspired by hit computer games like World of Warcraft and Diablo.
  • Polygallon

    Collision support is about as developed as it will get, I don't see any extra primitives being implemented for performance reasons. Collision "meshes" are too computationally expensive in JS, and wouldn't really be viable in a game. Already the collision system is difficult to get good performance out of, and it's pretty highly optimized with spatial hashing.

    You can get away with compound objects if you need more complicated collision structures, but you'll have to set it up in construct for the regular colliders. The oimo behaviour however does support compound structures you can setup through events, although it can be pretty tricky to work out positioning the pieces at first. I've gotten chairs and tables and stuff to be built this way, and the capsule collider is actually a compound object as well!

    In my latest build i've made small additions to the oimo behaviour so that you can check and retrieve information about the contacts / collisions, they should help if you need to retrieve things like penetration depth and normal etc.

    Thanks for pointing out the color thing! must have slipped past me. three.js and construct use inverted RGB hex representations or something so this can annoyingly happen if i haven't explicitly fixed it. It used to be that ALL color setting actions had that issue.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Collision "meshes" are too computationally expensive in JS, and wouldn't really be viable in a game. Already the collision system is difficult to get good performance out of, and it's pretty highly optimized with spatial hashing.

    Alright, well, I guess that makes sense.

    The oimo behaviour however does support compound structures you can setup through events, although it can be pretty tricky to work out positioning the pieces at first.

    I'd say. This is where I am having most trouble atm and where mesh colliders would help immensely. Making complex collision structures would be a whole lot easier if the model didn't keep offsetting itself, trying to center into the middle between every collision shape added - even when the model's fit and center settings are at "unaltered". I don't want to be stuck nudging fractions, and adding unnecessary collision shapes to offset every other collision shape, just to make a complex model work. Is this easily fixed? Is there a viable work-around? Is there already a setting for this to stop? I'm asking since I am essentially stuck because of this.

    Additionally, being able to access information about the collision shapes themselves would also be nice. Expressions such as " Get shape X size of 'DefaultShape0' " and the like. Maybe even loops like "For every collision shape" although that's not as necessary.

    (...) and the capsule collider is actually a compound object as well!

    Interesting. I was wondering why I couldn't assign the height of the capsule collider, turns out it's probably because it's a hardcoded cylinder with two spheres. Aight'.

    And no worries about the color thing

    I await the next update with high hopes!

  • Okay! I got layout-switching and all that working without any graphical issues. I guess the only weird bug I am experiencing now is that the gravity keeps changing every time I try to restart a layout in-game. Here's a prototype I've been working on if anyone wants to check it out (use a gamepad or arrows+z/x/c).

  • Hey QuaziGNRLnose or who can help and really knows what i might gotten wrong.... so ... im doing a new game to bust some time off.... ehm... got a few problems... 2 of them actually... so i have this low poly models.... exported as json and obj ... but for some reason when i use Phong material to be able to show the diffusemap and other textures... it just loads a empty object... is there the collision box adjusted everything loads perfect... just its invisible... however if i switch to normal material... then it shows but its pink green etc all sorts of colors did i missed something to export in the blender? or is it a object issue? il add the models link bellow

    2nd issue i have... when i restart layout... the game doesn't load anymore... the progress bar appears but q3dmaster seems to be frozen or it takes to long to load... im using same logic used on the morph animation example... it should load perfect... not sure why is getting stuck...

    Link for 3d models that shows only with normal :

    https://drive.google.com/folderview?id= ... sp=sharing

    have to mention... the Rocks 1 2 and 3 json do have the right size as MB specifically on a normal phong material supporting model.... but the ship.obj/json.... for some reason exports to small... im guessing is not exporting the right vertices? not sure how they are called however got an other model and that one works... but i need the ship and the rocks... its kinda pointless having the pretty graphics but those being weird debug looking...

    im using c2 219 beta 64 bit version ...

    OFF TOPIC : QuaziGNRLnose sry for asking so many times directly on u... the support u have given so far is way more then was supposed to be... but im only asking cause i feel your plugin is part of my "familly" and with it u 2 <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> c2 +q3d wouldn't have it one without another ... <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    Edited : i solved the problem with the material not being visible ... however the other issue where on restart of layout or even if i go to menu after game over or something like that and then come to load the game ... nothing loads ... am i missing something ?

  • *Unnecessary comments about struggles regarding the apparent unavoidable instability and finickiness of multiple collider shapes*

    Pardon, I've worked on my project now over the holidays and constructed a semi-reliable work-around.

    In past posts I may have asked for redundant features to this plugin that could be achieved otherwise or weren't exactly necessary for the scope of Q3D. However, despite my forthcomings, there is yet one more thing I urge you to consider adding in regards to Oimo collision shapes - while still respecting your previous statements about it.

    In terms of Oimo colliders - we've already got cubes, spheres, cylinders and (composite) capsules. I would also like to see slopes on that list. They'd scale much like cubes - and in theory they should also be less expensive than cubes, correct? Should be less expensive than cylinders anyhow. Slopes would be greatly useful for developing platformers, racers, the "physics ball" type games, some far-fetched abstract low-poly fps ... anything really that could benefit from ramps. So, may there be slopes in the future?

    Lastly, happy holidays (or happy continuation as we say it where I live) to everyone here!

  • ....... I would also like to see slopes on that list. They'd scale much like cubes - and in theory they should also be less expensive than cubes, correct? Should be less expensive than cylinders anyhow. Slopes would be greatly useful for developing platformers, racers, the "physics ball" type games, some far-fetched abstract low-poly fps ... anything really that could benefit from ramps. So, may there be slopes in the future?

    Lastly, happy holidays (or happy continuation as we say it where I live) to everyone here!

    slopes there is no need for them ... u can take a cube resize it and change its angle .. and thats a slope if im not talking of a different thing

  • slopes there is no need for them ... u can take a cube resize it and change its angle .. and thats a slope if im not talking of a different thing

    Yeah, I thought so too, turns out there's a lot of fidelity to a slope made like that - especially if you're trying to make something tile-able. It's not enough to turn a Q3D Model with a box collision shape 45 degrees on the X or Z axis and call it a day. Overall, it's just a nice and helpful thing to have as a collision shape. I wish I knew javascript so I could add it into the Oimo behavior myself or something, but sadly that's not the case. If it is overlooked, well, then I guess the next development stage for me is filling out tables of rotation and position offsets for ca 40 differently scaled feign-slopes through trial and error... Which kinda reminds me about the concept of eating sand.

  • anybody got huge json files when exports from blender animations? im talking above 20 mb files .... if not can u give me a hint how to export them properly? or is a possibility of adding .dae files? seems their pretty compressed on a 100 frame animation

  • Polygallon

    slopes aren't a bad idea, but adding a collision shape to the physics engine is actually *VERY* complicated and something I'm not sure I could figure out anytime soon (adding cylinders was a huge pain, and they're actually a simple shape compared to a ramp) Its not something you could do just by knowing javascript. You could just create sprite dummies in the layout that create the proper sloped boxes when they're created, and then get destroyed, instead of filling out tables(?).

    Something like this?

  • how do i get bones onto my model and add animations?

  • QuaziGNRLnose, I think it will be good if Q3D plugin could support exporting the models created to a 3D printing output format. As an usecase, I wanted to create an educational app where the user can create custom molecular structures inside the app and then I want to provide an ability for the user to 3D print the model that he/she creates. I believe threejs already has this feature as I have seen threejs editor supports exporting models created in the threejs editor. So it could be a matter of extending that feature to Q3D plugin...I am not sure how difficult/easy that would be but it will be definitely an interesting enhancement to the Q3D plugin. Please let me know.

  • slopes aren't a bad idea ........

    thats the least of the problems with Q3D really... what i see very important is that the plugin relays on obj's and json files... which do work well but... animation embeded inside them is something that doesnt work properly... i mean it loads .. works and all just i wish i could load a full DAE model with all its animations that have 5 mb with around 500 frames ... but instead... i get 1 animation 30 frames 50 mb ... on a low poly ... if wold be another format .. wold be around 10 kb ... unless i use the old Half Life models ... i cant do nothing ... and MS3D seems has no threejs exporter... and if it has the size of animation will still be big ... cause the exporter isnt polished... and binary is to heavy... not sure if that makes any sense for u pple but it does a lot for me ... this plugin actually can be used for browser and mobiles... if the models and animations woldnt be so Huge / High resource consumers ...

    can we get some hints on how u made the animations to be so small? but i also see mesh animation there which is ugly .... and 86' ish

  • Does Q3D plugin support creating and using vector3 as in threejs ( for example -->

    var matrix = new THREE.Matrix4();

    matrix.extractRotation( mesh.matrix );

    var direction = new THREE.Vector3( 0, 0, 1 );

    matrix.multiplyVector3( direction );

    kind of stuff ?)

    Given two thin cylinders ( representing vectors) in 3D, I wanted to align a plane that contains these two vectors. I am unable to find the relevant expressions in the plugin in this regard. The lookup vector / look towards conditions doesn't seem to help (or atleast I am unable to understand to use them for this purpose). Any pointers?

  • Exporting from blender to threejson problem

    Im trying to export 3d model with amature and animation.

    Im getting "Amature is not a mesh object" error.

    How to fix that?

  • Hey, I know you're drowning in questions, but I gotta ask. Can I make a 2.5D game with this? I mean pre-rendered backgrounds with parallax scrolling all that regular C2 stuff but with 3D characters?

    Also can I make unshaded characters but tint their colors? Like when a cartoony flatshaded character goes into shadow and goes dark and tints to the colors of the shadows.

Jump to:
Active Users
There are 4 visitors browsing this topic (0 users and 4 guests)