由用户创建的信息 trepaning
16 January 2015 20:10
16 January 2015 01:47
one more test until I hear from y'all:
Chrome - position wrong, texture not on one box, glow offset, hotlinks kind of work
IE - position good, no glow, links work
FireFox - all works as expected
GLOW POSITION HOTLINKS link disabled
Chrome - position wrong, texture not on one box, glow offset, hotlinks kind of work
IE - position good, no glow, links work
FireFox - all works as expected
GLOW POSITION HOTLINKS link disabled
15 January 2015 22:46
Here is another test replacing Suzanne and the sphere with a couple boxes:
Chrome- boxes not positioned, glow offset to coded position
IE - boxes positioned as per code
Firefox - boxes and glow positioned as per code
TEST WITH BOX MODELS link disabled
Chrome- boxes not positioned, glow offset to coded position
IE - boxes positioned as per code
Firefox - boxes and glow positioned as per code
TEST WITH BOX MODELS link disabled
15 January 2015 21:40
Here is a quick test with ANIMATION:
Chrome - Suzanne is positioned and glows, not animated
IE - Suzanne is positioned, not animated
Firefox - Suzanne is animated and glows, coded position ignored
ANIMATION GLOW POSITION link disabled
Chrome - Suzanne is positioned and glows, not animated
IE - Suzanne is positioned, not animated
Firefox - Suzanne is animated and glows, coded position ignored
ANIMATION GLOW POSITION link disabled
15 January 2015 20:53
14 January 2015 20:16
Here is my tutorial request: An example scene with an environment JSON, then a cube and a sphere loaded from separate JSON files, placed in the environment via code, and a constant glow around both, and hey, why not make the cube and sphere hotlinks at the same time.
The examples provided have helped me a lot, thanks for that, but my time to figure stuff out is very limited. The more I know about B4W, the more likely it will be used to showcase products as the company pushes into the European and Asian markets, the push being why my time to figure out "stuff" is limited.
The examples provided have helped me a lot, thanks for that, but my time to figure stuff out is very limited. The more I know about B4W, the more likely it will be used to showcase products as the company pushes into the European and Asian markets, the push being why my time to figure out "stuff" is limited.
09 January 2015 02:00
08 January 2015 21:01
With 2 JSON files with 1 model each, only the first loaded will glow.
With two objects in the same JSON, they will both glow.
Is there a way to load multiple JSON files and have them all glow?
With two objects in the same JSON, they will both glow.
Is there a way to load multiple JSON files and have them all glow?
……
function load() {
m_data.load("json/singleModel.json", load_cb);
m_data.load("json/twoModels.json", load_cb);
}
…….
var m_mouse = require("mouse");
function main_canvas_click(e) {
……
var YSbox1= m_scenes.get_object_by_name("singleModel");
if (obj && obj.name == "singleModel") window.open("http://www.link.com")
m_scenes.apply_glow_anim(YSbox1, 1, 1, 0);
var YSRCbox= m_scenes.get_object_by_name("twoModelsA");
if (obj && obj.name == "twoModelsA") window.open("http://www.link2.com")
m_scenes.apply_glow_anim(YSRCbox, 1, 1, 0);
var product2= m_scenes.get_object_by_name("twoModelsB");
if (obj && obj.name == "twoModelsB") window.open("http://www.link3.com")
m_scenes.apply_glow_anim(product2, 1, 1, 0);
;
}
});
b4w.require("example_main").init();