Transparency in XNA-4 primitives
Posted
by
Shashwat
on Game Development
See other posts from Game Development
or by Shashwat
Published on 2014-05-31T11:12:15Z
Indexed on
2014/05/31
16:06 UTC
Read the original article
Hit count: 370
I'm using XNA 4 with Visual Studio 2010. I'm trying to create a simple 3D world with walls and doors in which the user to free to roam around.
A wall is just a rectangle which is currently being rendered with four vertices using triangle strips. But to create a door, I'd have to split it into three rectangles as shown in the figure.
Four quadrilaterals if I want to have the following door-style
It will become more complex to have multiple doors on the same wall or if I have windows.
Is there any shorter way to handle this? I am looking for something that will just make the wall transparent wherever I want.
I found a solution but facing a problem here
© Game Development or respective owner