PDA

View Full Version : cutting out a surface; think drawing windows in a house



Ogla
06-09-2006, 07:55 AM
Hi,

I want to draw a house with, not surprisingly, windows. Now, thinking the house simply as a rectangular prism, how should I cut out the surface for windows?

Thanks!!

k_szczech
06-09-2006, 11:45 AM
Instead of drawing one quad for each wall imagine that you split each wall into 3x3 grid of quads. Now remove the middle quad and you're done.

honeyhuang
06-16-2006, 04:07 AM
I have the same problem, but the window should be opened at random place on the wall, and the window size is random too. how to do?
thanks!

ZbuffeR
06-16-2006, 04:36 AM
dynamically change the way you split the wall into a (irregular) grid.