Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DPS

Pages: 1 [2] 3 4 ... 8
16
I've found for camera matching, the best way to get the specs from photos is to use exiftool. https://exiftool.org/

Drag a raw file onto the software icon and it gives you heaps of hidden metadata including the (horizontal) FOV.

And FYI if you're ever given a focal length that says 35mm equivalent, then you can leave your 3DS Max Film width at it's default 36mm. (the 35mm equivalent refers to the vertical dimension of film including the border, but it's still 36mm wide - a little confusing).
There's a big caveat though - if the photo was taken in Portrait, then whilst the focal length obviously remains the same, the film width in Max needs to be changed to 24mm (as the 35mm equivalent Full frame sensor is 36x24mm, so if you rotate the camera 90 degrees then (in Max) 24mm becomes the horizontal width of the sensor).

Example (from Mavic 3 I think?):

ExifTool Version Number         : 10.29
File Name                       : PANO0001.DNG
Directory                       : F:/2203-001
File Size                       : 41 MB
File Modification Date/Time     : 2022:06:08 16:10:45+10:00
File Access Date/Time           : 2022:06:08 19:37:49+10:00
File Creation Date/Time         : 2022:06:08 19:37:49+10:00
File Permissions                : rw-rw-rw-
File Type                       : DNG
File Type Extension             : dng
MIME Type                       : image/x-adobe-dng
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : Hasselblad
Camera Model Name               : L2D-20c
Orientation                     : Horizontal (normal)
Software                        : 10.21.51.34
Modify Date                     : 2022:06:08 08:39:42
Image Width                     : 5376
Image Height                    : 3956
Bits Per Sample                 : 16
Compression                     : Uncompressed
Photometric Interpretation      : Color Filter Array
Strip Offsets                   : 829952
Samples Per Pixel               : 1
Rows Per Strip                  : 3956
Strip Byte Counts               : 42534912
Planar Configuration            : Chunky
CFA Repeat Pattern Dim          : 2 2
CFA Pattern 2                   : 0 1 1 2
CFA Plane Color                 : Red,Green,Blue
CFA Layout                      : Rectangular
Black Level Repeat Dim          : 2 2
Black Level                     : 4096 4096 4096 4096
White Level                     : 65472
Default Scale                   : 1 1
Default Crop Origin             : 4 4
Default Crop Size               : 5272 3948
Bayer Green Split               : 0
Anti Alias Strength             : 1
Best Quality Scale              : 1
Active Area                     : 0 0 3956 5280
Opcode List 3                   : (Binary data 12564 bytes, use -b option to extract)
Default User Crop               : 0 0 1 1
Subfile Type                    : Reduced-resolution image
Preview Image Start             : 100864
Preview Image Length            : 728612
Y Cb Cr Coefficients            : 0.299 0.587 0.114
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Y Cb Cr Positioning             : Co-sited
Reference Black White           : 0 255 128 255 128 255
About                           : DJI Meta Data
Format                          : image/dng
Gps Status                      : Invalid
Altitude Type                   : GpsFusionAlt
Gps Latitude                    : -27.500423052
Gps Longitude                   : +152.977122224
Absolute Altitude               : +10.851
Relative Altitude               : +25.400
Gimbal Roll Degree              : +0.00
Gimbal Yaw Degree               : -73.20
Gimbal Pitch Degree             : -1.60
Flight Roll Degree              : -2.80
Flight Yaw Degree               : -53.10
Flight Pitch Degree             : -0.40
Flight X Speed                  : 0.0
Flight Y Speed                  : 0.0
Flight Z Speed                  : 0.0
Cam Reverse                     : 0
Gimbal Reverse                  : 0
Self Data                       :
Version                         : 7.0
Has Settings                    : False
Has Crop                        : False
Already Applied                 : False
Exposure Time                   : 1/1000
F Number                        : 2.8
Exposure Program                : Program AE
ISO                             : 100
Sensitivity Type                : Recommended Exposure Index
Exif Version                    : 0230
Date/Time Original              : 2022:06:08 08:39:42
Create Date                     : 2022:06:08 08:39:42
Shutter Speed Value             : 1/1000
Aperture Value                  : 2.8
Exposure Compensation           : +0.7
Max Aperture Value              : 2.8
Subject Distance                : 0 m
Metering Mode                   : Average
Light Source                    : Unknown
Flash                           : No Flash
Focal Length                    : 12.3 mm
File Source                     : Digital Camera
Scene Type                      : Directly photographed
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Manual
Digital Zoom Ratio              : 1
Focal Length In 35mm Format     : 24 mm
Scene Capture Type              : Standard
Gain Control                    : None
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Serial Number                   : 493OJAC7AA05VA
Lens Info                       : 24mm f/2.8-11
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : South
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Status                      : Measurement Void
GPS Map Datum                   : WGS-84
XP Comment                      : 0.9.142
XP Keywords                     : pano_original
DNG Version                     : 1.4.0.0
DNG Backward Version            : 1.3.0.0
Unique Camera Model             : Hasselblad L2D-20c
Color Matrix 1                  : 1.3364 -0.8291 0.123 -0.3009 1.1905 0.3937 0.0446 -0.0215 0.8437
Color Matrix 2                  : 0.8575 -0.3219 -0.0868 -0.3351 1.1451 0.1593 0.0207 0.0468 0.4876
Analog Balance                  : 1 1 1
As Shot Neutral                 : 0.4284967047 1 0.5445360277
Baseline Exposure               : 0.01
Baseline Noise                  : 1
Baseline Sharpness              : 1
Linear Response Limit           : 1
Camera Serial Number            : 493OJAC7AA05VA
Shadow Scale                    : 1
DNG Private Data                : (Binary data 47904 bytes, use -b option to extract)
Calibration Illuminant 1        : Standard Light A
Calibration Illuminant 2        : D65
Profile Name                    : Embedded
Profile Hue Sat Map Dims        : 18 6 1
Profile Hue Sat Map Data 1      : (Binary data 3700 bytes, use -b option to extract)
Profile Hue Sat Map Data 2      : (Binary data 3692 bytes, use -b option to extract)
Profile Tone Curve              : (Binary data 4544 bytes, use -b option to extract)
Profile Embed Policy            : Allow Copying
Noise Profile                   : 5.88172456e-005 3.241287029e-008
Original Default Final Size     : 0 0
Original Best Quality Size      : 0 0
Original Default Crop Size      : 0 0
Aperture                        : 2.8
CFA Pattern                     : [Red,Green][Green,Blue]
GPS Altitude                    : 10.8 m Above Sea Level
GPS Latitude                    : 27 deg 30' 1.52" S
GPS Longitude                   : 152 deg 58' 37.64" E
GPS Position                    : 27 deg 30' 1.52" S, 152 deg 58' 37.64" E
Image Size                      : 5376x3956
Megapixels                      : 21.3
Preview Image                   : (Binary data 728612 bytes, use -b option to extract)
Scale Factor To 35 mm Equivalent: 2.0
Shutter Speed                   : 1/1000
Circle Of Confusion             : 0.015 mm
Field Of View                   : 73.7 deg
Focal Length                    : 12.3 mm (35 mm equivalent: 24.0 mm)
Hyperfocal Distance             : 3.51 m
Light Value                     : 12.9
-- press RETURN --

19
I have this code that seems to change the paramters that I want:

Code: [Select]
op = LutOperatorPlugin()
setProperty op "colorMappingOperator.id" 1
setProperty op "colorMappingOperator.enabled" false
setProperty op "colorMappingOperator.path" "L:\_Max_stuff\_Corona_LUTs_Tonemapping Only\DS_4_Values.CUBE"
setProperty op "colorMappingOperator.opacity" 1
setProperty renderers.current "colorMap.pipeline" op

op2 = FilmicOperatorPlugin()
setProperty op2 "colorMappingOperator.id" 2
setProperty op2 "colorMappingOperator.enabled" true
setProperty op2 "colorMappingOperator.highlightCompression" 1
setProperty op2 "colorMappingOperator.Richshadows" 1
setProperty op "colorMappingOperator.nextOperator" op2

op3 = ReinhardOperatorPlugin()
setProperty op3 "colorMappingOperator.id" 3
setProperty op3 "colorMappingOperator.enabled" true
setProperty op3 "colorMappingOperator.highlightCompression" 0.6
setProperty op2 "colorMappingOperator.nextOperator" op3

op4 = SaturationOperatorPlugin()
setProperty op4 "colorMappingOperator.id" 4
setProperty op4 "colorMappingOperator.enabled" true
setProperty op4 "colorMappingOperator.Saturation" -0.10
setProperty op3 "colorMappingOperator.nextOperator" op4

op5 = GreenMagentaTintOperatorPlugin()
setProperty op5 "colorMappingOperator.id" 5
setProperty op5 "colorMappingOperator.enabled" true
setProperty op5 "colorMappingOperator.greenMagentaTint" 0
setProperty op4 "colorMappingOperator.nextOperator" op5

op6 = WhiteBalanceOperatorPlugin()
setProperty op6 "colorMappingOperator.id" 6
setProperty op6 "colorMappingOperator.enabled" true
setProperty op6 "colorMappingOperator.colorTemperature" 6500
--setProperty op2 "colorMappingOperator.Falloff" 0
setProperty op5 "colorMappingOperator.nextOperator" op6

op7 = VignetteOperatorPlugin()
setProperty op7 "colorMappingOperator.id" 7
setProperty op7 "colorMappingOperator.enabled" true
setProperty op7 "colorMappingOperator.Intensity" .7
--setProperty op2 "colorMappingOperator.Falloff" 0
setProperty op6 "colorMappingOperator.nextOperator" op7

op8 = SimpleExposureOperatorPlugin()
setProperty op8 "colorMappingOperator.id" 8
setProperty op8 "colorMappingOperator.enabled" true
setProperty op8 "colorMappingOperator.simpleexposure" -0.55
setProperty op7 "colorMappingOperator.nextOperator" op8


Quote
The tone mapping stack cannot be created from scratch using maxscript, or controlled using maxscript, unless you perform some manual intervention from the user interface first (e.g. create some new operators, change their values by hand). For example, if you create a fresh new scene and it already has some existing tone mapping stack, you will not be able to adjust its values using maxscript unless you change some of the values manually first. There are some technical reasons for this, and we did not predict that it could cause some issues to our users.

Could you explain in what circumstances my maxscript code won't work? So I know when I can just punch out all of my passes without having doubt? I just tried this on my base max template that has a tone mapping stack in it - and it worked.

And regarding ease of editing the code - if I want to add in an operator half way, is there an easy way to do this without repeatedly changing the Op, ID, and Property numbers for the whole script?

Thanks

20
As a temporary workaround, would anyone mind posting the maxscript for loading tonemapping settings that have already been saved out from the framebuffer?

Then I can manually save out the xml, and then I can hopefully use Vexus to handle loading the relevant one per pass. It's a real pain to update 8-10 or so parameters manually per pass without making any mistakes.

And the uninstaller is broke too so I have been stuck with Corona 8.

21
I'm an absolute beginner when it comes to Maxscript. Wondering if someone can help me to improve my script?

Background: when assigning object gbuffer IDs I am using a script to assign these based on my standard layer names. That part works fine.

However - there are some circumstances where I'd like to assign Object Ids based on a suffix on the layer name - for example "Layer01[OID16]" - and I wish to have a script that searches for the suffix and adds the appropriate ID.

Here is my script so far:

Code: [Select]
ObjLay = $.layer.name -- layer of selected objects

MyString1 = (FilterString ObjLay "[OID")[2] -- search the slected layer name for "[oid".  This is so I can add a suffix e.g. [OID7] to specify the Gbuffer ID I wish to assign.

MyString2 = (FilterString MyString1 "]")[1] as integer-- best I could do.

for o in selection do o.gbufferchannel = MyString2


I'm actually using this within Vexus (a nodal scripting tool for Max), and I already have another node that selects all objects on layers that contain "*[OID*]*"

The problem is this script doesn't work when I have different layers with different [OID] suffixes. I understand why it doesn't work, I just don't know how to fix it. I hope that makes sense.

23
Would anyone mind posting a couple of examples of how I might edit these parameters via maxscript?

I can figure out which I need to edit but I'm not a scripter.

24
The issue is present in my base max template too when I start a fresh scene.

25
Hi it’s not scene specific. Even my base max template does the same.

All material swatches are black too.

License server appears normal. Ie it shows when licenses are in use.

I can archive my template if that helps.

It’s like the camera is corrupted. Even maxes physical camera. It’s like the focal length has gone haywire.

26
Hi

It's within all views including perspective view & all scenes including new scene.

No I did not delete any files before going add/remove.

28
Here's what I get when I try and roll back to 7.

Via the Corona 7 installer & via add/remove programs to remove Corona 8. And if you hit ok it just goes in a loop and doesn't uninstall. Really hard to be objective here.

29
Here's another max scene, a dining room. Awesome.

Really disappointed with this release.

30
I opened an C7 scene in C8. And here is the render. No geometry visible when it should be a bathroom. Perspective view looks like this too.


Pages: 1 [2] 3 4 ... 8