Transparent shaded view

Next
 From:  karlgroendal (KARL_GROENDAL)
8253.1 
Is it possible to make the shaded view transparent?

Ex: If I have two objects inside eachother, it would be nice to be able to see the inner object through the outer.

best, Karl
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
8253.2 
This is not yet exactly existing but you have that!

By Max Smirnov ;)
Make a shortcut of this

script:/* Transparence */ var gd = moi.geometryDatabase; var so=gd.getSelectedObjects(); if (so.length>0) { so.setProperty( 'displayMode',1); so.setProperty( 'selected', 0); } else { gd.getObjects().setProperty( 'displayMode',0); }

Just select an object (s) and press the shortcut key!
It can be done on different objects!

Repeating the shortcut key will cause all objects to reappear!

So always select an object before calling the shortcut, otherwise it will cause all objects to reappear!

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Finema
8253.3 In reply to 8253.2 
really cool Frenchy
Thanks
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8253.4 In reply to 8253.1 
Hi Karl,

re:
> Ex: If I have two objects inside eachother, it would be nice to be able to
> see the inner object through the outer.

If you turn on the hidden line display (on the side pane enable the View > "Display hidden lines" checkbox), you should then see edges of the inner object in this situation. Either that or hiding the faces of the outer object and leaving its edges displayed can help, like with the script Pilou shows above.

There isn't currently any way to make the shaded surface display of an object to be transparent - unfortunately that's not something that is handled automatically by the video card, it requires polygons to be drawn in a particular sorted order and it has to be implemented carefully to avoid slow downs on more complex models. That's why it's not implemented in MoI as of yet, but hopefully I'll be able to do it sometime in the future.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Psygorn (DRILLBIT)
8253.5 

Hello and good day to all :-)

I know it might not be a good place to ask the following question but I decided to ask it anyway:

How can I learn to write down pieces of code like that! I mean the code written by Max which you can see it below:

script:/* Transparence */ var gd = moi.geometryDatabase; var so=gd.getSelectedObjects(); if (so.length>0) { so.setProperty( 'displayMode',1); so.setProperty( 'selected', 0); } else { gd.getObjects().setProperty( 'displayMode',0); }

Does Moi3D use a special syntax? Does it use Java/Java script? I am familiar with some computer programming languages but Java/Java script is not among them!

Where is the good place to learn how to write commands that are executable by Moi3D like the things Max Smirnov does!

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8253.6 In reply to 8253.5 
Hi Psygorn, yes that is JavaScript code. it's not so easy to learn how to use this with MoI because there isn't currently a lot of documentation or tutorials written about this particular area. You mostly learn how to do it bey looking at the scripts for regular commands which you can find in the commands folder inside the app.

There is a little bit of information here though:

http://moi3d.com/wiki/Scripting

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8253.7 In reply to 8253.5 
Hi Psygorn,
You can parse the script in an editor, such as notepad++, with the file extention .js, for javascript. The javascript version is ES5, (ECMA_Script2009). Even after a few years of casual programming efforts, it remains very challenging.
- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Psygorn (DRILLBIT)
8253.8 In reply to 8253.6 
Thank you Michael.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Psygorn (DRILLBIT)
8253.9 In reply to 8253.7 
Thank you bemfarmer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All