opengl synopsis for train moving
#1

SIR can i plz get the synopsis for opengl project ANIMATED ROBOT.
Reply
#2
opengl synopsis for train moving

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(1.0,0.0,0.0);
glVertex2f(x1+60,y1-30);
glColor3f(0,0.0,0.0);
glVertex2f(x1,y1-30);
glEnd();
while(i<3) {
glBegin(GL_QUADS); //BOGIES
glColor3f(1.0,0.0,0.0); //For right train a=795,b=510
glVertex2f(a,b);
glColor3f(1.0,0.0,0.0);
glVertex2f(a+60,b);
glColor3f(1.0,0.0,0.0);
glVertex2f(a+60,b-20);
glColor3f(1.0,0.0,0.0);
glVertex2f(a,b-20);
glEnd();
a+=65; i++;
}
}
Reply
#3
Can u send me the report for this code....
Reply
#4
Creating a train in computer graphics is not that hard but logical. In this post we will see an example of OpenGL projects on trains. Our goal is to develop a simple cg projects for the execution of train. Here we have to draw the following things -

• Train - bogies and engine
• Train tracks
• Sky with surroundings (Environment)
After finishing the drawing our next objective would be to give movement to the train. As we are going to draw a simple train so that our track will be a straight not zigzag shaped.

[Image: Running+Train+Opengl+Projects+Example.JPG]

Design and implementation

To develop the train - it is bogies and motor we have defined a simple function. In this simple example of opengl projects we are coding this function so that we can do no train, simply by calling it. Below is the sample code for the drawing train -

Code:
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(1.0,0.0,0.0);
glVertex2f(x1+60,y1-30);
glColor3f(0,0.0,0.0);
glVertex2f(x1,y1-30);
glEnd();
while(i<3) {
glBegin(GL_QUADS); //BOGIES
glColor3f(1.0,0.0,0.0); //For right train a=795,b=510
glVertex2f(a,b);
glColor3f(1.0,0.0,0.0);
glVertex2f(a+60,b);
glColor3f(1.0,0.0,0.0);
glVertex2f(a+60,b-20);
glColor3f(1.0,0.0,0.0);
glVertex2f(a,b-20);
glEnd();
a+=65; i++;
}
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: source code moving train in computer grapics, open gl code for moving train, train resurvation onlin system synopsis, opengl source code for moving train, opengl code for moving rings, opengl codes for moving cloud, opengl project with synopsis,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
Smile circuit diagram for involuntary train collision prevention system 2 817 09-07-2016, 01:14 PM
Last Post: dhanabhagya
  involuntary train collision prevention system pdf with circuit 1 694 16-06-2016, 11:16 AM
Last Post: dhanabhagya
  download ppt on six leg kinematic moving machine 1 549 16-06-2016, 11:02 AM
Last Post: dhanabhagya
  gps based train bus station indication system with display on lcd pdf 1 963 26-05-2016, 01:06 PM
Last Post: dhanabhagya
  vtu phd synopsis format 2015 1 765 26-05-2016, 12:47 PM
Last Post: dhanabhagya
  opengl code for flying butterfly 1 747 19-05-2016, 02:52 PM
Last Post: dhanabhagya
  synopsis on electromagnetic engine pdf 1 706 17-05-2016, 12:03 PM
Last Post: dhanabhagya
  tower of hanoi code in opengl 1 778 12-05-2016, 09:15 AM
Last Post: seminar report asees
  coding for moving k-means clustering in matlab 1 534 10-05-2016, 11:25 AM
Last Post: dhanabhagya
Thumbs Up opengl code for moving man 1 812 10-05-2016, 10:44 AM
Last Post: dhanabhagya

Forum Jump: