Tagged: iframe embedded web page, php variables
- This topic has 18 replies, 2 voices, and was last updated 6 years, 3 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2018-07-04 at 9:42 pm #5489NewFakeCustomer
Hi!
Do you, please, see any reason why the puzzle page of a project that uses the html page renderer (with the htmlmixer.js script) doesn’t load?
The gauge remains at 0% and running. It occurs with or without the visual logic js and xml files in the app folder.
The project is too heavy for me to upload it here.
NewFake :)
2018-07-05 at 8:25 am #5496Yuri KovelenovStaff2018-07-16 at 12:47 pm #5735NewFakeCustomerHi!
Ok, puzzles issue solved through the web console; thank you. The puzzles’ folder was escaped with // I don’t know why, Anyways, solved I should get used to check the web console
However, I do need your advices, because:
1) to having the links clickable in the embedded web page, within both my app and yours, the htmlmixer example app, we need to slighly move, rotate, either the background or the object that carries the plane, that itself carries the iframe. Otherwise the links aren’t clickable…
2) I also didn’t find the way to having that plane to follow any animation applied in Blender to the object that carries it; said differently, please, how to have the plane that carries the “iframed” web page to stick to its carrying object?
I didn’t find much help related to this “html embedder” in the manual section, even using the local search engine by typing html or htmlmixer.
NewFake :)
2018-07-16 at 2:18 pm #5737Yuri KovelenovStaffHi,
to having the links clickable in the embedded web page, within both my app and yours,
I tried our example with soft8soft.com website loaded in it – the links seem work… am I missing something?
how to have the plane that carries the “iframed” web page to stick to its carrying object?
I was able to make it parented as follows:
v3d.SceneUtils.attach(mixerPlane.object3d, scope.scene, scope.scene.getObjectByName('Cube')); mixerPlane.object3d.scale.multiplyScalar(5);
2018-07-16 at 4:25 pm #5747NewFakeCustomerHi!
1) I checked in both Edge and FF, latest versions. Same; I must slightly rotate something to having the links functioning..
I’ll check in Chrome and I’ll let you know.2) Please, where to put those two lines of code; in which file?
v3d.SceneUtils.attach(mixerPlane.object3d, scope.scene, scope.scene.getObjectByName(‘Cube’));
mixerPlane.object3d.scale.multiplyScalar(5);NewFake :)
2018-07-17 at 10:34 am #5752Yuri KovelenovStaffwhere to put those two lines of code; in which file?
These should be put in the main js file of an application. In our htmlmixer example they can be put just after
scope.scene.add(mixerPlane.object3d);
2018-07-17 at 4:37 pm #5769NewFakeCustomerHi!
back to the fact that I have to rotate slightly an object that carries a web “iframed” plane (htmlmixer):
Yes, it works fine in Chrome; links are clickable right away.
However, please, check in FireFox and Edge, latest versions, to see that small issue; ie the fact that we must slightly rotate the carrying object to having the links clickable in the embedded page.NewFake :)
2018-07-18 at 8:38 am #5779Yuri KovelenovStaff2018-07-19 at 6:31 pm #5864NewFakeCustomerHi,
are you please sure that we must put those two lines after:
var mixerPlane = new THREEx.HtmlMixer.Plane(mixerContext, domElement, { elementW: 512 });
mixerPlane.object3d.scale.multiplyScalar(5);
scope.scene.add(mixerPlane.object3d);Which makes:
_______________
var mixerPlane = new THREEx.HtmlMixer.Plane(mixerContext, domElement, { elementW: 512 });
mixerPlane.object3d.scale.multiplyScalar(5);
scope.scene.add(mixerPlane.object3d);
v3d.SceneUtils.attach(mixerPlane.object3d, scope.scene, scope.scene.getObjectByName(‘Cube’));
mixerPlane.object3d.scale.multiplyScalar(5);
________________Because this way we end up with twice the line of code: mixerPlane.object3d.scale.multiplyScalar(5);
Anyways I tried that suggestion but it doesn’t work, at least on my side.
My two problems are bounded: as I have to slightly rotate either the scene or the carrying object to having the links clickable, I tried to move the carrying object within a small animation, a small rotation, to see if the links become clickable. But the carried plane doesn’t follow the rotation of the carrying object, doesn’t stick with it, with the addition of the two lines of code you recommended to add.
I’m blockedNewFake :)
2018-07-20 at 3:13 pm #5896Yuri KovelenovStaffAnyways I tried that suggestion but it doesn’t work, at least on my side.
Anything is printed in the browser console?
2018-07-20 at 6:44 pm #5901NewFakeCustomerHi!
Here’s what the FF web console says:
Successfully compiled asm.js code (total compilation time 13ms; storage initialization failed (consider filing a bug)) v3d.js
Verge3D 2.5.0 v3d.js:1:397123v3d.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(233,25-100): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
v3d.js:1:378470
v3d.CSS3DRenderer 2.5.0 CSS3DRenderer.js:41:5
v3d.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(75,25-100): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
Note: now what’s weird is that the fact of calling, opening the web console makes the links on the embedded page clickable right away, without rotating whatsoever on the app’s web page.NewFake :)
2018-07-22 at 2:40 pm #5912NewFakeCustomerPlease, see if you can give us more tweaking options on the htmlmixer functionalities through puzzles; also simplifying if possible.
Here are some resources that might help. Specially in animating the embedded iframe:
https://github.com/mymess/threex.htmlmixer
https://github.com/jeromeetienne/threex.htmlmixer
https://jeromeetienne.github.io/threex.htmlmixer/examples/demo.html#default
On those examples you see that the guy rotates the iframe.
If it’s easier to having just the iframe without carrying object, it would be fine to me.I encounter several problems with the present htmlmixer version of Verge:
As said before the links aren’t clickable right away in FF & Edge, at least on my side.
The embedded iframe doesn’t follow the carrying object’s animations, at least on my side.
It’s hard to harmonize the size of the carrying object with the content of the iframed web page.
Sending php variables from the app’s page to the embedded one.I know that I’m demanding. However I would greatly appreciate you to enhance that functionality, which might help other users of Verge I guess.
NewFake :)
2018-07-23 at 8:49 am #5938Yuri KovelenovStaffHi,
Thanks for the feedback and suggestions. This feature seems however too specific for creating dedicated puzzles and for inclusion it to Verge3D core.
I’d suggest using the object3d pointer to access generic properties and methods of the 3D object behind the HTML embedding:
mixerPlane.object3d
.2018-07-23 at 5:44 pm #5970NewFakeCustomerHi,
I understand, however, can you please check what I wrote 2 steps above, regarding the fact that the iframe doesn’t follow the carrying object with the piece of code you gave ma; remember, you asked me what the console was saying:
Here’s what the FF web console says:
Successfully compiled asm.js code (total compilation time 13ms; storage initialization failed (consider filing a bug)) v3d.js
Verge3D 2.5.0 v3d.js:1:397123v3d.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(233,25-100): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
v3d.js:1:378470
v3d.CSS3DRenderer 2.5.0 CSS3DRenderer.js:41:5
v3d.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(75,25-100): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect themNote: now what’s weird is that the fact of calling, opening the web console makes the links on the embedded page clickable right away, without rotating whatsoever on the app’s web page.
NewFake :)
2018-07-24 at 2:27 pm #5972Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.