Другие языки программирования и технологии

3d объект на каком либо языке программирования

подскажите на каком языке программирования можно нарисовать 3d объект. нужен именно язык программирования, не программа типа 3DMax. Если к кого нибудь есть уже готовый объект и исходник не нему скиньте плиз на почту. ОЧЕНЬ НАДО!!! ЗАРАНЕЕ СПАСИБО ОГРОМНОЕ!!!
На PureBasic можно.
ДС
Давид Степанян
31 824
Лучший ответ
Евгений Григорьев мне надо для курсовой... 3d объект и исходник....у тебя нет случайно?
Да на любом практически, была бы графика. Там в основном математика, рисуется-то все как обычно.
Если хочешь что-то попроще и чтобы самой ничего не считать, используй, допустим, Delphi+GLScene.
Виталя Савин
Виталя Савин
55 680
Евгений Григорьев мне надо для курсовой... 3d объект и исходник....
int DrawGLScene(GLvoid) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);// Clear The Screen And The Depth Buffer glLoadIdentity();// Reset The View glTranslatef(-1.5f,0.0f,-6.0f);// Move Left And Into The Screen glRotatef(rtri,0.0f,1.0f,0.0f);// Rotate The Pyramid On It's Y Axis glBegin(GL_TRIANGLES);// Start Drawing The Pyramid glColor3f(1.0f,0.0f,0.0f);// Red glVertex3f( 0.0f, 1.0f, 0.0f);// Top Of Triangle (Front) glColor3f(0.0f,1.0f,0.0f);// Green glVertex3f(-1.0f,-1.0f, 1.0f);// Left Of Triangle (Front) glColor3f(0.0f,0.0f,1.0f);// Blue glVertex3f( 1.0f,-1.0f, 1.0f);// Right Of Triangle (Front) glColor3f(1.0f,0.0f,0.0f);// Red glVertex3f( 0.0f, 1.0f, 0.0f);// Top Of Triangle (Right) glColor3f(0.0f,0.0f,1.0f);// Blue glVertex3f( 1.0f,-1.0f, 1.0f);// Left Of Triangle (Right) glColor3f(0.0f,1.0f,0.0f);// Green glVertex3f( 1.0f,-1.0f, -1.0f);// Right Of Triangle (Right) glColor3f(1.0f,0.0f,0.0f);// Red glVertex3f( 0.0f, 1.0f, 0.0f);// Top Of Triangle (Back) glColor3f(0.0f,1.0f,0.0f);// Green glVertex3f( 1.0f,-1.0f, -1.0f);// Left Of Triangle (Back) glColor3f(0.0f,0.0f,1.0f);// Blue glVertex3f(-1.0f,-1.0f, -1.0f);// Right Of Triangle (Back) glColor3f(1.0f,0.0f,0.0f);// Red glVertex3f( 0.0f, 1.0f, 0.0f);// Top Of Triangle (Left) glColor3f(0.0f,0.0f,1.0f);// Blue glVertex3f(-1.0f,-1.0f,-1.0f);// Left Of Triangle (Left) glColor3f(0.0f,1.0f,0.0f);// Green glVertex3f(-1.0f,-1.0f, 1.0f);// Right Of Triangle (Left) glEnd();// Done Drawing The Pyramid Now we'll draw the cube. It's made up of six quads. All of the quads are drawn in a counter clockwise order. Meaning the first point is the top right, the second point is the top left, third point is bottom left, and finally bottom right. When we draw the back face, it may seem as though we are drawing clockwise, but you have to keep in mind that if we were behind the cube looking at the front of it, the left side of the screen is actually the right side of the quad, and the right side of the screen would actually be the left side of the quad. Notice we move the cube a little further into the screen in this lesson. By doing this, the size of the cube appears closer to the size of the pyramid. If you were to move it only 6 units into the screen, the cube would appear much larger than the pyramid, and parts of it might get cut off by the sides of the screen. You can play around with this setting, and see how moving the cube further into the screen makes it appear smaller, and moving it closer makes it appear larger. The reason this happens is perspective. Objects in the distance should appear smaller :) glLoadIdentity(); glTranslatef(1.5f,0.0f,-7.0f);// Move Right And Into The Screen glRotatef(rquad,1.0f,1.0f,1.0f);// Rotate The Cube On X, Y & Z glBegin(GL_QUADS);// Start Drawing The Cube We'll start off by drawing the top of the cube. We move up one unit from the center of the cube. Notice that the Y axis is always one. We then draw a quad on the Z plane. Meaning into the screen. We start off by drawing the top right point of the top of the cube. The top right point would be one unit right, and one unit into the screen. The second point would be one unit to the left, and unit into the screen. Now we have to draw the bottom of the quad towards the viewer. so to do this, instead of going into the screen, we move one unit towards the screen. Make sense? glColor3f(0.0f,1.0f,0.0f);// Set The Color To Green glVertex3f( 1.0f, 1.0f,-1.0f);// Top Right Of The Quad (Top) glVertex3f(-1.0f, 1.0f,-1.0f);// Top Left Of The Quad (Top) glVertex3f(-1.0f, 1.0f, 1.0f);glVertex3f( 1.0f, 1.0f, 1.0f);
Алексей Мокрых
Алексей Мокрых
30 070
Visual Studio C# WPF

можно рисовать своё, можно использовать файлы макса
проекцию 3д объекта можно и в паскале забахать.
скоро скину.
55 страница в method1.pdf пример есть.
почитай, может поможет.
Jason .............
Jason .............
3 164
Евгений Григорьев мне надо для курсовой... 3d объект и исходник....
Jason ............. блин, я полный нуб ) как твой емеил узнать?
скажи свой емеил )