gw.Marker, Disable Draw On Top?

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
  03 March 2013
gw.Marker, Disable Draw On Top?

Is it possible to disable draw on top when using gw.Marker, or is there another method to use, to display something similar?

I'm trying to make sure it doesn't show over objects, polygons, ect. when its position is behind them from the current p.o.v.

Also I noticed it really drops fps in viewport, is there anyway to make it faster, or something similar that is faster?

Thanks for any information you can share.

Edit:
I tried doing this...

RenderLims = gw.getRndLimits ()
append RenderLims #backcull
gw.setRndLimits RenderLims

but it didn't help, I guess what I thought that should do, isn't what it does.

Last edited by CG3DOpifex : 03 March 2013 at 03:50 AM.
 
  03 March 2013
how important is a constant screen size ?
 
  03 March 2013
Originally Posted by Klunk: how important is a constant screen size ?


Fairly important, but I'm willing to find out anything even if its not.
 
  03 March 2013
would something like this do the job ?

http://forums.cgsociety.org/showthread.php?f=98&t=1094246
 
  03 March 2013
Originally Posted by Klunk: how important is a constant screen size ?

you can make a scripted helper with custom mesh and constant size. that's what getScreenScaleFactor for...
 
  03 March 2013
I know, but don't you have to rebuild the mesh every time the viewport changes ?
 
  03 March 2013
op on an other issue #backcull would only disable back face culling try #zbuffer instead.

Last edited by Klunk : 03 March 2013 at 02:46 PM.
 
  03 March 2013
Originally Posted by Klunk: I know, but don't you have to rebuild the mesh every time the viewport changes ?

you don't have to rebuild... only scale or make transform.
 
  03 March 2013
Ok I tried what Denis mentioned, but I'm having an issue.

I made a standard dummy box, and gave it a custom param, and gave that a controller point3 script.

Here's the Expression I'm using,

--BoxHelper = the dummy box node
theboxsize = ( (getScreenScaleFactor BoxHelper.pos) * 0.01)
BoxHelper.boxsize = [theboxsize, theboxsize, theboxsize]


The only issue is, it's only updating the boxsize set from the expression when I move the Dummy Box.

Anyway to get it to update also when zooming / rotating / panning the view?
 
  03 March 2013
Originally Posted by Klunk: op on an other issue #backcull would only disable back face culling try #zbuffer instead.


Also not sure what this was meant to do, all this gw is new to me, but it didnt stop the markers from drawing on top of everything.
 
  03 March 2013
I didn't think it would work on the marker I was just pointing out the correct flag to use (though it doesn't always work in the sdk either). As for the constant size thing just use a Point helper instead of the dummy and check the constant screen size.
 
  03 March 2013
Originally Posted by Klunk: I didn't think it would work on the marker I was just pointing out the correct flag to use (though it doesn't always work in the sdk either). As for the constant size thing just use a Point helper instead of the dummy and check the constant screen size.


Ah can't believe I overlooked the point helper....
How can i get it to always be facing the camera though, I figure a lookat constraint, but what can I use to get the proper lookat value to constrain to?
 
  03 March 2013
Just found viewport.getTM() in the maxscript help, so I guess using the inverse of that for the rotation would make it always face the camera.

But I'm getting the same problem as with the boxsize of the other expression, its only updating when moved....

I'm using a scripted rotation controller of
inverse (viewport.getTM())


What am I missing?
 
  03 March 2013
use manipulator... it updates on every redraw
 
  03 March 2013
Originally Posted by denisT: use manipulator... it updates on every redraw


btw... it also has built-in 'constant screen size' option
 
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 09:43 AM.


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