These are chat archives for highfidelity/hifi

16th
Jul 2014
Mohammed Nafees
@mnafees
Jul 16 2014 15:56
@birarda @ZappoMan @Atlante45 I am porting Stack Manager to Qt and I am facing a problem on Windows. I am unable to get the debug output of assignment-client and domain-server which I start through QProcess. I asked on IRC and the Qt experts say that since Windows has a debug buffer and if we use qDebug() to output the debug messages, the messages go to this debug buffer and hence I am not getting any output of the underlying child process of AC or DS. How should I fix this in order to get the output? I know that if we use cmd.exe to launch AC or DS then we do get the debug output. I tried to first start cmd.exe through QProcess and then launch AC or DS but to no avail.
Andrew Meadows
@AndrewMeadows
Jul 16 2014 20:38
@AlericInglewood, were you going to implement a ray-vs-capsule test? I've discovered today that I need ray-vs-infinite-cylinder test for something and was thinking about implementing it. That math is an ingredient of the recipe that solves the ray-vs-capsule problem.
AlericInglewood
@AlericInglewood
Jul 16 2014 20:58
@AndrewMeadows I have worked for several days on that and I'm currently testing that code! So, do me a favour and use what I've worked on instead of implementing it yourself :wink2:
Andrew Meadows
@AndrewMeadows
Jul 16 2014 21:22
ok
AlericInglewood
@AlericInglewood
Jul 16 2014 23:30

@AndrewMeadows What function do you exactly need? What about,

bool findRayCylinderIntersection(const glm::vec3& rayStart, const glm::vec3& rayDirection,
        const glm::vec3& axisPoint, const glm::vec3& axisDirection, float radius, float& distance)

?

I can add that to libraries/shared/src/GeometryUtil.cpp -- is that ok?
Note it does't return an intersection, but only one point: the one closest to rayStart. Also, if rayStart is inside the cylinder, do you want it to return 0 for the distance, or do you need it to return the distance to the edge (aka, a hollow cylinder).
Andrew Meadows
@AndrewMeadows
Jul 16 2014 23:49
@AlericInglewood, actually go ahead and make the code that you need. I'll take or modify from it as necessary.