|
-
Nov 27th, 2004, 01:41 AM
#1
Thread Starter
PowerPoster
An entrance to a building
So I got a building structure worked out.
Loading from data files, very manuverable as in I can have as many buildings as I want, add em at run time, have easy interiors...it works.
I am running into problems picturing how to put a door or an entrance into my building.
I figure, draw a draw as a cube in the building and render it transparent...so it overlaps the building and covers it up for that one spot.
That is obviously not how the profs. do it.
How would I get a door into a square wall.
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
-
Nov 27th, 2004, 06:52 AM
#2
Ex-Super Mod'rater
When it comes to buildings like in Delta force games you can tell the cube is not just 24 verts but infact its the whole outside shell. So in the one mesh it has the outside wall & inside wall so a door way is very simple, you just don't draw it and you use that point to go inside the building so you can do the inside walls. The buildings actually go even further than that because they will also have all the interior walls & ceilings included in that one mesh. Problem with this is every building that appears the same outside is identicle instead....you could make more than one mesh with the same outside and different interior though .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Nov 27th, 2004, 11:28 AM
#3
Thread Starter
PowerPoster
Hmm...Thats pretty much exactly what I'm doing.
I got interior working, you can walk around inside, see walls, cieling.
Of course I have no door though.
Now each face of the exterior and interior is just a 4 point square.
So, the face I want to the door into I should maybe draw more than a 4 point square?
Code:
|------|-----|------|
|------|-----|------|
|------|_____|------|
|______| D |______|
D=Door
So one wall would now split up into 3 squares?
1 on the left, one on the right, and one above the door?
Then leave the door blank?
Or is there a way to do it on 4 points???
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
-
Nov 27th, 2004, 01:19 PM
#4
Not sure about what you mean....but (point = vertex) then you could use alpha blending or a mask, and plce it where the door is.
But why are you trying to make it in just 4 vertices. It won't slow you too much down to use three quads. Guess all other ways do do it would be slower, or huglyer.....
-
Nov 27th, 2004, 02:16 PM
#5
Thread Starter
PowerPoster
With the alphablending...Do you mean blend the spot I want the door into transparent? So I essentially just blank out the spot I want the door, then I place the door object in place?
Can that be done with Alpha Blending in 3D?
What do you mean by quads? Do you mean the 3 different squares? If so then I think that will be the method I choose, I am not looking for the most top-of-the-line advanced way to put a door in...Just something I can use....And use I can for I have worked it out mostly in head, now I just need to program.
And yes, point=vertex.
I had a 3D Game Programming From The Guru's book which touched these topics, but I had to return it to the library and the guy who took it out after me will not return it...He is playing the thieve's game, damnit.
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|