Đã Đóng

interactive drawing and 2D transformation

part 1:

Specifically, you will develop an OpenGL program that allow a user to draw a circle in a position of the OpenGL window by clicking the left button of a mouse. Furthermore, your program should allow the user to draw multiple circles. When the user is done with drawing, he/she can terminate the program by entering the ’q’ or ’Q’.

Your code will need to maintain a data structure to record the position of each left-click of mouse. For simplicity, you can use a 2-dimensional array, and assume that the maximum number of left-click is 100. Each time, when there is a GLUT LEFT BUTTON event, your code should insert the current mouse position to the 2-dimensional array.

There are two different coordinate systems in this simple drawing. The mouse position is under the matrix coordinate system, and a vertex for drawing OpenGL geometry primitive is under the geome- try coordinate system. So your code should transform the mouse position from matrix coordinate to geometry coordinate. For simplicity, you can assume the height of the window is fixed.

part 2:

You will develop an OpenGL program that allow a user to perform 2D affine transformation, including translation, scaling, rotation, on a 2D object (e.g., a solid square), by selecting an transformation item from the popup menu. In this project, you can have two-layer menu as follows:

• Translation

– Horizontal increment

– Horizontal decrement

– Vertical increment

– Vertical decrement

• Scaling

– Horizontal enlarging

– Horizontal shrinking

– Vertical enlarging

– Vertical shrinking

• Rotation

– Clockwise

– Counter-clockwise

Your code will need to maintain several geometry parameters of an object, including horizontal and vertical translation, orientation, and scaling factors. You code should include a function (called menu), in which you should update the geometry parameters of the object.

The object should be “complicated”, i.e., a composition of at least 2 OpenGL geometry primitives. The following parameters should be used for an individual 2D transformation:

• 10 pixels for horizontal increment/decrement

• 2 for horizontal enlarging, and 0.5 for horizontal shrinking

• 20◦ for a rotation.

Kĩ năng: Lập trình C, Lập trình C++, Linux, OpenGL

Xem nhiều hơn: interactive drawing php, interactive drawing site, interactive drawing websites, how to make objects move in processing, rotate processing, 2d transformation examples, pushmatrix processing, solved examples of 2d transformation in computer graphics, processing rotate 3d, processing rotate around center, 2d transformation program in computer graphics using c++, good interactive drawing sites, interactive drawing interface, 2d 3d scatter plots project, 2d art asset outsourcing project, 2d classical animation fliencing project, 2d classical animation freelancing project, 2d fash animation freelance project outsourcing companies, accounting project in net, college management system project in net

Về Bên Thuê:
( 3 nhận xét ) COLUMBUS, United States

ID dự án: #18830522

9 freelancer đang chào giá trung bình $71 cho công việc này

freelancerLatino

Hello, I am an expert with opengl, c, c++ .... please, let me know the deadline. Should I use C or C++ ? Best regards!

$100 USD trong 3 ngày
(133 Nhận xét)
7.4
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Thêm

$100 USD trong 3 ngày
(141 Nhận xét)
7.0
xzan88

Hi, I have many years of experience in C++ and OpenGL. I know GLUT. I have read the entire description. I can finish this in 1 day. Please message me to get started..

$70 USD trong 1 ngày
(97 Nhận xét)
6.2
donghyukchung

Dear client. I have already developed project suitable for your project. I will show you it. If you interest in my bid, please give me a message. Thanks.

$70 USD trong 3 ngày
(34 Nhận xét)
4.8
qunzhuang323

Hi I have read your project description very carefully so I am confidence to complete your project I have finished many similar C/C++/C# projects successfully. I am an experienced and skillful C/C++/C# developer. Thêm

$25 USD trong 1 ngày
(13 Nhận xét)
4.3
dungforever

Hi I have read your requirement carefully. It's a great chance to introduce my skill. I am a talented software developer with over 11+ years experience. I have full experience in OpenGL, C++. You can save time and Thêm

$25 USD trong 1 ngày
(17 Nhận xét)
4.5
sujanttt

Hello sir, I am bidding for 3 days for this project. I am using glut for the project. Can I use glut for the project? If so then I'm up for it. Thank you.

$80 USD trong 3 ngày
(29 Nhận xét)
4.5
jack5onric

Dear client. I've read your project description carefully and very interested. I can implement your task. I have experiences of developing with c++ and opengl. I am working with c++ and opengl over 5 years. I am c Thêm

$100 USD trong 3 ngày
(7 Nhận xét)
2.9
nmurugappan83

I have experience in openGL application development, for more information please look at my profile.

$66 USD trong 5 ngày
(0 Nhận xét)
0.0