Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sort of "Backface Culling Rests" problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition
View previous topic :: View next topic  
Author Message
Ravine
DeleD PRO user


Joined: 19 Nov 2007
Posts: 15

PostPosted: Tue Nov 27, 2007 1:56 pm    Post subject: sort of "Backface Culling Rests" problem Reply with quote

Hi people. Quite difficult to find a title to explain my problem in a few words. But i made some screens to explain the problem i'm facing.

Context : i use Deled as CSG to build the environment for the demo i'm programming. Basically, cubic houses (programmer art Rolling Eyes ). I use a lot the boolean operations, like the substract one to hollow the windows. (click for bigger images)



So ok, i got that pretty house, i export it as .X (test purposes) and i load it in the render engine (irrlicht, .NetCP version).

and there is what i have.



Hey dude ! where is my WIP texture ?


So, i was scratching my head, starring at that, when i remember i had to delete some "strange artefacts", results of the sub operation.

Demonstration :


Block within a block (csg cybersex ?) _________// Substract : hooray ! ____________// Huh ? wtf ? Inner faces ?

So basically, i faced that situation with my windows. A substract with "face on face" creates that backfaces faces. Now, i dont have any more "backface face" (deleted them), but it seems that the backface property still there (as the screens tend to show).

So, after all that short intro, here are my questions.

  • Is it a normal that substract creates "inverted faces" when 2 blocks share common faces ?
  • Is there any workaround to correct that behaviour on the final cubic house ?
  • Maybe it's not DeleD "inner face" behaviour which created that problem, but atm, that's the only explanation i have, and it fits to the symptoms. Differential diagnosis people ?


Thanks in advance for reading me, and bigger thanks if you answer.
Back to top
View user's profile Send private message
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Tue Nov 27, 2007 2:31 pm    Post subject: Reply with quote



make sure the cube you use to subtract is bigger so it pops out a littlebit, than it works.

and i think that already answers your 2 first questions, because its not normal but you can fix it with making the cube a little bigger.

like this:


Last edited by elementrix on Tue Nov 27, 2007 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ravine
DeleD PRO user


Joined: 19 Nov 2007
Posts: 15

PostPosted: Tue Nov 27, 2007 2:41 pm    Post subject: Reply with quote

yeah, now i know that.

Those screenies just stands for the explanation of "why i think i'm facing that problem now" and to show how it works. I'm just wondering, now that the face is deleted but the "backface symptom" still there, if there is a workaround to delete the "backface".
Back to top
View user's profile Send private message
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Tue Nov 27, 2007 2:44 pm    Post subject: Reply with quote

does pressing F5 helps? because that is culling on and off....

if you want to delete face's, select them and press "delete"
If you want to flip the face's, select them and press "flip"

but i don't really know your problem works, maybe sending the file to me or someone else, or post a link on the forum so we can download it and see what's wrong?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ravine
DeleD PRO user


Joined: 19 Nov 2007
Posts: 15

PostPosted: Tue Nov 27, 2007 4:30 pm    Post subject: Reply with quote

Well, the .dxs seems clean. I have deleted the faces generated by the substract some time ago(and now i use larger chunks to make subs Smile ). The problem comes from the .X, generated by the exporter (btw, it was not really explicit in my former posts). The F5 tips seems to prove that the .dxs is clean.

Anyway, maybe it's an issue of the .x format, or maybe of the .x exporter.
if you want to look at the files, they are available here.

That's not a "blocking" issue. The dxs works fine in the engine (i use a loader of my own for the irrlicht.NetCp, based on great ilBuzzo works for the native C++ irrlicht), i just noticed that problem today, with a .X generated via DeleD, and i was wondering the why.

I dont like to avoid problems when they can be solved Smile (i'm not the "Hey, move all our assets on other format because we have problems with the one we are working with" type).

Thanks for the help and the tips elementrix (and totally off topic, i'm a great fan of your work. It's my first post but i read the forum for a few month now)
Back to top
View user's profile Send private message
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Tue Nov 27, 2007 4:42 pm    Post subject: Reply with quote

well, if you import the .X file into deled there doesn't seem to be anything wrong??

Maybe your render engine doesn't read the .X well?

tip: those wooden beams sticking out at the top of the house, can also be seperate cube's that are merged with the building (that way you save a lot of poly's, but it doesn't matter that much).

yay i have a fan Laughing
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ravine
DeleD PRO user


Joined: 19 Nov 2007
Posts: 15

PostPosted: Tue Nov 27, 2007 4:57 pm    Post subject: Reply with quote

hehe import the exported. i should have had this idea. Nice one, this does not work.

Dxs > Export > Import ; raises an error.

I'm downloading the plugins again to see if i'm not working with outdated plugs. I'll edit soon.

[EDIT]
Confirmed, the Direct X import / export is broken on my comp.
Thanks for the help, i'm posting on the bug report section.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum