Running Train Opengl Projects Example

Rajeev
Running Train Opengl Projects Example
Creating a Train in Computer graphics is not that much hard but logical. In this post we are going to see an OpenGL Projects Example on trains . Our objective is to develop a simple cg projects for running train. Here we need to draw the following things - Train - the bogies and the engine Train Tracks Sky with surrounds (Environment) After we finish the drawing our next aim would be to give motion to the train. As we are going to draw a simple train so our track will be a straight not in  zigzag  manner. Design and Implementation For developing the train - it's bogies and engine we have defined a simple function. In this simple opengl projects example we are coding this function so we can make any no trains, by just calling it. The following is sample code for drawing train - void TRAINS(int x1,int y1,int a,int b) { int i=0; glBegin(GL_QUADS); glColor3f(0,0.0,1.0); //ENGINE glVertex2f(x1,y1); //lengh of engine=60;height of engine=30; glColor3f(0,0.0,1.0); glVertex2f(x1+60,y1);  glColor3f…

16 comments

  1. Rajeev Kumar Singh
    You want everything readymade?


    Try yourself then problems will come out will help you solve them
  2. Rahul
    How to add smoke?
  3. Shivank Agarwal
    i cannot download the cg source code..there is no captcha being shown..
  4. navneet
    i cannot download the cg source code..there is no captcha being shown..
  5. Rajeev Kumar Singh
    If you have installed the adblocker removed it.
  6. Shivank Agarwal
    it worked..thanku sir..
  7. Dhana Lakshmi
    sir can u send report of client-server to this mail id dhanalakkhmi1993@gmail.com
  8. Dhana Lakshmi
    can u send report of running train to this mail id dhanalakkhmi1993@gmail.com
  9. Rajeev Kumar Singh
    hey you can go to download page in menu at the top and there are few reports you can download it and modify as per your project.


    Still don't want to do it then pay Rs 200 and i will deliver the soft copy to you with everything written as per your project.


    I believe first one is better option


    Thanks for visiting the site do refer other as well and let them become writer and share their projects with their own name.
  10. Rajeev Kumar Singh
    Already said below you are running adblocker kindly remove it!
  11. OpenGL Projects
    Hey Rahul!

    Add smoke with tiny rectangle moving upward and keep their color black
  12. Dhana Lakshmi
    sir can u send function for displaying numbers in opengl
  13. sowmya
    can i get source code for rocket launching plz.....
    this s my email ID- sowmya.tr009nakshatra@gmail.com
  14. someshwar
    hi sir gd mng n hw r u sir ... this is someshwar sir pls send me the source code for how to add smokes from the train engine n mouse source code for train stop n end pls sir and send me the project report for runnig train pls sir someshwar48@gmail.com send me report of running train pls sir i hav to submit on monday sir plss
  15. Unknown
    Sir can you send the code to fly a plane at ametvikram95@gmail.com and after filling the captcha it is showing blank page
  16. Unknown
    Sir can you send the code to fly a plane at ametvikram95@gmail.com and after filling the captcha it is showing blank page