Forum

User posts BigMouse
30 November 2015 12:48
Well , now I'm back to test the B4W Blender side of things, I'll be back to the coding and project exporting things when I'll understand more of the Blender options, and I ran into some odd behaviours -
of course I'm still into character and camera control things. i have a small scene With Camera, Rigid body Character control and a collidable area.
Now, When Character control object is NOT set as 'Character', meaning, the 'Character' checkbox is off in the Physics tab, I can control the camera speed in the 'camera move styles' and other functions just perfectly. The camera doesn't collide with the walls as expected. But when I tick the 'Character' checkbox On in the character object's physics tab, even though the camera is not parented to the character object and there is no known relationship between the camera and the character the move speed of the camera is back to default. any parameter changes in the 'character' setting (aka 'walk speed' and so on) doesn't change anything but the camera collides with the walls, which is nice, but, it doesnt fully react to the rigid body behaviour on the other hand, meaning, it doesnt fall to the ground as expected.
Hmm…
30 November 2015 10:19
OK Will, Thank you, I'll give it a try.
I have another question that I couldn't find an answer to, Where can I control the speed of the default camera's movement from the script files? or do I set it in Blender itself?
28 November 2015 19:01
Well, Second day is over more or less… Still no luck with the coding part. Nothing moves yet…
I don't even know if the changes I'm doing are done in the right file. It seems that the 'Fast preview' is using different file set than the final compiled project And I can't figure out which ones are they, and even manipulating the final compiled .js files doesn't change anything when running the scene in the browser, hmm, and still I don't know if the changes are done in the right file… still digging up in tutorials files and my own project files trying to compare and understand the files structure and the code structure… it's all very confusing. .
Well. off for the weekend. maybe next week I'll do better…
Good weekend all
28 November 2015 09:24

That was the easy part, now it's messing with the coding…
27 November 2015 15:41
Hi all,
What is the most simple way to apply move keys to a character, say, WASD keys that pressing them will move a sphere around the scene regardless of the camera.
I have a static camera (which I would like to keep static), a sphere which is a rigid body and also defined as a character and a plane with collision. the most simple scene in the world. (See image).
When running the 'fast preview' the sphere falls to the plane as expected, now I want to use the WASD keys to move it around.
Keep in mind that I'm a complete Newbie and I don't know anything and also that I'm not a coder so if there are copy+pasting code lines involved, please note which file exactly and where exactly I paste.
Thanks!
27 November 2015 15:03
Hi,
I've been messing about the Blender internal nodes myself recently, and I couldn't get the normal maps right in the nodes editor. Eventually I've turned the normal maps on in the textures tab influencing only the normals and the rest of the material setup I did with the nodes (meaning - Color mixing, specular etc.)
I've simplified your material setup in your blend to show the difference between the nodes normals and the tab normals, see attached images:
Also i couldnt find any tutorial that explain how to use normal maps in the node editor, eventually I gave up on that.
27 November 2015 12:58
Two hours later…

Well, that was quite newbie of me..
All I had to do was to export the proper .json file from Blender to the proper directory … of course it works.
Sorry 'bout that…
27 November 2015 11:00
Hi Will, thank you for the Video link, it cleared out a few things for me especially the 'export to archive' and then the 'Import' step. Now I can see more or less how it works and what it does. I've followed the Video step by step and one thing I'm missing: the .blend that is being compiled, exported and imported is the default blend4web logo scene that carries the name of my project….
I have my scene opened in Blender (a very simple industrial area) with the camera character control (that is still flying about and refuses to behave like a rigid body should ), Oh, and I have the blend4web development server running on the Blender render tab (which by default starts running when I open Blender, Works great BTW), When pressing the 'Fast preview' my scene opens up in the browser as it should. So my question is - when I open the project manager and create a new project, compiling it, exporting and importing, it uses the default logo scene and not my scene?
Now, how is that for a NEWBIE question?…

***
Oh, One thing I forgot to mention is that I tried to build my project manually, meaning, copying the files (Following the 'First person' tutorial) to a new folder, including the HTML, js (after modifiying them), all the resources of my scene and then opening the HTML file from that folder and, it worked!
More or less… I got my scene in the browser the way it should look but no physics, meaning, I cant move my character but I can look around.
I don't have the default camera movement using the wasd keys so I guess it is because the camera is attached properly to the character, I can still look around for the camera's 'eye' control I guess, but I can't move my character, Probably I did something wrong with the .js file…
Well, back to nut cracking then…
26 November 2015 21:06
this was my first day with blend4web, I've started at 8:00 and now it's 18:23.
Yesterday I've installed the blend4web SDK and figured out how to set up a running server and was even able to build a simple test scene and view it in the 'Fast preview' page. figured out most of the rendering, lighting and materials set ups in Blender so I could launch a quite reasonable looking 3D web page eventually.
My aim is to create a scene with a first-person control that can walk through the scene, collide with walls and (hopefully) interact with some elements in the scene. Now, I'm no coder, my knowledge in coding ends up in basic HTML and some CSS and sometimes I feel I'm starting to develop symptoms of Code-phobia… it's not easy for me.
But, today I was experimenting a lot with the character thing, messing about with the .js file, Going through the 'Game creating' tutorials and eventually I've managed to get the camera collide with the walls and NOT going through the floor… one goal achieved.
Only, I still haven't solved the issue with - when looking at the floor and moving backwards my character starts flying backwards, up and away… For some reason the character control doesn't react to gravity even thou it's a 60 kg rigid body with all the necessary 'Physics enabled' check boxes turned on. it collides with walls but not fall down to the floor properly, What am I missing?
Unfortunately, another thing that I couldn't get to work for me was the blend4web Project manager. i understand it is still under heavy development but still I tried all the possible options (aka Default launch checkboxes, other combinations of turned on and off checkboxes) but couldn't compile a running scene.
All I get when running the HTML in the browser is a black screen and when I click on it I get the frame rate counter on the top right corner and a nice 3d blend4web logo on grey background. I wonder what I missed here…

In general, Blend4web is great, a bit of a tough nut to crack thou. I guess most of it's problem are because of it's young age and the need of a lot of attention and care. There is a great need for more tutorials and How-to tips and perhaps more clear and detailed documentation.
Will be back on it tomorrow. night everyone…
26 November 2015 10:44
Thanks!
I'm quite familiar with Blender but Blend4Web is a totally new thing for me and I know I'm going to use it a lot.
So I'll probably come here quite often, asking realy silly questions untill I get the hang of it myself… so bare with me.