Форум

Сообщения, созданные пользователем HotGoblins
10 марта 2017 13:25
Haha, It's very strange your file.

Your objects are rendered like if they aren't modify, just like you create a new cube for example.

I test create a new scene and append your objects.
The html is the same, so the problem don't come your scene.
I test create a new object in this new blend, my object render is good,
So, the problem comes from your objects.

I have searched but I don't know the difference between your objects and a new object, sorry.
Maybe, you modelizes strangely, I don't know. You haven't modifier, the scale is apply.
Try to re-create your object
28 февраля 2017 18:03
Thanks Dmitry !
This is exactly what I needed.

One more question, now, how can I transform the function of show/hide describe to :

- If I click on 1. After I click on 2, I want to close automatically the panel 1.
- And why not show the panel with a scale fade
28 февраля 2017 12:42
Ok, I'm stupid, I know how to appear an element when I click :

/**
    * Click on an object
    */
    function click_object(x, y) {

        var obj = m_scs.pick_object(x, y);

        //action
        if (obj) {
            //outlined
            m_scs.apply_outline_anim(obj, 1, 1.8, 1);

            if (obj.name == "my_object") {
                var anchor = m_scs.get_object_by_name("my_anchor");
                if (m_scs.is_hidden(anchor))
                    m_scs.show_object(anchor, false);
                else
                    m_scs.hide_object(anchor, false);
            }
        }
    }


So, my question is :
How to create an anchor with a big text inside with bold, italic, \n, … ?

I use the anchor type Annotation because It's fine. I put my text in the Title of MetaTags.
28 февраля 2017 12:03
Hi everybody,

I look at the code_snippets custom_anchor and I understand the three type of how to create an anchor.
Now, I will to create an anchor a little like DairyPlant, we click on an object and a description appear.

I look the js, the css and the blend of DairyPlant but there is many many informations and I don't know where are the infos who interest me.
Can you help me ? How to create a custom anchor with many and stylish texts who appear when I click on a selectable object ?

Find for your help.
17 ноября 2016 11:52
I don't know Dash Docset and I'm not here to answer to sciremedia but I benefit this post on the documentation to propose something.

Your module doc is complete but lacks examples. In the Unity doc, there is example for each function, attributs and it's very helpful to vizualise how works differents function. Personnaly, I have many difficulty using sensor, and other function in camera module, etc

Sorry to use this post and thanks for your job.
17 ноября 2016 11:37
Hi, sorry for the late answer.

What you say is wrong in my case :
If I activate Enable Physics in Blender and don't reference physics_enabled, I have the bug, so physics is activate.
If I deactivate Enable Physics in Blender and don't reference physics_enabled, I have the bug, so physics is activate.
If I activate Enable Physics in Blender and reference false for physics_enabled, It's ok, so physics is not activate.
If I deactivate Enable Physics in Blender and reference false for physics_enabled, It's ok, so physics is not activate.
If I deactivate Enable Physics in Blender and reference true for physics_enabled, I have the bug, so physics is activate.

After, I solved my problem for the URL, I had forgotten m_app in the first line :
var url_params = m_app.get_url_params(m_app);

So my solution for the moment is :
exports.init = function () {
        //check in url to activate physics or not
        var url_params = m_app.get_url_params(m_app);
        var use_physics = false;

        if (url_params && "physics" in url_params) {
            var str = url_params["physics"];
            if (str == "true")
                use_physics = true;
        }

        m_app.init({
            canvas_container_id: "main_canvas_container",
            callback: init_cb,
            physics_enabled: use_physics
        });
    }
And the switch :
if (obj_player_floor != null) {
        //reload page to activate physics
        var url_params = m_app.get_url_params(m_app);
        var adress = window.location.href;
        if (!url_params) {
            adress += "?physics=true";
            window.location.href = adress;
            return;
        }
}


Now, my scenes that need physics are loaded twice and bug with the memory leak in firefox but my scenes that don't need physics works great.
17 ноября 2016 10:07
Thanks Mike, it's very simple like this.
15 ноября 2016 14:11
Thanks, It works great.
15 ноября 2016 12:09
Hi,

In Blender, the check box "X-Ray" in object panel allows to always rendered an object in front of others.
It's the same visual effect when we selected an object, the origin point is in X-Ray.

My question is : Can we visualize that in runtime ? A param in the object setting or material setting maybe, I don' know

Thanks
15 ноября 2016 11:13
Hi, I want to realize the same operation.

Please, have you a code example to execute an operation when we right click ?

I'm not familiar with sensor and I don't found example for mouse click sensor. So, I don't know how and where to use get_sensor_payload.

Thanks