Archived

This topic is now archived and is closed to further replies.

Shadow1234567890

How to create stipple patterns?

Recommended Posts

This is from the ogl game programming book: GLubyte mask[] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7, 0xFF, 0xF0, 0x0, 0x1F, 0xE0, 0x1E, 0x0, 0x7E, 0x20, 0x01, 0x0, 0x7F, 0x39, 0xAB, 0x6F, 0xFC, 0xA6, 0xAB, 0x6F, 0xF8, 0x66, 0x6E, 0xEC, 0xF8, 0x6A, 0x2A, 0x6C, 0xFC, 0x80, 0x02, 0x2C, 0x7F, 0x0, 0x1, 0xC8, 0x7F, 0x0, 0x1, 0xC8, 0x1F, 0xC0, 0x0C, 0x0, 0x07, 0xFF, 0xF0, 0x0, 0x03, 0xFF, 0xE0, 0x0, 0x0, 0x1C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }; That is the stipple pattern for a 3d polygon. Exactly how is a human supposed to create this?

Share this post


Link to post
Share on other sites