Commit graph

1428 commits

Author SHA1 Message Date
Matt Pharr
8415454c39
Merge pull request #351 from w3ntao/master
fix broken url
2023-06-05 16:51:50 -07:00
Wentao Liu
869c5e059e
fix broken url 2023-06-06 07:33:06 +08:00
pbrt4bounty
73ad6bc420
Fix fatal error on Hair material
This change fix a error on Hair material when the upper value for 'beta_m' or 'beta_n' is greatest than 1.0
2023-06-05 00:27:14 +02:00
Matt Pharr
c4baa53404 Fix CHECK in imgtool 2023-05-12 05:31:38 -07:00
Matt Pharr
d250ece5d5 Add nanovdb2pbrt utility.
Basic converter from nanovdb to pbrt's text format for volumes,
including support for downsampling.
2023-05-12 05:30:54 -07:00
Matt Pharr
d4dc2008bf Add temperature scale and offset controls to GridMedium 2023-05-10 10:36:07 -07:00
Matt Pharr
b8a7238e24 Polish up SampledGrid interface
Make capitalization consistent for the [XYZ]Size() methods.
Add PBRT_CPU_GPU to those as well as to BytesAllocated().
2023-05-10 10:29:31 -07:00
Matt Pharr
02f607852d Fix comment 2023-05-10 10:26:42 -07:00
Matt Pharr
b5a3c58929
Merge pull request #343 from hannes-vernooij/incident-ior-fix
Take the incident `IOR` into account for the `CoatedConductorMaterial`
2023-05-05 10:39:12 -07:00
Matt Pharr
94cd09cbf0
Update materials.cpp
Moved the divides to also cover the case where it works backward
to compute eta/k based on a user-specified reflectance.
2023-05-05 10:38:53 -07:00
Matt Pharr
638c2be0f8 Fix host/device function call warning 2023-05-03 10:01:33 -07:00
Hannes Vernooij
e86038eb00 Take incident IOR into account for the CoatedConductorMaterial
This takes the incident index of refraction into account when setting the relative index of refraction for coated conductors.
2023-05-02 17:15:41 +02:00
Matt Pharr
1ed5139291
Merge pull request #339 from wuyakuma/master
LLDB DataFormatters (Debug Visualizer)
2023-04-29 14:55:53 -07:00
wuyakuma
d25f567176 LLDB DataFormatters for pbrt-v4 2023-04-27 16:26:08 +08:00
Matt Pharr
11be252af0 Fix PBRT_FLOAT_AS_DOUBLE build break 2023-04-21 05:29:15 -07:00
Matt Pharr
2f83c6a6c1 Clamp g range in HenyeyGreenstein.
Issue #333.
2023-04-21 05:11:41 -07:00
Matt Pharr
8a51bc04fe Fix SampleHenyeyGreenstein to not generate NaNs with |g| \approx 1.
Issue #333.
2023-04-21 05:11:41 -07:00
Matt Pharr
f655c2eb07
Merge pull request #336 from pbrt4bounty/patch-3
Silent warning in VDB dependecies
2023-04-18 14:04:48 -07:00
pbrt4bounty
4a668cc137
Silent warning in VDB dependecies
Silence a MSVC warning 4146 caused by NanoVDB code when a unary minus operator is applied to an unsigned type.
2023-04-15 20:03:54 +02:00
Matt Pharr
e105dc0334
Merge pull request #332 from aclysma/fix-macro-expansion-error
Address compile issue with macro expansion for using optixModuleCreate or optixModuleCreateFromPTX
2023-04-04 05:05:02 -07:00
Philip Degarmo
dfaaa6f3c1 Address compile issue with macro expansion for using optixModuleCreate or optixModuleCreateFromPTX 2023-04-03 13:29:02 -07:00
Matt Pharr
a2bd4c8850 Stop using unified memory for vertices/indices passed into the Optix BVH builder.
Will hopefully fix issue #329.
2023-04-03 11:53:41 -07:00
Matt Pharr
1b3521b4dd Fix Optix 7.7 build
Fixes issue #331.
2023-04-02 06:45:00 -07:00
Matt Pharr
b939189eff Update github actions GPU builds
Use the latest CUDA and OptiX releases, prune some old ones.

