Camera matching
 1-12  13-32  33-38

Previous
Next
 From:  Frenchy Pilou (PILOU)
3644.13 In reply to 3644.12 
Nice reaction's car!
---
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

Previous
Next
 From:  Marc (TELLIER)
3644.14 
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:  DannyT (DANTAS)
3644.15 In reply to 3644.12 
Another very cool model PaQ! fantastic work.

Cheers
~Danny~
  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
3644.16 In reply to 3644.12 
Hi PaQ,

> ... but still don't get the math for the angle of view ...

So to start with you'll probably want to do the screencapture with a script like this so you can exactly match the pixel width and height dimensions:

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

Change the 2560,2560 to your target width,height.



Then for converting a full horizontal angle of view into what MoI uses, try the following script - there are 3 values to substitute:

horiz_angle = 40 replace with your horizontal angle of view
width = 1024 replace with your rendered image pixel width
height = 768 replace with your rendered image pixel height

script: /* match horizontal view angle */ var horiz_angle = 40; var width = 1024; var height = 768; var x = Math.tan( (horiz_angle/2) * (Math.PI/180) ); x *= height / width; var central_angle = Math.atan( x ) * 2 * (180/Math.PI); moi.ui.mainWindow.viewpanel.getViewport('3D').fieldOfViewAngle = central_angle;



Let me know if that doesn't seem to work.

- 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:  PaQ
3644.17 In reply to 3644.16 
thanks for the nice comments !

Hi Michael, I will give a try tomorrow, for the moment I scale the image by hand until it perfecly match, not that hard.
I can apply a rule of 3 (not sure about the english term), but that's the best math I can do :P

So thanks for the enhanced version of the script :)


Just finished the image 30 min before the deadline :)

EDITED: 3 Dec 2015 by PAQ

  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:  Mark Brown (MABROWN)
3644.18 In reply to 3644.17 
Fabulous PaQ & very clever.

---
Mark
http://www.homepages.ihug.com.au/~mabrown/index.html

  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
3644.19 In reply to 3644.17 
Hi PaQ, it's an awesome result!

- 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:  FiL (FILIPPOL)
3644.20 In reply to 3644.17 
Bravo!

FiL
  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:  David (BLEND3D)
3644.21 
Amazing!
  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:  eric (ERICCLOUGH)
3644.22 In reply to 3644.21 
Stunning!
eric
  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:  max3d (DAVEDAVIDSON)
3644.23 In reply to 3644.12 
very nice work mate and love the style you went for
www.max3d.org
  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:  PaQ
3644.24 
Hello,

Thanks for your comments :) really appreciate.

@Michael, I just move into a new place yesterday, so I can't do any test for the script before Monday at work !
  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:  PaQ
3644.25 In reply to 3644.24 
Hi Michael,

So here a test with the focal converter script :
width 1024 height = 512 Modo Angle of view 40

The script return : 20,628 for the field of view,

here's the result :



It doesn't completly match but it's pretty close, so I can live with that.

EDITED: 3 Dec 2015 by PAQ

  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)
3644.26 In reply to 3644.25 
There is not also a screen factor deformation depending of measures of each computers? (4/3, 16/9...
  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:  Moe (THREEDFANATIC)
3644.27 In reply to 3644.26 
Very Nice Model PaQ love the curves and detail!
  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
3644.28 In reply to 3644.25 
Hi PaQ, yeah it looks pretty darn close. It seems like possibly the formula is correct but maybe there is some kind of slight pixel padding happening that makes the aspect ratio match not quite 100% correct.

If you want a better match you could try to see what happens if you shave off 4 pixels or something off of the width and height that you put in the script.

Also, does Modo possibly have any other means of setting the angle of view, like an equivalent of the lens length of a 35mm camera or something like that? If so then that may be possibly easier to match.

- 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:  PaQ
3644.29 In reply to 3644.28 
Hi Michael, yes I will just do a little pixel offset for everygrab, it's allready much faster than without any script to assist me.
And yes modo has a focal lenght info to, for a 40°, it's 49.4546 mm ... does it makes sence for you ?
  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
3644.30 In reply to 3644.29 
Hi PaQ, give this one a try instead, it's based off of the focal length instead, implicitly using the film size of a 35mm camera as the image width and height so there's only one value that you set (the focal_length = part).

EDIT: note this script did not work right, use the one from earlier in this thread.

script: /* match view angle */ var focal_length = 49.4546; moi.ui.mainWindow.viewpanel.getViewport('3D').fieldOfViewAngle = Math.atan(12/focal_length) * 2 * (180/Math.PI);

Does that seem to work better or worse?

- Michael

EDITED: 12 Jul 2010 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:  NightCabbage
3644.31 
So cool.

Envy :P

Man, I need to learn how to render (and get a good program to render with lol)
  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:  necko (NECKO77)
3644.32 In reply to 3644.20 
great ! just great
  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-12  13-32  33-38