Save image from MOI
 1-4  5-24  25-38

Previous
Next
 From:  Michael Gibson
1049.5 In reply to 1049.1 
Hi Alberto, I have added something to allow for creating images larger than the regular window size.

To use it you have to set up a keyboard shortcut to take the larger snapshot. Go to Options / Shortcut keys, and add in a new entry. For the Key put in whatever you want, like "P". Then for the command copy the following and paste it in:

code:
script:var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 4; v.renderToClipboard( 2560, 2560 ); moi.view.lineWidth = 1; }


Now when you push P MoI will place a 2560x2560 image on the clipboard and you can paste it into an image processing program.

You can possibly adjust this to higher as well, but whether it works or not depends on your video card. If you have a video card with a lot of memory on it (like 256MB+), then it is more likely that you can go higher than that. Some video cards may not be able to handle anything larger than the screen properly.

That script also adjusts the line width to be bigger just for that snapshot, since otherwise the lines will look rather small and faint in proportion to the larger image size. You can change that line width value to get different styles.

I hope this helps for your printout, please let me know if you see any problems.

- Michael


(edit: removed reference to old patch install, this is not needed with versions newer than the Sep 2007 beta release).

EDITED: 26 Feb 2008 by MICHAEL GIBSON

  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:  Linker (KJELLO)
1049.6 In reply to 1049.5 
Hi, I gave this script a whirl out of curiosity:-)

I found that on my home system with a bog-standard GeForce gaming graphics card it allowed me to output images up to 2048*2048, but no larger. I guess this is either a hw limitation or, more likely, a driver issue.
  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
1049.7 In reply to 1049.6 
Hi Linker - how much video RAM on your card? (you can find out under Control Panel / Display / Settings tab / Advanced button / Adapter tab / Memory Size.

- 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:  pagliaso
1049.8 
Hello:

Thank you very much for your replies.

Pilou, I gained some area with your piece of advice. I tried the program that you reccommended and I can't manage to get sattisfying results. My image is from a boat with large and thin lines, and also I'm a little dummie with computers.

Michael, that was wonderful. Thank you very much indeed. I tried it and it works perfectly.
I have just tried 3560x3560 and it also worked.

Thanks and regards.

Alberto
  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:  jbshorty
1049.9 
That's great, Michael. Can you also make a version to grab an image of the Z Buffer? :)

Thanks,
jonah
  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:  Lish (KHOLISH)
1049.10 In reply to 1049.5 
"Hi Alberto, I have added something to allow for creating images larger than the regular window size.

To get it you need to download this new patch: http://moi3d.com/beta/Sep4_patch4.zip"

Hi Michael...

I think it will be better if you can put all the patch under download page.

Regards,
Lish

  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
1049.11 In reply to 1049.9 
Hi Jonah,

> That's great, Michael. Can you also make a version to grab an image of the Z Buffer? :)

Unfortunately that is a bit more difficult. I'm not sure that you would want the actual Z-Buffer anyway, since it is non-linear. My guess is that you would want a depth image that had a linear mapping between depth and color?

- 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:  Michael Gibson
1049.12 In reply to 1049.10 
Hi Lish,

> I think it will be better if you can put all the patch under download page.

Eventually they'll get bundled up in a new version with a proper installer. For now it is easiest for me to release smaller tweaks in a more informal and quick way just by announcing it on the forum.

- 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:  Michael T. (MICTU_UTCIM)
1049.13 
Works great Michael G.!
Michael Tuttle a.k.a. mictu http://www.coroflot.com/fish317537
  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:  jbshorty
1049.14 In reply to 1049.11 
Not exactly sure what you mean about "linear" or "non linear" and how they relate to what i need (want)?... I am using Rhino to screengrab the ZBuffer and then use it as a paint/displacement brush in Modo. The method in Rhino works fine, but the antialiasing doesn't work at same time that ZBuffer is displayed. So i must post-process to enlarge, blur, shrink, etc... I figured it might be possible to have "antialiased zbuffer" grab from Moi. But don't worry if it's too much trouble...

jonah
  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
1049.15 In reply to 1049.14 
Hi Jonah, I mean that if you were to relate the distance to the color, the zbuffer graph would look something like this:



Instead of just being a straight line. Usually the values in the z-buffer are not actual simple z depths but this kind of proportional value that gives more bits of precision to things that are closer to you.

But the zbuffer would not be antialiased anyway, so that wouldn't really do you any good (except shrinking from a much larger image is a good way to antialias stuff).

- Michael
Attachments:

  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:  jbshorty
1049.16 In reply to 1049.15 
That's interesting. Thanks for your explanation. I never imagined the quality of the ZBuffer drops off exponentially as it gets further from the camera. Maybe this is how our eyes/brain function too? that would make sense...

jonah
  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)
1049.17 
Hi Michael
When you use the shortcut key for make a "big print" http://moi3d.com/forum/index.php?webtag=MOI&msg=1049.5
and modify the number for have different line's apect, use it and make some other thing then closed Moi
When you restart Moi you have again these aspect lines and not the standard lines aspect!
Is that normal? Maybe unpractical because we don't remember the default regulates ;)
I know that they are here http://moi3d.com/forum/index.php?webtag=MOI&msg=1049.5 but...

Another little question :)
In the Option dialog window the button "Restore Defaults" restore also the Shortcut key scripts? (erase added scripts ? )
I don't try it for not to lose the all scripts in case of :)
---
Pilou
Is beautiful that please without concept!
My Gallery

EDITED: 23 Oct 2007 by PILOU

  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
1049.18 In reply to 1049.17 
Hi Pilou - that script had this in it originally:

<...> moi.view.lineWidth = 4; v.renderToClipboard( 2560, 2560 ); moi.view.lineWidth = 1; <...>

Notice that there are 2 spots that are setting the line width - it set it to be wider before the call to renderToClipboard(), and then set it back to 1 after. If you want to change this script, you should only modify the first one, and leave the second one to set it back to 1 which restores it.


> In the Option dialog window the button "Restore Defaults" restore also the Shortcut key scripts?
> I don't try it for not lose the all scripts in case of :)

Nope, nothing to worry about, it will leave your shortcut keys alone. :) The only thing that will delete shortcut keys is using the "Delete" button on that shortcut key page.

But it might not be a bad idea to make a back up copy of your moi.ini file just in case, that would make it easy for you to restore whatever settings you need later, all settings are saved in there.

Also when you push "Restore defaults", you then get a choice for whether to restore all defaults or just the ones for the current section. In this case if you go to the View section in Options, you can then use the "just current section" option to get line width back to the default without altering settings on other sections.

- 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:  Linker (KJELLO)
1049.19 In reply to 1049.7 
The memory size on my gfx card is 128Mb
  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)
1049.20 In reply to 1049.18 
< Notice that there are 2 spots that are setting the line width - it set it to be wider before the call to renderToClipboard(), and then set it back to 1 after. If you want to change this script, you should only modify the first one, and leave the second one to set it back to 1 which restores it.

are you sure?
moi.view.lineWidth = 4; v.renderToClipboard( 2560, 2560 ); moi.view.lineWidth = 1;

Line aspect on the screen change only if I change the second parameter !!!

nothing change if modify the "4"
Lines are modified only if I change the second "1"

1 & 4 = big lines
4 & 4 = big lines
8 & 4 = big lines
1 & 1 = normal lines
4 & 1 = normal lines
8 & 1 = normal lines
---
Pilou
Is beautiful that please without concept!
My Gallery

EDITED: 24 Oct 2007 by PILOU

Attachments:

  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
1049.21 In reply to 1049.20 
Hi Pilou, that's true, the image on the screen will only change with the second parameter.

But that script isn't about changing stuff on the screen, it is about changing stuff on the image that is sent to the clipboard. You don't see that image on the screen until you paste it into an image processing program.

The idea of the script is to work like this:


Set line width to a larger number.

Call renderToClipboard() - this will do a special rendering that you don't see on the screen, but the rendering will use all the parameters that are normally set to change the appearance including the larger line width. This rendering is never displayed directly, it goes directly to a bitmap instead.

Then the second call to setting the line width restores it to its original default so that there won't be any change to the regular screen display.


So it is intended that when you run the script, you should not see any change immediately on the screen at all, that's why you want to leave the second parameter to set lineWidth back to 1.

When you change the first line width, you will be changing the appearance of the image that is on the clipboard, paste it in somewhere each time to see the different result.

I hope this clears it up!

- 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:  Frenchy Pilou (PILOU)
1049.22 In reply to 1049.21 
hehe I have now full understand
But maybe it's more practical to see the result as soon as in Moi before to past in the 2D prog ;)

another thing is that artifact normal in the 2d prog image ? corners lines are separated!
(that makes the same of course in Moi ; with the 2 parameters changed :)
here I put 64 , (image is 35 % reducted) :)

Ps and my maxi seems to be 2048 * 2048 (in Moi with the past to clipboard) with a video card with 128 megas : normal?

---
Pilou
Is beautiful that please without concept!
My Gallery
Attachments:

  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
1049.23 In reply to 1049.22 
> another thing is that artifact normal in the 2d prog image ? corners lines are separated!

Hi Pilou, this is normal at least for now - each edge of the solid is drawn as a separate line so that is the end of each line.

When you have curve segments that are joined together like with a rectangle curve, that will produce ends that are mitered, but completely separate curve objects (which is the case with edge curves like you show) do not get mitered between each other.


> Ps and my maxi seems to be 2048 * 2048 (in Moi with the past to clipboard)
> with a video card with 128 megas : normal?

Yes, this is normal, different video cards will have different limitations. Sometimes the limit is not just in memory but also just what the driver is programmed to allow.

I would generally expect cards that are newer and have more memory to allow larger sizes.

- 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:  Frenchy Pilou (PILOU)
1049.24 In reply to 1049.23 
Thx
:) my hardware is some old but works fine (for the moment) :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  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

 

 
Show messages:  1-4  5-24  25-38