From: Ari H. <ahe...@an...> - 2001-07-22 18:45:21
|
On Sun, Jul 22, 2001 at 02:08:36PM -0400, David Scherer wrote: > > i haven't thought seriously about the kind of interfaces that > > would be nice for texturing the existing primitives, and i > > want to get peoples' input. i always assumed that there isn't > > a good consistent interface, and that some primitives (faces, > > box) will want to take a list of texture coordinates, while > > things like sphere have only one reasonable texturing scheme > > (especially because sphere may change detail levels). > > I can see a few basic approaches: > > (1) Think in terms of "skins": pick a texture coordinate mapping for > each built-in object, and draw a "template" texture with lines showing > where the faces (or whatever) fall in the texture. People edit the > texture to their satisfaction and then use it. > ok. that's easy enough. probably the most useful thing for cones and arrows, and boxes (and hexahedrons ...i didn't even know we had a hexahedron primitive). heh, this reminds me of using Alice in the bad old days, you used to have to manually unmap every face of your 3DS model, and lay it out into the texture. The result was exactly the kind of "template" you're talking about ;) > (2) Think in terms of projection: you can take *any* object and apply a > texture projectively using a mapping mode such as planar, cubic, > cylindrical, etc. This might be more useful for "scientific" > applications where textures are being built procedurally. > right. this is probably the only way to specify textures meaningfully for spheres. > (3) Texture coordinates. These are only usable in cases where the > vertices of the object are accessible to the programmer! The only > cvisual primitives that meet this test are faces, convex, and hexahedron > (and curve, in one dimension). > <nod> Ari i'm so deranged at this pint thati'm downloading Python 2.1 and the latest VPYthon snapshots on a 28.8 dialup to play with the faces primitive. i wonder if htey have drugs for this now. [apologies for bad typing caused by sharing connection with download] |