Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to add animation in VC++

How to add animation in VC++

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsc++game-devtutorial
16 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S see me

    :) Hi, Simply add an Animate control on ur dialog Then add a member variable for it. Add "avi" in resource( IDR_AVI ) CAnimateCtrl m_aNimate; m_aNimate.Open( IDR_AVI ) ; m_aNimate.Play( 0,-1,-1 ) ; :) "Dream bigger...Do bigger...Expect smaller" aji

    N Offline
    N Offline
    Noor Akhter
    wrote on last edited by
    #4

    its not the dialogue based,its a Win32 application...it wont support the things u send ...... now wat to do? thx NooR

    1 Reply Last reply
    0
    • Steve EcholsS Steve Echols

      Do you want a realistic waterfall, or just the illusion of a waterfall?


      - S 50 cups of coffee and you know it's on!

      O Offline
      O Offline
      ooola rocks
      wrote on last edited by
      #5

      i want to add a realistic waterfall When the goin gets tough then tough gets going

      Steve EcholsS 1 Reply Last reply
      0
      • S see me

        :) Hi, Simply add an Animate control on ur dialog Then add a member variable for it. Add "avi" in resource( IDR_AVI ) CAnimateCtrl m_aNimate; m_aNimate.Open( IDR_AVI ) ; m_aNimate.Play( 0,-1,-1 ) ; :) "Dream bigger...Do bigger...Expect smaller" aji

        O Offline
        O Offline
        ooola rocks
        wrote on last edited by
        #6

        hi, well mine is not a dialog based application. When the goin gets tough then tough gets going

        1 Reply Last reply
        0
        • O ooola rocks

          i want to add a realistic waterfall When the goin gets tough then tough gets going

          Steve EcholsS Offline
          Steve EcholsS Offline
          Steve Echols
          wrote on last edited by
          #7

          Well...that's pretty advanced, but, typically with any water effect, you need a water texture, and then you animate the texture by changing the texture coordinates. If you want realistic waterfall, you'd also need a particle engine to create mist. I don't have any links to tutorials or code, maybe google for "opengl water tutorial" or poke around on http://nehe.gamedev.net/[^] (that's the second time I've linked to nehe today, what's up with that?!)


          - S 50 cups of coffee and you know it's on!

          • S
            50 cups of coffee and you know it's on!
            Code, follow, or get out of the way.
          O 1 Reply Last reply
          0
          • Steve EcholsS Steve Echols

            Well...that's pretty advanced, but, typically with any water effect, you need a water texture, and then you animate the texture by changing the texture coordinates. If you want realistic waterfall, you'd also need a particle engine to create mist. I don't have any links to tutorials or code, maybe google for "opengl water tutorial" or poke around on http://nehe.gamedev.net/[^] (that's the second time I've linked to nehe today, what's up with that?!)


            - S 50 cups of coffee and you know it's on!

            O Offline
            O Offline
            ooola rocks
            wrote on last edited by
            #8

            yeah i hv checked that link, i want ur verdict on a thing i-e i have downloaded an animated waterfall , itb has 20 frames. now i was wondering may be i shud load each frame using threads, shud i go for multithreading When the goin gets tough then tough gets going

            Steve EcholsS 1 Reply Last reply
            0
            • O ooola rocks

              yeah i hv checked that link, i want ur verdict on a thing i-e i have downloaded an animated waterfall , itb has 20 frames. now i was wondering may be i shud load each frame using threads, shud i go for multithreading When the goin gets tough then tough gets going

              Steve EcholsS Offline
              Steve EcholsS Offline
              Steve Echols
              wrote on last edited by
              #9

              Multi-threading is not the approach I would take. Is the animated waterfall an .avi? If so, check out Lesson 35 on the nehe site.


              - S 50 cups of coffee and you know it's on!

              • S
                50 cups of coffee and you know it's on!
                Code, follow, or get out of the way.
              O 2 Replies Last reply
              0
              • Steve EcholsS Steve Echols

                Multi-threading is not the approach I would take. Is the animated waterfall an .avi? If so, check out Lesson 35 on the nehe site.


                - S 50 cups of coffee and you know it's on!

                O Offline
                O Offline
                ooola rocks
                wrote on last edited by
                #10

                how do v attach a file When the goin gets tough then tough gets going

                Steve EcholsS 1 Reply Last reply
                0
                • Steve EcholsS Steve Echols

                  Multi-threading is not the approach I would take. Is the animated waterfall an .avi? If so, check out Lesson 35 on the nehe site.


                  - S 50 cups of coffee and you know it's on!

                  O Offline
                  O Offline
                  ooola rocks
                  wrote on last edited by
                  #11

                  i want 2 send u the image how 2 attach files When the goin gets tough then tough gets going

                  Steve EcholsS 1 Reply Last reply
                  0
                  • O ooola rocks

                    how do v attach a file When the goin gets tough then tough gets going

                    Steve EcholsS Offline
                    Steve EcholsS Offline
                    Steve Echols
                    wrote on last edited by
                    #12

                    To a message post? I don't think you can. Provide a link instead.


                    - S 50 cups of coffee and you know it's on!

                    • S
                      50 cups of coffee and you know it's on!
                      Code, follow, or get out of the way.
                    1 Reply Last reply
                    0
                    • O ooola rocks

                      i want 2 send u the image how 2 attach files When the goin gets tough then tough gets going

                      Steve EcholsS Offline
                      Steve EcholsS Offline
                      Steve Echols
                      wrote on last edited by
                      #13

                      Don't want your file. Just tell me what format it is.


                      - S 50 cups of coffee and you know it's on!

                      • S
                        50 cups of coffee and you know it's on!
                        Code, follow, or get out of the way.
                      O 1 Reply Last reply
                      0
                      • Steve EcholsS Steve Echols

                        Don't want your file. Just tell me what format it is.


                        - S 50 cups of coffee and you know it's on!

                        O Offline
                        O Offline
                        ooola rocks
                        wrote on last edited by
                        #14

                        the format is GIF When the goin gets tough then tough gets going

                        Steve EcholsS 1 Reply Last reply
                        0
                        • O ooola rocks

                          the format is GIF When the goin gets tough then tough gets going

                          Steve EcholsS Offline
                          Steve EcholsS Offline
                          Steve Echols
                          wrote on last edited by
                          #15

                          So it's an animated GIF file? I don't know how to load an animated gif.


                          - S 50 cups of coffee and you know it's on!

                          • S
                            50 cups of coffee and you know it's on!
                            Code, follow, or get out of the way.
                          O 1 Reply Last reply
                          0
                          • Steve EcholsS Steve Echols

                            So it's an animated GIF file? I don't know how to load an animated gif.


                            - S 50 cups of coffee and you know it's on!

                            O Offline
                            O Offline
                            ooola rocks
                            wrote on last edited by
                            #16

                            ok thnx any way but if u do get some info related to this do let me know When the goin gets tough then tough gets going

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups