Jump to content
  • Advertisement

Archived

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

kingpinzs

How do you make a room

This topic is 5525 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I can make a cube and a triangle but how do you make a room or 2 rooms contected by a hole in one of the rooms

Share this post


Link to post
Share on other sites
Advertisement
a room=a cube+ texture=skybox

But you must change the position of camera into cube

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
id say the easiest way is make it in a 3d modelling program such as 3d studio max or maya.

learn how to load and draw the 3d model

Share this post


Link to post
Share on other sites
The easiest way:
1) create a bigger cube than before.
2) add the texture coordinate .
3) change the camera position into the cube.
4) change CULLMODE by use code:
SetRenderState(D3DRS_CULLMODE,D3DCULL_CW)[/CODE]
5) render it.

PS:
D3DCULL_NONE
Do not cull back faces.
D3DCULL_CW
Cull back faces with clockwise vertices.
D3DCULL_CCW
Cull back faces with counterclockwise vertices.

GOOD LUCK

Share this post


Link to post
Share on other sites
The easiest way:
1) create a bigger cube than before.
2) add the texture coordinate .
3) change the camera position into the cube.
4) change CULLMODE by use code:
    
SetRenderState(D3DRS_CULLMODE,D3DCULL_CW)

5) render it.


PS:

D3DCULL_NONE
Do not cull back faces.
D3DCULL_CW
Cull back faces with clockwise vertices.
D3DCULL_CCW
Cull back faces with counterclockwise vertices.


GOOD LUCK



[edited by - F_O_X on June 5, 2003 2:19:36 AM]

Share this post


Link to post
Share on other sites
FOX, this is the second answer of you that amazes me.

Original poster, look into some 3d file format. Or perhaps some map format. What does culling have to do with anything?

www.gametutorials.com has some nice 3ds, ase, obj loading tutorials, they should be convertable to D3D.

Share this post


Link to post
Share on other sites
I think he means that by reversing the culling order, you can effectively ''flip'' the faces of the cube to face inwards. This is not a very good way, especially because all of the texture co-ordinates will be backwards.

I agree, some model format seems like the way to go.

Share this post


Link to post
Share on other sites
To aker_jus:
FAINT,Why not create SKYBOX by use VB?!

This is easier way than load mesh.And its basic theory of skybox.

"D3DCULL_CCW" also can work,only to RE-DEFINE the vertex.

Why I use "D3DCULL_CW" is in order to let Kingpinzs know what different between SKYBOX and CUBE.

[edited by - F_O_X on June 5, 2003 8:32:34 AM]

[edited by - F_O_X on June 5, 2003 8:34:12 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!