Example #1
0
        /// <summary>
        /// Draws the avatar.
        /// </summary>
        public override void Draw()
        {
            Gl.glPushMatrix();

            //if (m_trackableList.Count != 0)
            //{
            //    if (m_trackableList[0] != null)
            //    {
            //        OpenGlTrackable trackableLeftFoot = new OpenGlTrackable(m_trackableList[0]);
            //        trackableLeftFoot.Draw();
            //    }
            //}

            //CURRENT MARKER BASED DRAWING

            if (m_trackableList.Count == 0)
            {
                if (FilteredMarkerList.listOfMarkers.Count != 0)
                {
                    if ((FilteredMarkerList.listOfMarkers[0] != null) && (FilteredMarkerList.listOfMarkers.Count != 0))
                    {//exception happened when FilteredMarkerList.listOfMarkers.Count was zero and one!!!!
                        leftFoot  = new OpenGLMarker(FilteredMarkerList.listOfMarkers[0]);
                        rightFoot = new OpenGLMarker(FilteredMarkerList.listOfMarkers[0]);

                        this.CollisionModel = leftFoot.CollisionModel;

                        leftFoot.Draw();
                    }
                }
            }

            if (FilteredMarkerList.listOfMarkers.Count == 2)
            {
                rightFoot = new OpenGLMarker(FilteredMarkerList.listOfMarkers[1]);

                rightFoot.Draw();
            }


            ////trackables stuff

            //if (m_trackableList.Count > 0)
            //{
            //    OpenGlTrackable leftFootTrackable = new OpenGlTrackable(m_trackableList[0]);
            //    leftFootTrackable.Draw();

            //    if (m_trackableList.Count > 1)
            //    {
            //        OpenGlTrackable rightFootTrackable = new OpenGlTrackable(m_trackableList[1]);
            //        rightFootTrackable.Draw();
            //    }
            //}

            Gl.glPopMatrix();
        }
Example #2
0
        /// <summary>
        /// Draws the avatar.
        /// </summary>
        public override void Draw()
        {
            List <Marker> copyFilteredMarkerList = new List <Marker>(FilteredMarkerList.listOfMarkers);

            //if (m_trackableList.Count != 0)
            //{
            //    if (m_trackableList[0] != null)
            //    {
            //        OpenGlTrackable trackableLeftFoot = new OpenGlTrackable(m_trackableList[0]);
            //        trackableLeftFoot.Draw();
            //    }
            //}

            //CURRENT MARKER BASED DRAWING

            if (m_trackableList.Count == 0)
            {
                if (copyFilteredMarkerList.Count != 0)
                {
                    if (copyFilteredMarkerList[0] != null)
                    {
                        leftFoot  = new OpenGLMarker(copyFilteredMarkerList[0]);
                        rightFoot = new OpenGLMarker(copyFilteredMarkerList[0]);

                        this.CollisionModel = leftFoot.CollisionModel;

                        leftFoot.Draw();
                    }
                }
            }

            if (copyFilteredMarkerList.Count == 2)
            {
                rightFoot = new OpenGLMarker(copyFilteredMarkerList[1]);

                rightFoot.Draw();
            }


            ////trackables stuff

            //if (m_trackableList.Count > 0)
            //{
            //    OpenGlTrackable leftFootTrackable = new OpenGlTrackable(m_trackableList[0]);
            //    leftFootTrackable.Draw();

            //    if (m_trackableList.Count > 1)
            //    {
            //        OpenGlTrackable rightFootTrackable = new OpenGlTrackable(m_trackableList[1]);
            //        rightFootTrackable.Draw();
            //    }
            //}
        }
Example #3
0
        /// <summary>
        /// Draws the avatar.
        /// </summary>
        public override void Draw()
        {
            Gl.glPushMatrix();

            //if (m_trackableList.Count != 0)
            //{
            //    if (m_trackableList[0] != null)
            //    {
            //        OpenGlTrackable trackableLeftFoot = new OpenGlTrackable(m_trackableList[0]);
            //        trackableLeftFoot.Draw();
            //    }
            //}

            //CURRENT MARKER BASED DRAWING

            if (m_trackableList.Count == 0)
            {
                if (FilteredMarkerList.listOfMarkers.Count != 0)
                {
                    if ((FilteredMarkerList.listOfMarkers[0] != null) && (FilteredMarkerList.listOfMarkers.Count != 0))
                    {//exception happened when FilteredMarkerList.listOfMarkers.Count was zero and one!!!!
                        leftFoot = new OpenGLMarker(FilteredMarkerList.listOfMarkers[0]);
                        rightFoot = new OpenGLMarker(FilteredMarkerList.listOfMarkers[0]);

                        this.CollisionModel = leftFoot.CollisionModel;

                        leftFoot.Draw();
                    }
                }
            }

            if (FilteredMarkerList.listOfMarkers.Count == 2)
            {
                rightFoot = new OpenGLMarker(FilteredMarkerList.listOfMarkers[1]);

                rightFoot.Draw();
            }


            ////trackables stuff

            //if (m_trackableList.Count > 0)
            //{
            //    OpenGlTrackable leftFootTrackable = new OpenGlTrackable(m_trackableList[0]);
            //    leftFootTrackable.Draw();

            //    if (m_trackableList.Count > 1)
            //    {
            //        OpenGlTrackable rightFootTrackable = new OpenGlTrackable(m_trackableList[1]);
            //        rightFootTrackable.Draw();
            //    }
            //}

            Gl.glPopMatrix();

        }
Example #4
0
        /// <summary>
        /// Draws the avatar.
        /// </summary>
        public override void Draw()
        {
            List<Marker> copyFilteredMarkerList = new List<Marker>(FilteredMarkerList.listOfMarkers);

            //if (m_trackableList.Count != 0)
            //{
            //    if (m_trackableList[0] != null)
            //    {
            //        OpenGlTrackable trackableLeftFoot = new OpenGlTrackable(m_trackableList[0]);
            //        trackableLeftFoot.Draw();
            //    }
            //}

            //CURRENT MARKER BASED DRAWING

            if (m_trackableList.Count == 0)
            {
                if (copyFilteredMarkerList.Count != 0)
                {
                    if (copyFilteredMarkerList[0] != null)
                    {
                        leftFoot = new OpenGLMarker(copyFilteredMarkerList[0]);
                        rightFoot = new OpenGLMarker(copyFilteredMarkerList[0]);

                        this.CollisionModel = leftFoot.CollisionModel;

                        leftFoot.Draw();
                    }
                }
            }

            if (copyFilteredMarkerList.Count == 2)
            {
                rightFoot = new OpenGLMarker(copyFilteredMarkerList[1]);

                rightFoot.Draw();
            }


            ////trackables stuff

            //if (m_trackableList.Count > 0)
            //{
            //    OpenGlTrackable leftFootTrackable = new OpenGlTrackable(m_trackableList[0]);
            //    leftFootTrackable.Draw();

            //    if (m_trackableList.Count > 1)
            //    {
            //        OpenGlTrackable rightFootTrackable = new OpenGlTrackable(m_trackableList[1]);
            //        rightFootTrackable.Draw();
            //    }
            //}

        }