These are chat archives for highfidelity/hifi

21st
Mar 2014
Chris Mitchell
@Chris7
Mar 21 2014 14:59
can anyone tell me a short lived script I can run to test some signal/slots?
The ones I've run so far all seem to never end on their own
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 15:36
@Chris7 - you could change count.js to call Script.stop(); after count > 100;
or something like that...
Chris Mitchell
@Chris7
Mar 21 2014 15:38
thanks
Dimitar Dobrev
@ddobrev
Mar 21 2014 16:16
@Geenz Hi, here?
Dimitar Dobrev
@ddobrev
Mar 21 2014 16:55
@birarda Hello.
Stephen Birarda
@birarda
Mar 21 2014 16:55
morning!
Dimitar Dobrev
@ddobrev
Mar 21 2014 16:56
Good morning to you, it's evening here. :smile:
Lucas Crisman
@kordero
Mar 21 2014 16:57
good morning guys
Jadson
@jadsonlourenco
Mar 21 2014 16:57
to :D
Dimitar Dobrev
@ddobrev
Mar 21 2014 16:57
@birarda I've found an approach about widgets on top of GL that should work.
However, I have some issues to clear up because of some specifics of the GL code.
Could you help a little?
Stephen Birarda
@birarda
Mar 21 2014 17:11
I can certainly try!
Dimitar Dobrev
@ddobrev
Mar 21 2014 17:11
Thanks. :)
Basically the approach is this one: http://doc.qt.digia.com/qq/qq26-openglcanvas.html
Add a QGraphicsView and delegate all drawing to it. Then add widgets to the QGraphicsView for which it has built-in support.
Stephen Birarda
@birarda
Mar 21 2014 17:12
@ZappoMan are you around?
@ddobrev one of the things we talked about was implementing chat as an overlay via JS
Dimitar Dobrev
@ddobrev
Mar 21 2014 17:14
@birarda I've seen that. I wanted to try finding a way with widgets, though. Otherwise it would mean rewriting everything anew.
Besides, I remember someone having mentioned that handling input would be difficult.
Stephen Birarda
@birarda
Mar 21 2014 17:23
fair enough
well - graphics isn’t really my forte
(which is why I said I would try and help)
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 17:23
here now
I definitely think we should move the chat UI to using overlays
I also think those overlays should be driven by JS… but I agree with the idea @birarda suggested to expose the underlying XMPP hooks imeplemented in C++ to the JS
so people could write alternate versions of the chat… or could implement programatic chat (like a bot that chats with you, running ELIZA or something
already a JS implementation of eliza… sweet! ;)
Stephen Birarda
@birarda
Mar 21 2014 17:27
well - that’s likely outside the scope of what @ddobrev is trying to do
so can you look at the proposed interim solution and see if it sounds right?
Dimitar Dobrev
@ddobrev
Mar 21 2014 17:35
@ZappoMan @birarda is right, it's quite outside of my scope. I just need the window to appear above the GL view.
I think I've found a solution, I just have a few problems with rendering.
Tony Hagale
@thagale
Mar 21 2014 17:52
@ZappoMan the other day you had some fine-grained profiling output to show the speedup in numberOfOnes(). Looking at the output, I'm guessing you were using Instruments->Time Profiler...I can't seem to get the output to look exactly like yours....am I wrong, or were you using Instruments?
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 17:53
@thagale - yes I was using instruments.
I don't recall exactly what I did on that trace…
Stephen Birarda
@birarda
Mar 21 2014 17:54
the first four or five options on the left help
hide sys calls
invert
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 17:54
flatten recursion
I don't think I did an invert in that particular case
I think I was using "top functions" and I did a keyword search
which is in the top right corner
so it only shows you call stacks with that function in it
Tony Hagale
@thagale
Mar 21 2014 17:56
ah, sweet. i'll give it a try in a few minutes. thanks!
Chris Mitchell
@Chris7
Mar 21 2014 18:03
@ddobrev QGraphicsView is horrendously slow. I advise against using that for anything but a trivial amount of work.
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 18:04
@ddobrev @birarda - on this whole chat thing… I think if we're going to continue to use widgets, then we should just move the chat into a popup again, and call it a day.
Dimitar Dobrev
@ddobrev
Mar 21 2014 18:28
@ZappoMan That would be easiest but then the chat window cannot be ensured to stay within the main window.
Or I haven't found a way to do so.
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 18:29
As I'm saying… the fix is to use overlays
I think you're right, that's a different/bigger project
but the current in window behavior is worse (IMO) and it seems like trying to fix it with widgets is an equally big project.
that's my 2 cents
Dimitar Dobrev
@ddobrev
Mar 21 2014 18:31
@ZappoMan I see. Anyway, I'd like to give it a few more tries with widgets. So could you tell me what's the problem with auto-swapping buffers?
Or at least what is that WL#19514 referred to in GLCanvas.cpp.
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 18:34
when we are lowering our frame rate (as described in WL#19514) the auto-swapping behavior was causing a flicker
@ddobrev
Dimitar Dobrev
@ddobrev
Mar 21 2014 18:35
@ZappoMan Thank you. Is WL#19514 in worklist?
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 18:35
Dimitar Dobrev
@ddobrev
Mar 21 2014 18:35
Thanks.
Mohammed Nafees
@mnafees
Mar 21 2014 19:17
hey, I just compiled hifi on my MacBook Pro and I have the 'Interface' running with the domain-server and the assignment-client as suggested in README.md, now what do I have to do? How can I create a virtual space?
Stephen Birarda
@birarda
Mar 21 2014 19:18
you can connect to your localstack by going to the localhost domain
Mohammed Nafees
@mnafees
Mar 21 2014 19:18
yep, done
Stephen Birarda
@birarda
Mar 21 2014 19:18
then you could load the script in examples called ‘editVoxels’ which will give you tools to edit
voxels
there are a bunch of scripts in that folder that you can try out
we have a domain you can connect to as well to play around
root.highfidelity.io
we’re actually having a company meeting in there now
but there are varying things in that domain every so often - since it’s so early we’re being pretty aggressive and destroying things pretty often
Mohammed Nafees
@mnafees
Mar 21 2014 19:22
@birarda what should happen when I load a script? I don't get to see anything
Stephen Birarda
@birarda
Mar 21 2014 19:22
which script did you load
Mohammed Nafees
@mnafees
Mar 21 2014 19:24
editVoxels.js and I do get something interesting
Stephen Birarda
@birarda
Mar 21 2014 19:24
it should load an overlay on the screen
@problem or @Atlante45 could tell you how the script is setup
but evidently it’s setup so you can change it however you want
Mohammed Nafees
@mnafees
Mar 21 2014 19:25
there's a set of buttons of the left, how do I use them?
Clément Brisset
@Atlante45
Mar 21 2014 19:25
@binaryking use Tab to enable/disable the script, and then you can click the overlays to change tools/colors/scale.
Mohammed Nafees
@mnafees
Mar 21 2014 19:26
okay
Clément Brisset
@Atlante45
Mar 21 2014 19:26
then you can place/erase voxels with left/right click
Grayson Stebbins
@problem
Mar 21 2014 19:26
and change their size with the scroll wheel on your mouse @binaryking
Clément Brisset
@Atlante45
Mar 21 2014 19:26
you also have a brush and a color picker tool on the left
Mohammed Nafees
@mnafees
Mar 21 2014 19:29
@Atlante45 when I use Tab, the overlay just disappears
Stephen Birarda
@birarda
Mar 21 2014 19:29
yeah tab is to show/hide
Clément Brisset
@Atlante45
Mar 21 2014 19:36
yep
Mohammed Nafees
@mnafees
Mar 21 2014 20:03
hmm, this is so cool!
Mohammed Nafees
@mnafees
Mar 21 2014 20:08
do you guys plan to use QML for all the transitions that you require in the proposed new dialog? namely the opacity transition or do you want the C++ Animation Framework to be used?
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 20:11
I think someone is working on that item already
fyi -
Mohammed Nafees
@mnafees
Mar 21 2014 20:12
I see
@ZappoMan are there any Junior Jobs for a beginner?
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 20:15
check out https://worklist.net/worklist.php to see if any of the jobs on there seem good to you
Mohammed Nafees
@mnafees
Mar 21 2014 20:17
I like GUI stuff, so I think #19512 will be good for a start
Brad Hefta-Gaub
@ZappoMan
Mar 21 2014 20:18
crap - looks like that got done and we didn't mark it as such on WL
sorry
Mohammed Nafees
@mnafees
Mar 21 2014 20:19
ah, np
Grayson Stebbins
@problem
Mar 21 2014 21:31
@binaryking you want a Qt UI job? I can think up one for you :)