论坛

由用户创建的信息 ben
20 November 2015 12:33
ben
When I use a semi soft cam, the keyboard input for movement results in a difference in the angle between the view and the actual camera object.

Tweaking the softness parameter can reduce this, but the lower it is, the slower the mouse moves the view. This is why I tried to use the other camera mode.

The input on the stiff camera feels good, and how it should respond, but the jitter is probably not worth the compromise. The soft camera results in a lag in the camera following the camera object which to me doesnt feel as nice to control. It also causes the camera object to move left and right in a slight angle to the camera view since the movement is relative to the camera, but the camera is slightly off angle due to the soft constraint.

Is there perhaps an alternative or a better way to use the mouse to look around while controlling a character in 3rd person?
20 November 2015 05:33
ben
Hi Dallas,

I am a blend4web noob but was just experimenting with this so maybe I can help.

I am assuming you don't mean first person but 3rd person like minecraft? There is a good tute here for first person:

https://www.blend4web.com/en/article/103/

I have tried to adapt this to a 3rd person perspective but get some strange issues on the camera object. At certain points in moving around, it seems when you rotate it, the object "jitters". I have added a screencast you can almost see the issue. This is just moving the mouse/rotating the camera, the camera object jitters left and right.

I have attached the js file I am using, the blend is just a plane, a cube, and a cylinder is the camera object.

I also tried to integrate/adapt the mobile controls from the making a game p4 tutorial. This seems to work quite well.
19 November 2015 10:03
ben
Hi Everyone,

I am trying to use canvas_texture to dynamically load text on to an object. This is working fine as per the code snippet examples.

I am now trying to copy the object and then apply different text to each object, but during a copy have no way to specify a different name for the texture of the copied object, so setting the text of the canvas texture applies to both objects. Is there a way to copy the canvas texture as well or should I be making multiple objects with different canvas textures and just loading them when I need? This seems like it might be more inefficient?

Ben
09 November 2015 15:30
ben
According to this post it was released in 15.04

https://www.blend4web.com/en/forums/topic/65/

I tried to use a movie instead, but can't seem to make the alpha appear as anything other than black. Anyone got any suggestions for me?
09 November 2015 11:08
ben
Hi Will,

Thanks for the speedy response. Work was busy over the weekend but I have had a chance to try what you suggest.

Here is a really simple blend, with an image sequence as the texture for a plane. When either using the export to html or fast preview I just get a grey plane. I saw in another post in this forum that image sequences are supported so am wondering what I am doing wrong.

When I use the automatically pack into blend option, it reports no new files were added.

The image sequence is 75 images , eye_0.png to eye_75.png. Changing the start and offset options inside blender does indeed show it loading the other images from the sequence.
06 November 2015 04:43
ben
I have been learning blend4web and am really enjoying the product, however I cannot seem to get image sequences to show. I have a series of images that have been animated and are a numbered sequence of png files.

I can add them on to a plane, for example, and verify in blender that they do infact show, and play correctly, however I cannot see the images (just a blank grey plane) when I either use fast preview or export to HTML.

I tried using the export converted media options and a few other, I have no issues with single images and video textures but the sequences dont seem to work.

Am I missing something basic?

Ben