Subject: Vertex Colours 2004-02-23 - By Geordie Moffatt
Back Hi all,
I have seen many posts/requests about vertex colours in Dir3D, whats the deal? ??
I pretty much thought that Dir3D couldn't display vertex colour data at all until I came across the definition for newMesh:
member(whichCastmember).newMesh(name, numFaces, numVertices, numNormals, numColors, numTextureCoordinates)
Where numColors: numColors is the optional total number of colors used by all the faces. A color may be shared by more than one face. You can specify a color for each corner of each face. Specify colors for smooth color gradation effects. Enter 0 or omit this argument to get default white color per face corner.
Has anyone used vertex colours in Dir to display radiosity solutions etc?? Is the problem with using vertex colours that the W3D exporter does not export the colours?
Tnk,
GM <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1226" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi all,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I have seen many posts/requests about vertex colours in Dir3D, whats the deal???</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I pretty much thought that Dir3D couldn't display vertex colour data at all until I came across the definition for newMesh:</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>member(whichCastmember).newMesh(name, numFaces, numVertices, numNormals, numColors, numTextureCoordinates)</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Where numColors:</FONT></DIV> <DIV><FONT face=Arial size=2>numColors is the optional total number of colors used by all the faces. A color may be shared<BR>by more than one face. You can specify a color for each corner of each face. Specify colors for<BR>smooth color gradation effects. Enter 0 or omit this argument to get default white color per<BR>face corner.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Has anyone used vertex colours in Dir to display radiosity solutions etc?? Is the problem with using vertex colours that the W3D exporter does not export the colours?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Tnk,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>GM</FONT></DIV></BODY></HTML>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|