Rank: 2390 based on 20 downloads (last 30 days) and 2 files submitted
photo

Tianli Yu

E-mail
Company/University
Like.com

Personal Profile:
Professional Interests:
Computer Vision and Graphics

 

Watch this Author's files

 

Files Posted by Tianli View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Dec 2010 Screenshot Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu triangular mesh, off screen, camera, rendering 17 13
  • 3.0
3.0 | 2 ratings
02 Aug 2005 Screenshot Triangulate vertices on a sphere Triangulate a set of vertices on a sphere Author: Tianli Yu approximation, interpolation, sphere, triangulation, delaunay, mathematics 3 1
Comments and Ratings by Tianli View all
Updated File Comments Rating
11 Aug 2011 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu

Re: Cihan Ula
If you are using 64 bit version of matlab, you will need 64 bit version of glut and glew, glut32 and GLEW32 won't work in this case.

03 Feb 2010 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu

I cannot reproduce the crash on leopard, and I don't have a snow leopard to test with. Judging from the error message, you could try add a dummy display callback, by calling

void glutDisplayFunc(void (*func)(void));

after glutCreateWindow in OffscreenGL's constructor.

see glut's spec for more details
http://www.opengl.org/resources/libraries/glut/spec3/node46.html#SECTION00081000000000000000

04 Jan 2010 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu

The spaces in your GlewPath & GlutPath are causing the issue. Try to use "C:\DOCUME~1" in the path.

20 Aug 2009 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu

The package are tested in mac, but it should also work in windows once you set the correct include and lib path. Unfortunately I don't have Windows version of matlab at hand to test it out.

For windows, you will need to download the GLUT and GLEW binaries:
GLUT: http://www.xmission.com/~nate/glut.html
GLEW: http://glew.sourceforge.net/

Extract both zip files, GLEW will extract to a set of bin/, include/, doc/, lib/ folders. You could copy glut.h into glew/include/GL, glut32.lib into glew/lib/, so that they share the same path. And copy glew32.dll and glut32.dll into the offscreen root folder.

Then you could use modify the path in CompileOffscreen.m to something like this:

GlewPath = '-I./glew/include -L./glew/lib -lGLEW';
GlutPath = '-lglut';

You should be able to compile it now. Let me know if you have further problems.

Comments and Ratings on Tianli's Files View all
Updated File Comment by Comments Rating
19 Oct 2011 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu Heym, Jason

I can compile and run the MEX functions. However, the offscreen window is not dismissed. When I click to close the window, Matlab crashes hard.

My setup:

Windows 7 x64
ATI FirePro V8800
Matlab R2011b (x64)
Visual Studio 2010 express
Microsoft Windows SDK 7.1
Freeglut 2.6.0 (compiled to x64 library)
GLEW 1.7.0 (static / -DGLEW_STATIC)

Anyone with a similar configuration?

I used Freeglut because it seemed more recent and had a visual C project file compatible with VC Express 2010.

11 Aug 2011 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu Yu, Tianli

Re: Cihan Ula
If you are using 64 bit version of matlab, you will need 64 bit version of glut and glew, glut32 and GLEW32 won't work in this case.

10 Aug 2011 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu Ula?, Cihan

It seems it does not work in x64 Win7.
For x86, I used the following conf. and it worked propoerly.
1. Download glut and glew and extract them under C:\ path. They should be located as C:\glew and C:\glut.
2.Use the following paths which are found in CompileOffscreen file, which is located in offscreen folder.

GlewPath = '-IC:/glew/include -LC:/glew/lib -lGLEW32';
-LC:/glew/lib -lglut32';
GlutPath = '-IC:/glut -LC:/glut -lglut32';

16 Jul 2011 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu Hödlmoser, Michael
31 Dec 2010 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu Diederick

People interested in Using OpenGL from MATLAB should have a look at the PsychToolBox (PTB), a library with extensive abilities that is used predominantly by vision researchers to program up their stimuli in MATLAB and display them through OpenGL. It includes MoGL, a Matlab wrapper around just about all OpenGL functionality, although PTB it also contains higher level functions, e.g. for easy drawing of dots, or procedural creation of Gabor patches.

Top Tags Applied by Tianli
approximation, camera, delaunay, interpolation, mathematics
Files Tagged by Tianli View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Dec 2010 Screenshot Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu triangular mesh, off screen, camera, rendering 17 13
  • 3.0
3.0 | 2 ratings
02 Aug 2005 Screenshot Triangulate vertices on a sphere Triangulate a set of vertices on a sphere Author: Tianli Yu approximation, interpolation, sphere, triangulation, delaunay, mathematics 3 1

Contact us at files@mathworks.com