Misha Koshelev | 25 Jul 2010 00:32
Picon

very basic question - tessellation and fewer vertices than I started

Dear All:

My apologies first of all if my post is too simple for this list.

I am working on the Wine project, specifically on implementing D3DX9.

I have done some work for this bug:
http://bugs.winehq.org/show_bug.cgi?id=22918

implementing D3DXCreateSphere, D3DXCreateCylinder, and D3DXCreateBox.
These can be found on my github site:

http://github.com/misha680/wine

Mainly as a motivation to learn more DirectX 9/OpenGL, but also
hopefully to get it into Wine, I have been doing some work on trying to
reproduct D3DXCreateTeapot (exact vertices and indices) using Newell's
original data:
http://www.sjbaker.org/teapot/teaset.tgz

My current approach mostly lies in figuring out the ordering difference
between the two versions (MS and Newell).

I have succeeded in using ID3DXPatchMesh to tesselate the Newell teapot.
Further, I can rotate and scale the MS teapot to match the Newell (I
have attached tester.cpp - the actual program come, compile -
compilation script for Ubuntu 10.04 using mingw32 4.2.1dfsg-1ubuntu2,
teapot.newell - Newell's original data, and test.bat - program to run
the test).

(Continue reading)


Gmane