opengl functions in matlab

3 ビュー (過去 30 日間)
Itzik Ben Shabat
Itzik Ben Shabat 2013 年 7 月 28 日
Hi, I am TAing a course in computer graphics and currently we are using opengl with c to implement the subject principles. we are considering to change the course and have the students implement the principles in matlab, is there an interface\function library\ routines that can accomodate for this need? course subjects: - transformations (translation,rotation,scaling etc) - projections - lighting models - raster -color and zbuffer -quadtree and octree -csg trees Thanks

回答 (3 件)

Daniel Shub
Daniel Shub 2013 年 7 月 29 日
You can do this with either psychtoolbox or mgl.

Shashank Prasanna
Shashank Prasanna 2013 年 7 月 28 日
To a large degree most of these can be done using handle graphics. Take a look at the documentation below:
For example transformations are here:
MATLAB in its current release offers 3 different renderers: OpenGL, zbuffers and painters. You may only interact with them using MATLAB graphics objects specified above.

Jan
Jan 2013 年 7 月 28 日
The OpenGL methods you describe are low level routines. Matlab does not allow to access such fundamental graphics methods, but you can create a surface with a certain shading method and define the camera position and view angle. The OpenGL primitives are performed internally then.
Matlab has a C-interface, such that you can use the existing OpenGL code directly.

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by