Enabling Stereo Analglyph mode in my app
27 September 2016 13:22
Hi,
I hope i am asking in the right place, I've searched the forum for an answer in vain and i guess the question is indeed a newbie question.
I'm trying to find how to enable the Stereo Anaglyph view for my app. I find how to do it if i use the player or in the viewer, but how do i enable it when i embed my app in a div with b4w.min.js and the project_name.js ?
I figure i need to put something like "anaglyph=true" in exports.init = function(), but my websearch-fu is failing me at revealing the exact thing to write and where…
Hope i make sense, for the record, i'm not very skilled in javascript so bare with me.
Thank you in advance and big up for this awesome piece of software!
I hope i am asking in the right place, I've searched the forum for an answer in vain and i guess the question is indeed a newbie question.
I'm trying to find how to enable the Stereo Anaglyph view for my app. I find how to do it if i use the player or in the viewer, but how do i enable it when i embed my app in a div with b4w.min.js and the project_name.js ?
I figure i need to put something like "anaglyph=true" in exports.init = function(), but my websearch-fu is failing me at revealing the exact thing to write and where…
Hope i make sense, for the record, i'm not very skilled in javascript so bare with me.
Thank you in advance and big up for this awesome piece of software!
very good language
27 September 2016 13:32
I'm trying to find how to enable the Stereo Anaglyph view for my app. I find how to do it if i use the player or in the viewer, but how do i enable it when i embed my app in a div with b4w.min.js and the project_name.js ?Hi!
I figure i need to put something like "anaglyph=true" in exports.init = function(), but my websearch-fu is failing me at revealing the exact thing to write and where…
And welcome to our forum!
In the init function you can set property stereo="ANAGLYPH"
https://www.blend4web.com/api_doc/module-config.html
27 September 2016 13:39
27 September 2016 13:40
27 September 2016 14:18
Seems i'm out of luck (most probably just doing it wrong),
I entered that in the init function (which i guess is this:)
But everything disappears…. I apologize for my poor level of comprehension in javascript (i guess i really need to study it..)
I entered that in the init function (which i guess is this:)
/**
* export the method to initialize the app (called at the bottom of this file)
*/
exports.init = function() {
m_app.init({
canvas_container_id: "main_canvas_container",
callback: init_cb,
show_fps: false,
console_verbose: true,
autoresize: true,
stereo="ANAGLYPH",
});
}
But everything disappears…. I apologize for my poor level of comprehension in javascript (i guess i really need to study it..)
very good language
27 September 2016 14:25
27 September 2016 14:26