Jump to content
Developer Wiki and Function Reference Links ×

How to set a pluginObject to transparent


Nebeor

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
Link to comment

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
Link to comment

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.

Guest
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.

×
×
  • Create New...