Skip to main content
gamedev.net
🔒 Locked

face question

Started by nareshn2003 3 replies 550+ views
Original Post
nareshn2003
nareshn2003
Hi I am using directx9 But i have some problem of face . I really don't know how to handle this problem. I am showing some Ascii Work for my problem Take a figure-1 look this one cube that loading from .x file But i don't Why it's render face 1,4 . I had seen some programe like deep exploration that not rendering this faces.Basically i am showing solid+outline object.I had checked in also directx7 retain mode sample has also not rendering 1,4 face. So why directx9 rendering this face.

 1-----2    
 | \   |
 |  \  |
 |   \ |
 3-----4
 figure-1
In deep exploration or Directx7 retain mode sample rendering like this in same file figure-2

 1------2
 |      |
 |      |
 |      |
 3------4
 figure-2
My faces structure like this 3:1,2,3,4, so it is has more than 3 faces in one line of .x file. So any good suggestion and help require :) thanx
Pipo DeClown
Pipo DeClown
With D3DRS_CULLMODE, you can remove faces that have clockwise or counterclockwise vertices. In other words, faces that are facing the other way.
nareshn2003
nareshn2003
Hi
thanx for reply.
But i had already done it . But i don't want to render 1,4 .
I found something on web about quardarangle,5 sided polygone so what is it ?

thanx
Pipo DeClown
Pipo DeClown
Direct3D can only handle polygons of 3 vertices, so only triangles.
nareshn2003
nareshn2003
Hi
But In my .x file Directx7 Retain mode "Viewer " Sample working fine like deep exploration But directx9 not working as i need .
Btw. Deep exploration also using directx9 render .

Directx9 Rendering Unused and Hided faces in my case :(
What u think about ?



thanx

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.