Jump to content
  • Advertisement

Archived

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

Woody FX

Simple Cube(room)

This topic is 5602 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

Hi just need a little help to set things clear. Have wrote an isometric game and really enjoyed it and all! Now i am learning Direct3D as i would like to try something in that in the future! I have read a few of the articles on the site and Jims Book! But would like your help to clear up a few things! If i were to just Draw a simple(very) un-animated cube(Room). What does it take.. Would i need to use an x-file or can you just provide the 8 cordinates needed!(for each vertices). Seems way to simple as i imagine you need to specify how the walls appear! I am not worried about anything fancy suck as lighting only drawing a room with walls floor all the same colour.. i.e. a box from the inside! Thanks (PS c++ is my Language of choice )

Share this post


Link to post
Share on other sites
Advertisement
you can use an x file if you like or you can just manually create the mesh using giving the coordinates (giving them in the correct order of course to make sure the faces appear on the inside).

Look at any basic direct3d tutorial and it''ll probably involve a rotating cube. Look how the cube was defined. This should give you a push in the right direction!

B

Share this post


Link to post
Share on other sites
Take a look at the "Lighting" sample in the SDK! - that shows umm "half a room", i.e. 3 walls, and that provides just the simple coordinates (I think they add some more polygons/vertices to make the lighting look less blocky, but the principle is the same for 8 or 800 vertices...).

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
Are there tutorials on this site could not find any??

If you know of some relative simple tutorials please recommend them!

Thanks for the responce :-D

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://www.andypike.com/tutorials/directx8/

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!