Search found 21 matches

by boe666
Thu Jan 03, 2019 2:07 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

Maybe, in first days of new year, somebody show my indolence.. I realy don't know why .getClosestItemAt(x, y) doesn't work....
by boe666
Tue Dec 18, 2018 9:48 am
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

Somebody ????
by boe666
Sat Dec 15, 2018 3:28 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

somebody can can check the code ? Now it's ok ? If ok, why it not working ? Maybe the errors are the problem ? Ho to eliminate this errors ?
by boe666
Wed Dec 12, 2018 7:43 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

<r>Before I ask and write more question - i checked this - it's not working. I thought i have to recalculate x,y from plain rec to virtual canvas (2d to 3d coordinates - x,y only of course). I was ready to check every x,y combination to check proper work getClosestItemsAt function. <br/>
I change my ...
by boe666
Wed Dec 12, 2018 8:17 am
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

<t>Maybe my questions are stupid and for many of You - "groundless", but I realy want understand structure of sweethome3d (in HTML5). Most (in my opinion - almost all) posts on this forum concerns on java version and problems with aplication ( directly on "painting" models). Can you show me the way ...
by boe666
Tue Dec 11, 2018 5:13 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

<r>I don't understand. First of all I read all furnitures to table (FURNITURES[]). After this i print the links to select every funriture ( from this table). After click i do this:
<CODE><s>[code]</s><i>
</i>var HOME = HPC.getHome();
var FURNITURES = HOME.getFurniture();

var itemSel ...
by boe666
Tue Dec 11, 2018 3:00 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

<r>Or maybe this is the problem. Shown after click on canvas.
<CODE><s>[code]</s><i>
</i>Error: WebGL warning: drawArrays: Feedback loop detected between tex target 0x0de1, tex unit 0, levels 0-0; and framebuffer attachment 0x8ce0, level 0.
viewmodel.min.js:20:53017
Error: WebGL: No further warnings ...
by boe666
Tue Dec 11, 2018 2:35 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

<r>Can I check this getClosestItemAt method ? Where is object's coordinates ? If I write x an y direct in code - this method still return null. I take x y coordinates from js console after selected object by code. i.e.:<br/>
selecting object:
<CODE><s>[code]</s><i>
</i>HOME.setSelectedItems(itemSel ...
by boe666
Tue Dec 11, 2018 1:24 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

so, if I understand this proper. I have to translate x,y coordinates (given from flat rectangle) to coordinates in the actual perspective of my model's floor. After this, method getClosestItemAt fill return objects.
Am I Correct ?
by boe666
Tue Dec 11, 2018 12:45 pm
Forum: Developers
Topic: Export HTML5 plug-in
Replies: 30
Views: 23192

Re: Export HTML5 plug-in

I'm trying to understand this, i think it's depend on camera position (before i think the getClosestItemAt calculate this automaticaly) but without any examples i don't know how to start.