Jump to content

How to set a pluginObject to transparent

Recommended Posts

When in the OpenGL render mode: I have some trouble with selecting objects that are behind or in the middle of a PluginObject written in C++.

This problem doesn't occur in Vectorscript.

The blocking object itself containts a transparent extrusion, but It doesn't seems to be transparent itself.

I didn't found a way to set the PluginObject itself to transparent other than changing it from class.


In other words: I'm looking for some function that can almost any object transparent and not just 2D poly's.

 like with gSDK->SetFillPat(rect,0);



What I forgot to mention is that at first my extrusion was made transparent just by assigning a class that was set to no fill, this wasn't enough to solve my needs.


Edited by Nebeor

Share this post

Link to post

Are you selecting objects manually or as part of a tool. If manual, you can always hold down the B key to enter into X-Ray mode, a temporary wireframe. You can also turn off occluded selection in 3D preferences. If you are coding the selection process, you can toggle the preference via code. 


3D transparency is accomplished with textures, usually best if you want something to appear translucent. If you want the object to behave as if it were not a solid, I would create it with NURBS outlines rather than as an extrude. (Leave the NURBS as curves — do not combine or loft them into a surface). That will give you snappable, unfilled 3D geometry. 

  • Like 1

Share this post

Link to post

You give a lot of good suggestions but these will still have some impact on how my end users experience my plug-ins that are originally written in Vectorscript.

Share this post

Link to post

My problem was not related to the plugin that's not transparent, but to extrusion inside:

I had to use gSDK->setFillpath(h,0) two times:

  • on the 2DpolygonObj that got extruded
  • on the extrusion itsef.

Problem solved!

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...