由用户创建的信息 WillWelker
01 July 2017 16:24
Maybe a second object mesh with emission that is 'hidden' in the light off phase and shown for light on?
That way, the show/hide object nodes could control it.
Alternatively, you could use set_alpha_factor() to code a variable fade in and fade out.
set_emit_factor() might work as well.
That way, the show/hide object nodes could control it.
Alternatively, you could use set_alpha_factor() to code a variable fade in and fade out.
set_emit_factor() might work as well.
29 June 2017 06:53
Hi Charlie, Welcome tot he forum.
Your project is very nice. It make me embarrassed when I think of some of my first projects lol.
Since you are basically just using Javascript in a web page, reading and writing to a database is no different.
So your client probably already has a database. MySQL maybe?
Client side JavaScript to MySQL is sort of a pain but if you have other options like using JSON, it is easer.
Here is a link on doing it with JSON.
The Page Param node might interest you as well. This node captures parameters passed in the URL. So if the clients existing database structure allowed you to append custom parameters in the link to your application, you could then capture those variables and apply them accordingly.
Or you could do GET requests with nodes.
Your project is very nice. It make me embarrassed when I think of some of my first projects lol.
Since you are basically just using Javascript in a web page, reading and writing to a database is no different.
So your client probably already has a database. MySQL maybe?
Client side JavaScript to MySQL is sort of a pain but if you have other options like using JSON, it is easer.
Here is a link on doing it with JSON.
The Page Param node might interest you as well. This node captures parameters passed in the URL. So if the clients existing database structure allowed you to append custom parameters in the link to your application, you could then capture those variables and apply them accordingly.
Or you could do GET requests with nodes.
28 June 2017 09:38
Hi, nwhiting,
I think the first thing to try is to make sure you are running the latest version of Blend4Web. Currently 17.04.1.
And make sure your file path to the SDK is correct. It should look something like this in User Preferances > File > Scripts.
C:\blend4web_ce\
If that doesn't work I would start suspecting a problem with the Blender install.
I think the first thing to try is to make sure you are running the latest version of Blend4Web. Currently 17.04.1.
And make sure your file path to the SDK is correct. It should look something like this in User Preferances > File > Scripts.
C:\blend4web_ce\
If that doesn't work I would start suspecting a problem with the Blender install.
26 June 2017 22:07
That is great. This works great for reducing file sizes.
When you import the OBJ file into Blender, it doesn't keep any scale. So when I need to work at scale, I use ground control points (GCP). I measure some things on the site that will be easy to identify in Blender. You can either place aerial targets or use existing features for this. Then you can use this real world measurement to scale the model in Blender. Once scaled properly, you can make measuring devices to move around and measure things.
When you import the OBJ file into Blender, it doesn't keep any scale. So when I need to work at scale, I use ground control points (GCP). I measure some things on the site that will be easy to identify in Blender. You can either place aerial targets or use existing features for this. Then you can use this real world measurement to scale the model in Blender. Once scaled properly, you can make measuring devices to move around and measure things.
25 June 2017 05:24
Hi rivorizaldi,
I think you need to make some changes in the JS file. If you look further down in the tutorial you linked, there is some JavaScript to add. Did you add display: none; in your CSS?
Also, here is a code snippet page. You can click the "View Code" button to see all the HTML and JavaScript code.
If you go to this same code snippet from your SDK Index page, you can hit the "Make Project" button in the lower left to copy this project into your project folder.
I think you need to make some changes in the JS file. If you look further down in the tutorial you linked, there is some JavaScript to add. Did you add display: none; in your CSS?
Also, here is a code snippet page. You can click the "View Code" button to see all the HTML and JavaScript code.
If you go to this same code snippet from your SDK Index page, you can hit the "Make Project" button in the lower left to copy this project into your project folder.
#my_design {
cursor: pointer;
position: absolute;
background-color: #ffa201;
border-radius: 5px;
color: #000;
font-weight: bold;
box-shadow: 0 0 4px 2px #a94c00;
display: none; /* Did you add this line? */
}
#my_design_child {
position: absolute;
top: 30px;
background-color: #000;
background-size: cover;
height: 100px;
border-radius: 5px;
color: #ffa201;
font-weight: bold;
box-shadow: 0 0 4px 2px #a94c00;
display: none; /* Did you add this line? */
}
25 June 2017 04:01
Hi Ashy, welcome to the forum.
ianscott888 does some great videos on Blend4Web. Here is one that might be just what you need.
https://youtu.be/6wI7RgmcK0A
ianscott888 does some great videos on Blend4Web. Here is one that might be just what you need.
https://youtu.be/6wI7RgmcK0A
24 June 2017 06:03
24 June 2017 02:58
You can pass some parameters into the URL. So you add some things on to the address of your file.
For example if you open your HTML file and the address looks like this:
http://localhost:6687/projects/my_project/assets/my_project.html
Add ?no_social at the end and hit Enter:
http://localhost:6687/projects/my_project/assets/my_project.html?no_social
And you can add more parameters on:
/my_project.html?min_capabilities&compressed_textures_pvr&compressed_textures&alpha&no_social
Here is the documentation on this:
https://www.blend4web.com/doc/en/web_player.html#attributes
For example if you open your HTML file and the address looks like this:
http://localhost:6687/projects/my_project/assets/my_project.html
Add ?no_social at the end and hit Enter:
http://localhost:6687/projects/my_project/assets/my_project.html?no_social
And you can add more parameters on:
/my_project.html?min_capabilities&compressed_textures_pvr&compressed_textures&alpha&no_social
Here is the documentation on this:
https://www.blend4web.com/doc/en/web_player.html#attributes
24 June 2017 02:33
Ya, if you want to see it.
webodm_textured_mesh.blend
I flew this mission for a map so the 3D model is a little less detailed. If I was flying to produce a model, I would have flown lower with higher overlap.
webodm_textured_mesh.blend
I flew this mission for a map so the 3D model is a little less detailed. If I was flying to produce a model, I would have flown lower with higher overlap.
22 June 2017 18:10