Forum

User posts nktrrz
16 January 2015 05:08
Wow, I tried to figure this out for hours, and just when I gave up and posted my blender file, I figure it out…

Under the Blender Game engine, I saw in the Material tab > Game Settings that Backface culling is on by default and just facepalmed.
16 January 2015 02:29
I have a curved plain of which I need to see both sides, and simply duplicating the mesh and flipping the normals will not do.
12 January 2015 14:43
Hello I have exported a mesh with double-sided normals. Ive selected a default material and selected the double sides lighting checkbox under Blend4Web, and export edited normals. I also clicked cleanup In the Vertex Normals Editor. But no double sided result.

Thanks in advanced!
12 January 2015 03:24
Alright I modified my app.js file to be able to translate the pivot point up and down in the y-axis while still being able to have rotation in the y-axis all with just left mouse clicking. (simpler for mobile and frankly end users )

I am now however having trouble limiting the y axis vertical translation.

I tried using export.apply_vertical_limits from the camera.js module But the camera controls just reset.

m_cam.apply_vertical_limits = function(obj, 0, 20, space) {
if (camera.is_target_camera(obj) || camera.is_eye_camera(obj)) {
var render = obj._render;
render.vertical_limits = {
down: 0,
up: 20
}
}
}


I also tried using the math.min and math.max functions but had no luck with them either.

I'm I approaching this right? Or is there a simpler/better way? Do you have any examples using these limits?

Thanks in advanced.
11 January 2015 13:17
I agree detecting which rendering botteneck is the culprit would be difficult. I guess I was hoping you guys might have experimented with the idea

Its a good thing you mentioned the WebGL Aquarium app because I was about to make another post about Dynamic Loading and Video Game Tessellation and Displacement. But it applies here anyway…

Just like in the WebGL Aquarium example, I can imagine how I could have textures dynamically loaded from low to higher quality as long as the fps in under 60fps.

The next step would be doing the same thing with the meshes. But with outrageous mesh file sizes this wont be as simple. Please let me know If my following thought process is correct:
Like your cartoon_interior demo I could load the scene (with low quality meshes) then manually raise the mesh poly count by loading and replacing the meshes with higher-poly ones. The problem here is there would be a delay between loading higher quality models especially if internet speeds are bad(not to mention the drop in performance). The other option would be to load all quality meshes at first, and start with the LO_Q with all the others hidden and call them up by un-hiding them.

The most efficient way is how its done in video games which is with tessellation and displacement maps, unless you have this kind of feature in the works, is there any other way you think this could be done?

Here's some three.js examples:
tessellation
displacement

Sorry for the long post, I hope I articulated myself adequately
11 January 2015 08:53
In the Making a Game. Part 4: Mobile Devices tutorial the Navigator userAgent Property is used to adjust quality according to whether a mobile browser is detected.

Can a detect_mobile function be used to load a secondary json file that is, for example less polys and more optimized for mobile than the primary json file.
11 January 2015 08:49
I'm trying to come up with a better solution to automatically loading scenes based on system performance, instead of using the detect_mobile Navigator userAgent Property.

Is there a way to test for device/browser performance before loading a scene, like making a certain amount of drawcalls then timing them? Any number below a certain threshold would be able to load more demanding scenes. Wouldn't this be a better approach to determine whether a device can perform well enough to run a scene? Obviously some high-end android devices will out-perform some pcs, so detecting for mobile browser isn't the best solution.
08 January 2015 21:14
Gotcha, I understand. Thanks very much! Love the team's dedication and support.
08 January 2015 15:45
Thanks for the quick response! Im looking into it now.

Now I have a real noob question that ive been trying to figure out for longer then I'd care to admit. In the camera module, what is exactly the Camera Object ID (camobj). It's not the camera name in blender. Is it like a uuid number?

help
08 January 2015 12:24
Woops, did not know the forum didnt support gifs… i fix

Camera Target location:
http://i.imgur.com/TGF6lNq.gif

Camera constrained to shape:
http://i.imgur.com/hvFXPwM.gif