  | | | Subject: Vertex Colours | Subject: Vertex Colours 2004-02-23 - By Geordie Moffatt
Back Assing = Assign ;) -- -- Original Message -- -- From: Geordie Moffatt To: dir3d-l@(protected) Sent: Tuesday, February 24, 2004 11:16 AM Subject: Re: [Dir3d-l] Vertex Colours
The game engine I work with at my day job uses vertex colours for all lighting. We calculate the radiosity solution in Max, bake this into the vertex colour chanel using the "Assing Vertex Colors" util, export, and everything works fine. Mind you, this works fine on PS2 and X-Box, but I can't see why a similar system can't be used for Director.
-- -- Original Message -- -- From: Thomas Williams To: dir3d-l@(protected) Sent: Tuesday, February 24, 2004 11:00 AM Subject: RE: [Dir3d-l] Vertex Colours
dunno anout radiousity (i'd like to see THAT done with vertex colors!) but Noisecrime did an excellent demo with vertexColors http://www.noisecrime.com/develop/techdemo/d85/lightmapping/vertexlighting5 .htm
i haven't tried, but I suspect that max will export vertex colors (it makes them np).
one caveat, you loose the blend in your texture once you set your colorList to anything other than []. colorList = numColors.count. It's a set colors made available as vertexColors to the MR.
< Thomas Williams > [ www.biomorphica.com ]
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
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
<!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>Assing = Assign ;)</FONT></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=geordiemoffatt@(protected) href="mailto:geordiemoffatt@(protected)">Geordie Moffatt</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=dir3d-l@(protected) href="mailto:dir3d-l@(protected)">dir3d-l@(protected)< /A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 24, 2004 11:16 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Dir3d-l] Vertex Colours</DIV> <DIV><BR></DIV> <DIV><FONT face=Arial size=2>The game engine I work with at my day job uses vertex colours for all lighting. We calculate the radiosity solution in Max, bake this into the vertex colour chanel using the "Assing Vertex Colors" util, export, and everything works fine. Mind you, this works fine on PS2 and X-Box, but I can't see why a similar system can't be used for Director.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV>-- -- Original Message -- -- </DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:< /B> <A title=t@(protected) href="mailto:t@(protected)">Thomas Williams</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=dir3d-l@(protected) href="mailto:dir3d-l@(protected)">dir3d-l@(protected) </A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 24, 2004 11:00 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Dir3d-l] Vertex Colours</DIV> <DIV><BR></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004>dunno anout radiousity (i'd like to see THAT done with vertex colors!) but Noisecrime did an excellent demo with vertexColors</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004> <A href="http://www.noisecrime.com/develop/techdemo/d85/lightmapping /vertexlighting5.htm">http://www.noisecrime.com/develop/techdemo/d85 /lightmapping/vertexlighting5.htm</A></SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004>i haven't tried, but I suspect that max will export vertex colors (it makes them np).</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004>one caveat, you loose the blend in your texture once you set your colorList to anything other than [].</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004>colorList = numColors.count. It's</SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004> a set colors made available as vertexColors to the MR.</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=421155300-24022004></SPAN></FONT> </DIV> <DIV> <P><FONT size=2>< Thomas Williams ><BR>[ www.biomorphica.com ] </FONT></P></DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2><BR></FONT> </DIV> <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 <P><FONT size=2></FONT> </P></FONT></DIV></BLOCKQUOTE> <P> <HR>
<P></P>__ ____ ____ ____ ____ ____ ____ ____ ____ ____<BR>Dir3d-l mailing list<BR>Dir3d-l@(protected)<BR>http://nuttybar.drama.uga.edu /mailman/listinfo/dir3d-l<BR></BLOCKQUOTE> <P> <HR>
<P></P>__ ____ ____ ____ ____ ____ ____ ____ ____ ____<BR>Dir3d-l mailing list<BR>Dir3d-l@(protected)<BR>http://nuttybar.drama.uga.edu /mailman/listinfo/dir3d-l<BR></BLOCKQUOTE></BODY></HTML>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|
 |