Forum

User posts Alberto
24 January 2017 09:14
Hi I want to ask if anyone can help me with some materials.

I had hand painted a uv map and I want to know if there is a way to eliminate the color I dont need and make the rest of the uv map transparent because I want to make like a flower pot of glass with painted thingies

I attached the .blend
21 December 2016 23:44
I just downloaded and created a project and it's exactly what I wanted to do thank you.
21 December 2016 02:41
Hi.

I want to know if there's a way to have all files in just one folder.

Like before when that all files where in the same folder in apps_dev.

I know that having everything in diferent folders help with organization but I like to know if theres' a way to have everyting in the same folder. Thanks
29 November 2016 20:13
Oh in the past releases that was working for me.

Thanks for making it clear for me I really appreciate the help.
29 November 2016 10:08
I downloaded the developer preview and it's still not creating me the starter files but I create them and in the .b4w_project file changed the engine_type from "webplayer_json" to "update" and it's working .



But the project manager still doesn't create me the files when I select this



this is the result



I had to create them manually (which is not a problem) but if you can tell me what am I doing wrong I will appreciate it. thanks
28 November 2016 07:37
Hi

To make an application like the cartoon interior project do I have to make all the models in individual projects? then copy the .json and .bin files of each project into a new project?

Or there's a way to create all of them with only one blender file?

Also I have a problem creating new project's because it doesn't create me the application starter files (html/js/css files), I have the last version of the SDK.
01 November 2016 22:22
Oh it works… I'm sorry both nodes are a little bit similar so… my fault….

Here it is
LINK

The only thing left it's change the size of the image, rotate the image and if the image have transparent background it doesn't have to show that white rectangle.

If I'm not mistaken I have to add more sliders and nodes but like I said at the beggining of this topic I'm new with nodes :/ where can I find info to achieve this?
01 November 2016 07:59
Here is my blend file

And the example that you send I cannot see it in my browser because of this

NS_ERROR_UNKNOWN_PROTOCOL

the preloader show up but it keeps in 1%.

And for the record I have already downloaded the latest release

Thanks
29 October 2016 08:31
I'm very thankful! I really appreciate your help!

Link

This is what I'm getting but I don't know what's wrong this is my code

"use strict"

// register the application module
b4w.register("ropa", function(exports, require) {

// import modules used by the app
var m_app       = require("app");
var m_data      = require("data");
var m_tex       = require("textures");
var m_objects   = require("objects");
var m_scenes    = require("scenes");
var m_cfg       = require("config");
var m_version   = require("version");

var DEBUG = (m_version.type() === "DEBUG");

/**
 * 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: true,
		console_verbose: true,
		autoresize: true
	});
}

/**
 * callback executed when the app is initialized 
 */
function init_cb(canvas_elem, success) {

	if (!success) {
		console.log("b4w init failure");
		return;
	}

	// ignore right-click on the canvas element
	canvas_elem.oncontextmenu = function(e) {
		e.preventDefault();
		e.stopPropagation();
		return false;
	};

	load();
}

/**
 * load the scene data
 */
function load() {
	m_data.load("ropa.json", load_cb);
}

/**
 * callback executed when the scene is loaded
 */
function load_cb(data_id) {
	m_app.enable_camera_controls();
	load_data();
	init_sliders();

	// place your code here

}

function init_sliders() {
    var playera = m_scenes.get_object_by_name("playera");

    var x_slider = document.getElementById("x_coord");
    x_slider.oninput = function(e)
    {
        m_objects.set_nodemat_value(playera, ["imagen", "x_coord"], x_slider.value);
    }

    var y_slider = document.getElementById("y_coord");
    y_slider.oninput = function(e)
    {
        m_objects.set_nodemat_value(playera, ["imagen", "y_coord"], y_slider.value);
    }
}

function load_data()
{
	var playera = m_scenes.get_object_by_name("playera");
	var ctx_image = m_tex.get_canvas_ctx(playera, "ImageFront")

	var img = new Image();
	img.src = "img/logo.jpg";
	img.onload = function()
	{
		ctx_image.drawImage(img, 650, 700, 500,500);
		m_tex.update_canvas_ctx(playera, "ImageFront");
	}

}

});

// import the app module and start the app by calling the init method
b4w.require("ropa").init();


It's almost done but there's still something wrong and I don't know what it is
23 October 2016 08:16
I have already done the changing thing of the UV coordinates with the api. So that's done.


I need an example of the nodes only, that's the only thing I don't know how to do it. I will be pleased if you can help me with that