|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Drawing Blobs
The following was copied out of the Microsoft DirectX8 SDK. I was thinking you could somehow turn your points into a primitive then fill it with whatever color or colors you would like. This however would not create a "Blob" but it may give you a few Ideas. Derold PS. If you don't have the direct x SDK please delete this. ---------------------------> 3-D Primitives A 3-D primitive is a collection of vertices that form a single 3-D entity. The simplest primitive is a collection of points in a 3-D coordinate system, which is called a point list. Often, 3-D primitives are polygons. A polygon is a closed 3-D figure delineated by at least three vertices. The simplest polygon is a triangle. Microsoft® Direct3D® uses triangles to compose most of its polygons because all three vertices in a triangle are guaranteed to be coplanar. Rendering nonplanar vertices is inefficient. You can combine triangles to form large, complex polygons and meshes. The following illustration shows a cube. Two triangles form each face of the cube. The entire set of triangles forms one cubic primitive. You can apply textures and materials to the surfaces of primitives to make them appear to be a single solid form. For details, see Materials and Textures. You can also use triangles to create primitives whose surfaces appear to be smooth curves. The following illustration shows how a sphere can be simulated with triangles. After a material is applied, the sphere looks curved when it is rendered. This is especially true if you use Gouraud shading. For details, see Gouraud Shading. Built on Wednesday, October 04, 2000 ----- Original Message ----- From: "Neil" <dreaded.neil@phreaker.net> To: <gameprogrammer@gameprogrammer.com> Sent: Friday, December 01, 2000 8:08 PM Subject: Drawing Blobs > If I have a bunch of arbitrary points, each with a certain colour, and > these points are connected to each other somehow to form an arbitrary > object, is there a fast (accuracy isn't really important) way of drawing an > approximation of the group of points? > > I was thinking of drawing a solid circle around each point with a radius > equal to the distance to the farthest point to which it is connected and > blending any overlapping circles, but I don't really like this idea. Could > someone please point me to a subject area, a web page, or some information > that might give me some ideas? > > -[ Neil-Edelman -- dreaded.neil@phreaker.net -- ICQ UIN: 705130 > -[ http://neil.freeshell.org/ > -[ "Nature makes frequent use of [the infinite] everywhere" -Georg Cantor > > ================================================================= > The GameProgrammer.Com mailing list is for the open discussion > of any topic related to the art, science, and business of > programming games. This list is especially tolerant of beginners. > We were all beginners once > > To SUBSCRIBE or UNSUBSCRIBE please visit: > http://gameprogrammer.com/mailinglist.html
|
|