backface culling per object

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2004   #1
backface culling per object

i mostly model. not too big of a mel person,
ive looked at many toggle tool sets and scripts, but ive not found a back face culling tollge.
anyone can help?

a poor attempt...
this seem to turn it on, but does not act as a toggle.


if (`getPanel -to (eval("getPanel -withFocus"))`){
$currentPanel = `getPanel -withFocus`;
if (`modelEditor -q -polymeshes $currentPanel`){
polysDisplayUpdateCulling $currentPanel;
}
else {
modelEditor -edit -polymeshes polysDisplayUpdateCulling 0 $currentPanel;
}
}
also is this possible to have a similar drawing in the viewport as XSI hidden line mode?
here are the pics below to show what i mean.



__________________
that is statistically impossible
 
Old 11 November 2004   #2
For the first question.
I'm currently using this script.
This isn't my script,but somebody in Japan made this.
I think this will solve your first ploblem.

global proc tglCulling()
{
if(`window -q -ex tcwin`)
{
if(`intField -q -v if1` == 0){ polyOptions -fb -bcv on; intField -e -v 1 if1; }
else{ polyOptions -bc -bcv off; intField -e -v 0 if1; }
}
else
{
window -ret -vis off tcwin; columnLayout; intField -v 0 if1;
}
}tglCulling();

I hope this helps.
__________________
sorry for my bad English. ush
 
Old 11 November 2004   #3
it works Perfectly.
thank you ver very much.

i wish there was smething like XSI drawing overrides in the view ports. but this script will work well for now.
thanx
__________________
that is statistically impossible
 
Old 01 January 2006   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:51 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.