Hotlinks from selectable objects

21 November 2015 01:37 #5142
I cannot find the info about making a selectable object a hotlink. I know how to with JSON but how do I do it with a B4W HTML export?
21 November 2015 05:18 #5145
Hi trepaning,
You can do it with logic nodes. Look at this video:
Blend4Web Videos
21 November 2015 13:31 #5151
That's what I needed, thanks. Made the sign a hotlink

Was unable to make the PLANE that the sign is a hotlink, so placed a rescaled cube over it that does not render and made that the hotlink.

Could not make the Plane or the Cube glow an outline.

B4W folks: The Page Redirect node could use target options like _blank
21 November 2015 13:44 #5153
In this project, for the "Home' and 'Main Map' links, I made the letters and the background plane into hot links. There is not much chance to see a glow but the red flags on the map are links that have a glow.

Nice trash drums by the way
Blend4Web Videos
21 November 2015 21:31 #5161
That is really cool!

I will get plane hotlinks and glow happening eventually, not much time to figure it out for next couple days, but it will happen!

Thanks again for the useful info, I subscribed and look forward to more tutorials from you.
24 November 2015 12:14 #5244
@WillWelker : can you confirm that your panos are mapped on a sphere, but not used as environment maps? I want to make something like that but without any image fisheye effect ( when you rotate it deforms the pano )
24 November 2015 16:38 #5262
I do map them to a sphere. But in some cases you can alter the shape of the sphere to reduce distortions. For example if your spherical image was taken on a flat plane with no objects like trees or buildings right next to you, flatened out sphere mesh can give good results.
Have a look at this video:
The shape I am describing is shown at about 10:20 in the video.

You can achieve different effects by changing the camera mode to 'Eye' or reducing its range in the 'Target' mode. Also by making your sphere larger it seems to reduce distortions. But you are in effect making a 2 dimensional image on the inside of a sphere and sort of tricking the view to feel like it is 3d. It can look good but it won't be real 3d. There will always be some distortion.
Blend4Web Videos
24 November 2015 16:55 #5263
Nice video, thank you;
I'm happy to see I'm not alone to search such things; I've already made photosimulations/integrations on 360 photo/panos using cycles environment mapping ( which is not distorted when rotating) .
I've seen it's possible with blend4web example "forest in fire ", with environment mapping, but I can't manage the mapping of this texture (I don't know how).
I've made it with a cubemesh ,that's perfect: no distorsion at all. I've found a trick to get a good resolution texured cube , the .blend is downloadable there :fabkzo's panocube
25 November 2015 02:22 #5277
Very nice cube. I think the distortion is partially due to how the camera moves. In your sketchfab mode, the camera pivots on its location to look around, similar to the 'Eye' setting in Blend4Web. With the camera in 'Target' mode, the camera pivots around a central target. This means that the camera is in essence, moving side to side which will reveal the 3d aspect of a scene (or lack of 3d in the case of a photosphere). I have chosen this because I insert 3d objecst into my scene and a camera in Eye mode would not show a 3d object, it would appear flat. This is like if you look at a tree with one eye and hold still, you get no 3d perception but if you move side to side you can perceive the depth.
Blend4Web Videos
Please register or log in to leave a reply.