How to make the back of a cube dashed?

How to make the back of a cube dashed?

Hello, I try to make some kind of 3D-geometric software for my open-source-cross-platform project. The problem is how to make the back of a cube (which unseen in real world) keep dashed, even when it was rotated. I try to search in many math books, and try to find by myself, but I can't find the solution yet. With many respect, where can I find some reference in this problem? Thank you very much Best regards,
16 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Chandra,

What do you mean by "keep dashed"? Can you point me to some images of what you are trying to accomplish? What does your application do and how does this requirement fit in?

I'm sorry if my English weren't so good. For simplicity, this is the web containing the picture of my goal http://learn.uci.edu/oo/getOCWPage.php?course=OC0111123&lesson=004&topic=4&page=1 . So, whenever the user try to rotate the cube, the unseen edges of the cube would be kept drawn in dashed line

Thank you

Hi Chandra,
The 3D Rendering Process has two modes: Solid and Wire Frame mode.i think you are talking about wire frame mode.
any 3D Rendering API has a built-in support for the two modes.so i advice you to read your 3D api documentation carefully to get
more information about Wire Frame mode.for DirectX see :

http://msdn.microsoft.com/en-us/library/aa139818.aspx

Chandra,

Your question seems directed more towards DirectX/Direct3D and less towards the ATOM SDK.

Although I do not know much about your particular application, these links may help you:

http://www.toymaker.info/Games/html/direct3d_faq.html

http://alt.pluralsight.com/wiki/default.aspx/Craig.DirectX/MeshCreationTutorial.html

http://www.ozone3d.net/opengl_direct3d_tutorials.php

http://alt.pluralsight.com/wiki/default.aspx/Craig.DirectX/Direct3DTutorialIndex.html

Yes, exactly I want to render in Wire Frame mode. I will try the link you gave to me.

Thank you

Chandra,

Where you able to create the wire-frame successfully?

Yes Brian, but all only the solid line...

Still search-think-trying how to make the front edge and the back edge different. So that's why I try to use dashes rather than solid line for the back edges.

PS:I think there's typo... So I assume you use "Were" word :)

Kind regards

Chandra,

It sounds like you want to add a texture to your wireframe? If so this may get you started:

http://www.gamedev.net/reference/articles/article935.asp

* Scroll down to "Adding Textures to the Equation"

> open-source-cross-platform project

Is DirectX an appropriate solution for a cross-platform project?

I would venture to say no, since DirectX does not run natively on Linux (It will with Wine, but thats a can of worms).

> Is DirectX an appropriate solution for a cross-platform project?

If by cross-platform project you mean Windows/Linux/Mac, the answer is no.
If you mean Windows/Xbox 360, the answer is yes.

Another alternative to consider is OpenGL, which you will find on Windows/Mac and (I believe) Linux.

Thank you all. Although I haven't continue this project (and absent to this forum for months) due to my academic research. But from today I'll start again. Thank you for helping me.

Kind regards

Chandra,

Welcome back, you are just in time. Things are ramping up quick. Have a look at this wonderful but of news:

http://mashable.com/2010/05/31/netbook-app-store/

Thank you Brain for posting link to the wonderful new item.

No problem, ASUS coming on board is great news. The fact that it looks to be later this year is even more exciting. This means a lot for everyone involved, get ready for sales and support :)

Leave a Comment

Please sign in to add a comment. Not a member? Join today