June 14, 2024, 02:07:18 AM


IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Started by ZeroDog, August 28, 2009, 04:04:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


CBasic has:

What would be the the EBasic  equivalent?  Do I have to use the SetMaterial method, or is there another way?


August 30, 2009, 01:53:44 PM #1 Last Edit: August 30, 2009, 01:56:46 PM by RG
If you build the mesh, you can set vertex colors as you build it: #<VERTEX1TEXTURE>pVB[index+i].diffuseColor = RGBA(255,255,255,1) and use sphere.UseVertexColor(TRUE). (I think this is right).

Vasemaker uses the material approach http://www.ionicwind.com/forums/index.php/topic,2000.0.html



Im using the primitives already in the object (createSphere) so I guess I could either calculate how many vertex's are in the mesh and apply a color to each vertex, or use the setmaterial method... the setmaterial method seems like it would be easier, and more portable.  Thanks  8)