The OptiX 7.7 build should fail, per bug #731...
2023-04-02 06:30:55 -07:00
Matt Pharr
5d559de47d Fix #if 0'd code for single grid-wide majorants 2023-04-02 06:30:55 -07:00
Matt Pharr
081c8e99e6
Merge pull request #327 from pbrt4bounty/patch-2
Silent build warnings about deprecated 'snprintf'
2023-03-21 05:56:30 -07:00
pbrt4bounty
5e69feb538
Silent build warnings about deprecated 'snprintf'
This directive silences many annoying and perhaps unused warning messages under MacOS arm64 about that a few of printf's are now deprecated
2023-03-20 13:11:00 +01:00
Matt Pharr
297ea2e9f3 Warn if a spectrum is specified that is non-zero at a single wavelength.
Issue #308.
2023-01-28 07:47:56 -08:00
Matt Pharr
b1603296ce Remove imgtool denoise
It's not a very good denoiser and in any case is not described in the book.
2023-01-28 07:30:08 -08:00
Matt Pharr
9939f8672a Add user's guide and file format links to README.md
(Issue #320)
2023-01-28 07:13:37 -08:00
Matt Pharr
967aa48d11 Add --fp16 option to imgtool convert 2023-01-28 07:02:11 -08:00
Matt Pharr
6da64631f9 Increase sampling rate for tests when NSpectrumSamples < 4.
Fixes #321.
2023-01-28 07:00:06 -08:00
Matt Pharr
982cd114e0
Merge pull request #318 from TrevorPhilipss/master
Fix bug in polymorphic_allocator::deallocate
2023-01-10 04:58:11 -08:00
NePPoi
0786e4e0a0 Fix bug in polymorphic_allocator::deallocate 2023-01-10 13:42:51 +08:00
Matt Pharr
b8b5ee059e
Merge pull request #316 from shadeops/NaNs_in_rho
Avoid NaNs when the BSDFSample's pdf is 0.
2023-01-04 10:21:44 -08:00
jim price
83d4282795 Avoid NaNs when the BSDFSample's pdf is 0.
Addresses #313
2023-01-04 01:11:34 -08:00
Matt Pharr
302b5d5081 Upgrade to actions/checkout@v3 2023-01-03 14:27:06 -08:00
Matt Pharr
db03ad9b70 Fix bug in PBRT_FLOAT_AS_DOUBLE build introduced in 20673d2d8a 2023-01-03 13:41:08 -08:00
Matt Pharr
20673d2d8a Update from 1st printing final book source
No functional changes; just some variable renamings and changes in comments
that correspond to fragment names that were edited.
2023-01-03 12:40:42 -08:00
Matt Pharr
38ed0fe429
Merge pull request #315 from wuyakuma/master
Add a simple VisualStudio debugger visualizer(.natvis) for TaggedPointer
2023-01-03 08:27:02 -08:00
Matt Pharr
6becd80d96
Update visualstudio.natvis 2023-01-03 08:26:44 -08:00
AwesomeKuma
b251ba1b31 Add a simple VisualStudio debugger visualizer(.natvis) for TaggedPointer 2022-12-30 22:09:59 +08:00
Matt Pharr
f8f260fe31 wavefront/intersect.h: fix variable naming consistency
i.e., match the r_u/r_l notation used in the book and in
VolPathIntegrator.
2022-12-21 06:42:58 -08:00
Matt Pharr
7c8b9ffd7a Fix bug in ParameterDictionary::lookupSingle() error check 2022-12-21 06:42:58 -08:00
Matt Pharr
4437d22630 Use consistent parameter name on CPU/GPU for displacment edge length 2022-12-21 06:42:41 -08:00
Matt Pharr
6aa009b7b1 Fix a few integer overflows with very high-res images. 2022-11-18 17:11:26 -08:00
Matt Pharr
274a8641eb Fix build break from bad edit of raw string constant. 2022-11-16 16:10:33 -08:00
Matt Pharr
2b0abb3896
Merge pull request #307 from gonsolo/fullscreen
Enable fullscreen rendering.
2022-11-16 16:07:38 -08:00
Matt Pharr
9fb41b22cf
Reword --fullscreen text, alphabetize it in the usage message 2022-11-16 16:06:05 -08:00
Gon Solo
ef9ccce770 Merge branch 'master' into fullscreen 2022-11-16 22:26:32 +01:00