These are chat archives for highfidelity/hifi

20th
Sep 2017
Matti Lahtinen
@Menithal
Sep 20 2017 16:57
What would be the env parameters to connect my debian server to ice.highfidelity.com instead of dev-ice.?
Clément Brisset
@Atlante45
Sep 20 2017 17:57
Why do you want to connect to the release ice server?
You'll have to set BUILD_BRANCH to stable, but I don't really see the benefits of doing this.
Matti Lahtinen
@Menithal
Sep 20 2017 18:19
was just wondering, since I was wondering if that affects connectivity from users to the doamin
Jeff Moyes
@jmo7
Sep 20 2017 18:51

Clément Brisset @Atlante45,

I had previously tried using the userData but hadn't gotten it to work either, but I tried it again in case I missed something. I still can't get it to work.

Here's what I've tried:

In createFoos.js:

var boxProps = {};
boxProps.type = "Box";
boxProps.position = { "x": 0, "y": 0, "z": 0 };
boxProps.userData = {"info": {"part":"2a"} };
Entities.addEntity(boxProps)

then in foo.js:

Foo.prototype.preload = function(entityID) {
this.entityID = entityID;
var props = Entities.getEntityProperties(entityID);
}

when looking through the values in props, I have userData and it has a lot of other things in it (including a nested userData object) but neither the outer or the nested userData has my "info" property that I added in createFoo.js. Here's a copy of what it does have just for reference:

{"id":"{15085688-e1ba-4743-be90-546fc4184150}","type":"Box","created":"2017-09-20T16:30:05Z","age":0.08846700191497803,"ageAsText":"0 hours 0 minutes 0 seconds","lastEdited":1505925095284771,"userData":"","boundingBox":{"brn":{"x":-1,"y":-0.0625,"z":-1},"tfl":{"x":1,"y":0.0625,"z":1},"center":{"x":0,"y":0,"z":0},"dimensions":{"x":2,"y":0.125,"z":2}},"originalTextures":"{\n}\n","renderInfo":{},"clientOnly":0,"owningAvatarID":"{00000000-0000-0000-0000-000000000000}"}

Is there anything additional to get this to work?

Thanks for any info! =)

Clément Brisset
@Atlante45
Sep 20 2017 19:44

userData is a string, so you need to do in createFoos.js:

var boxProps = {};
boxProps.type = "Box";
boxProps.position = { "x": 0, "y": 0, "z": 0 };
boxProps.userData = JSON.stringify({"info": {"part":"2a"} });
Entities.addEntity(boxProps);

and in foo.js:

Foo.prototype.preload = function(entityID) {
    this.entityID = entityID;
    var props = Entities.getEntityProperties(entityID);
    var userData = JSON.parse(props.userData);
}
@jmo7 ^
Jeff Moyes
@jmo7
Sep 20 2017 20:56
Clément Brisset @Atlante45,
Thanks!! =) (It works)
Christoph Haag
@ChristophHaag
Sep 20 2017 22:08
rebased my openvr on linux changes on RELEASE-7150 and it doesn't look good :/
Screenshot_20170921_000522.png
Clément Brisset
@Atlante45
Sep 20 2017 22:27
Uh oh
Were there any conflicts?
Christoph Haag
@ChristophHaag
Sep 20 2017 22:28
a bit but nothing that should be relevant. I suspect highfidelity/hifi@7e2b296 or highfidelity/hifi@2f85082 but they're not easily revertable, so bisect it is
Clément Brisset
@Atlante45
Sep 20 2017 22:33
Yeah possibly. The distortion looks wrong, is that the issue?
Christoph Haag
@ChristophHaag
Sep 20 2017 22:35
it is one image over both eyes
Clément Brisset
@Atlante45
Sep 20 2017 22:36
Arf, didn't even notice.
COuld be an issue with the display plugins.
Christoph Haag
@ChristophHaag
Sep 20 2017 22:37
huh, the image also gets sheared when i look up or down
Clément Brisset
@Atlante45
Sep 20 2017 22:37
Is your selected display in Interface the Vive?
Christoph Haag
@ChristophHaag
Sep 20 2017 22:38
yes. with 7071 the same thing worked fine, so I'm just going to find the commit that broke it first
Clément Brisset
@Atlante45
Sep 20 2017 22:39
:thumbsup:
Interested to know what caused that.
Christoph Haag
@ChristophHaag
Sep 20 2017 23:04
hmmm git bisect doesn't like it when you add commits during bisect
Clément Brisset
@Atlante45
Sep 20 2017 23:05
Ahahah, yeah, that's probably not gonna do it ^^
Did you make any progress?
Christoph Haag
@ChristophHaag
Sep 20 2017 23:06
i'll test it on RELEASE-7071 again to make sure that still works
then maybe try to rebase 7150 onto that
Christoph Haag
@ChristophHaag
Sep 20 2017 23:13
nope, still broken. gotta try without my steamvr plugin
oh the entire distortion shape looks different than what it should be with the normal vive driver
I bet it's because I set "alwaysActivate": true in my driver.vrdrivermanifest
Christoph Haag
@ChristophHaag
Sep 20 2017 23:23
hm no. it's only using the weird shape with hifi.