Jump to content
Developer Wiki and Function Reference Links Read more... ×
Nebeor

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);

 

-Edit

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×