Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Simple Vertex Paint

Author
Message
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th Feb 2021 15:49 Edited at: 17th Feb 2021 16:41
Nothing too fancy here, just a way to quickly change the vertex diffuse color. (Decent example for novices.)

-Trouble with limbs? Try using MAKE OBJECT FROM LIMB
-Trouble with .X files? Try using LOAD MESH instead of LOAD OBJECT
-Use center mouse wheel to rotate and zoom
-Color palette attached

Send your parents to noisy sprite demo hell... enter the D-Zone

Attachments

Login to view attachments
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th Feb 2021 16:34 Edited at: 17th Feb 2021 16:35
I should add, this code includes a routine that groups the vertices by their locations. If you paint the corner of a cube, for example, you'll notice all 3 corresponding faces of the corner receive some "paint."

If you wanted to paint individual verts, whole triangles, or whole faces it would require a different grouping routine.
Send your parents to noisy sprite demo hell... enter the D-Zone

Login to post a reply

Server time is: 2024-11-17 22:43:15
Your offset time is: 2024-11-17 22:43:15