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

Post your completed addons to share with the community

Post » Mon Jan 26, 2015 2:36 am

@QuaziGNRLnose, the demo looks great!
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368

Post » Mon Jan 26, 2015 1:40 pm

You're the man, man. :D I don't want to build my own rigid body physics, but i'll keep my flight physics for my project. Can't wait.
B
8
S
3
G
2
Posts: 46
Reputation: 1,592

Post » Mon Jan 26, 2015 4:08 pm

Sorry if I missed something but is there any post processing support in Q3D at the moment? Would love to mess with HDR and DOF!
B
81
S
23
G
6
Posts: 240
Reputation: 7,786

Post » Mon Jan 26, 2015 4:12 pm

Android-Music wrote:Sorry if I missed something but is there any post processing support in Q3D yet? Would love to mess with HDR and DOF!


ATM simple post processing effects can be done by using "inside" render mode on Q3DMaster and setting up effects on Q3DMaster as you would on a sprite. I plan to possibly add more complicated systems for applying post processing effects that access the depth buffer like DOF and SSAO but its not on the cards yet. you can definitely do HDR though with the inside mode trick, with the proper construct effect (not sure if someones made one yet).

I might allow more complicated effects through an "inside" mode on Q3DViewports, and a special depth/normals rendering mode, so you can layer things up in construct. I'm not sure how things like alpha/transparency would be handled though in those cases. Theres a lot to work out! another way I might do it is by having a separate plugin for controlling post effects. I was toying around with adding deferred renderer support but its very experimental atm in three.js so a lot of features are buggy / lacking. I don't have a crazy amount of time to work on things right now so updates will be slowing down again.
B
79
S
13
G
8
Posts: 1,977
Reputation: 9,947

Post » Mon Jan 26, 2015 5:15 pm

this would be perfect to achieve in Q3DMASTER with shaders https://www.youtube.com/watch?v=GJgukckOhl4

and http://stemkoski.github.io/Three.js/Bubble.html
B
41
S
16
G
7
Posts: 1,750
Reputation: 9,963

Post » Mon Jan 26, 2015 8:19 pm

@QuaziGNRLnose

For my game, I was thinking I may have to create some sort of "chunk loading" system for a mass amount of objects present in the world.

How does Q3D exactly render? Does it just render what is in the viewport or will I have to make a chunk loading system for many objects spread out through the entire world to make sure performance remains in tact

A better way to explain it possibly, is how can I load many objects without the CPU usage going through the roof?
B
18
S
6
Posts: 348
Reputation: 2,633

Post » Tue Jan 27, 2015 1:15 am

The engine checks whats in the view frustum, rendering/updating only what it has to based on that. It doesnt do occlusion culling however. The best way is to destroy/hide what isnt needed if its a performance issue, but leave things alone if it isnt. Also remember its a js engine, so dont expect to make things that are too crazy. If you can set unique materials and unique textures off that helps with performance too. At some point too much is too much however, so i cant recommend more what i have, necessary optimizations can get really complex if needed. I suggest making tests before deciding your game needs to be a certain scale and then ending up dissapointed it isnt.

One thing i can say is that a lot of Q3D models will be slower than one with an equal number of triangles, so batching static objects into a single model can give a huge boost since it makes the gpu do the work.
B
79
S
13
G
8
Posts: 1,977
Reputation: 9,947

Post » Tue Jan 27, 2015 2:34 am

@QuaziGNRLnose

If the engine only renders what in the frustum, then why does it seem to run so poorly when I create (example 10,000 cube objects, with a diffuse texture in the animation editor), wouldn't it only render whats in view aka frustum?

Occlusion culling shouldn't matter right? due to the 2d platform nature of my project, as all object faces are to be seen in the screen view.
B
18
S
6
Posts: 348
Reputation: 2,633

Post » Tue Jan 27, 2015 2:51 am

@gamethirsty

That's because each object still has to perform checks against the frustum and updates each frame, even if its not rendered. every Q3D Model introduces a CPU cost, you can't compare the performance to something like a sprite in C2, 10,000 unique objects existing simultaneously is a lot in 3D. If you're trying to do something like minecraft Q3DModel isn't going to work, there's particular optimizations needed to get something like that with so many "blocks" to perform properly, which can't easily be done in Q3D, they aren't equivalent to something like Q3D model. It requires a special system built from the ground up just for that, using octrees and optimized raycasts to carefully prune and display only whats necessary.

Even around 500 Q3D models on screen at once on a normal system is pushing it. You could have really complicated geometry which has millions of triangles perform better in a single model, than you could have a 100th as many spread across 500 objects because the program will be CPU bound because of all the transforms it'll have to do. Q3D is optimized, so I can't really improve the performance, this is just the way things are. Eventually i'll have particle objects perhaps for stuff like smoke, but there can never be 10000s of unique objects, even modern games don't have this. Stuff is batched together, without unique transforms. Something like minecraft would require a custom plugin for stuff just like that.
B
79
S
13
G
8
Posts: 1,977
Reputation: 9,947

Post » Tue Jan 27, 2015 4:58 am

@QuaziGNRLnose

Thanks for the input, I am going to try out a simple chunk loading system like Minecraft, utilizing arrays, and comparing them to the players position.

Might be a messy way, but could work
B
18
S
6
Posts: 348
Reputation: 2,633

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests