Coffee-Problem: Export Polygon-Object with Texture-Coordinates

Coffee-Problem: Export Polygon-Object with Texture-Coordinates

Post by Florian Li » Wed, 30 Jul 2003 04:05:14


"Hallo Welt\n",
how can i get access to the texture-coordinates of a polygon?
I would like to write an export-plugin which creates something like:

vertexlist:
v 0, x, y, z
v 1, x, y, z
v 2, x, y, z
.
.
.

facelist:
f 0, v1, v2, v3, u, v
f 1, v1, v2, v3, u, v
f 2, v1, v2, v3, u, v
.
.
.

It's just simple to get the polygons and the vertices...but the texCoord?
var faces = op->GetPolygons();
var vertices = op->GetPoints();


Please help me by this stupid simple problem...

Tnx,
Florian
 
 
 

1. Seperating vertex coordinates and texture coordinates into seperate buffer objects ?

2. Problem to construct a Texture object from Bitmap object.

I would like to construct a Texture object from a Bitmap object. I used
the following statement:

Texture torusTexture = new Texture(dev, torusBitmap, 0, Pool.Default);

This line always causes the following error message:

An unhandled exception of type
'Microsoft.DirectX.Direct3D.InvalidCallException' occurred in
microsoft.directx.direct3d.dll

Additional information: Error in the application.



I have played with many variations with regards to the third and forth
parameter
for the Texture constructor, but without luck. My bitmap is of the size
500x600
of the pixel format PixelFormat.Format32bppPArgb.
The device object seems to be initialized properly as I can construct
a Texture object from a bitmap file (using TextureLoader class).

Does anyone has an example to construct a texture object from existing
Bitmap object?

Thanks in advance,

James X. Li

3. LW 8.2 UV textured object export to Vue 4 Pro?

4. GL 1.0 style texturing: without texture objects

5. Objects coordinates don't match stage coordinate system

6. exporting SAS/Graph maps for other softwa problems with orientation of polygons?

7. Newbie Q: glDrawPixels vs texture-mapping onto polygon

8. How can I generate Polygon coordinates from image

9. How to get the intersection point coordinate between polygon and segment

10. Transforming polygon coordinates?

11. Radeon 9200 and halo: missing/flickering textures or polygons.

12. polygon normals and spherical co-ordinate systems

13. textured polygon & palette rotation

14. Polygon Texture Mapping - Newbie Alert!

15. One texture to a polygon - with perl code