Skip to content

Commit bcc9b89

Browse files
committed
[1.3.36] 2025-06-25
* Many minor fixes to documentation and docstrings. * Moved AGENTS.md to doc/AGENTS.md *Context* - When reading OBJ files with both map_Kd and map_d specified, ensured map_Kd is preserved when map_d specifies a different file and only use map_d when no diffuse texture is provided. - Added overloaded Context::addTile() and Context::addTileObject() that allow periodic tiling of the texture image. - Fixed Context::readPNGAlpha() to properly handle the case when the PNG file has no alpha channel. - Changed Context::cleanDeletedUUIDs() back to looping backward rather than using an iterator. *Plant Architecture* - Fixed an error with the leaf pitch and roll angles when calling Phytomer::rotateLeaf() with a non-compound leaf. - Some minor tweaks to model parameters for cowpea, bean, and tomato plants. *Visualizer* - Changed default lighting parameters in shader, which should give a bit more ambient lighting and make plant visualizations look a little better. - Fixed read_png_file() to properly hand the case when the PNG file has no alpha channel. - Fixed an issue with the sky dome where the sky texture mapping was not correct. - Changed clipping planes for camera and shadow rendering to be more robust, which should fix some issues with shadows not being rendered correctly. - Changed Helios watermark to version with white border, which should be more visible on dark backgrounds. - Fixed a bug where if you update the visualizer window with RGB coloring, then call colorContextPrimitivesByData()/colorContextObjectsByData(), then re-render, it would break the coloring. - Fixed an issue where the back side of primitives was being rendered way too dark. *Radiation* - Minor fix in RadiationModel::normalizePixels() to avoid a compiler error in some pixels (wrap (std::numeric_limits<float>::max)() in parentheses). *Energy Balance* - Made header variables cp_air_mol and lambda_mol constexpr instead of const, hopefully to fix some issues where they would not get properly defined in EnergyBalance.cu. *Project Builder* - Several updates to the project builder, including fixing the ground updating, changing some default values, adding option to set the light direction based on spherical coordinates, and some other features. Credit to Sean Banks for these updates. Co-authored by: Sean Banks <[email protected]>
1 parent 2717482 commit bcc9b89

File tree

473 files changed

+29909
-30517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

473 files changed

+29909
-30517
lines changed

.github/workflows/linux_GPU_selftests.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Build and Run on Linux EC2 GPU Instance
33
on:
44
push:
55
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
86

97
env:
108
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)

core/include/Context.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5360,6 +5360,19 @@ class Context{
53605360
*/
53615361
uint addTileObject(const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char* texturefile );
53625362

5363+
//! Add a patch that is subdivided into a regular grid of sub-patches (tiled texture)
5364+
/**
5365+
* \param[in] center 3D coordinates of box center
5366+
* \param[in] size Size of the box in the x- and y-directions
5367+
* \param[in] rotation Spherical rotation of tiled surface
5368+
* \param[in] subdiv Number of subdivisions in x- and y-directions
5369+
* \param[in] texturefile Name of image file for texture map
5370+
* \param[in] texture_repeat Number of times to repeat the texture image in the x- and y-directions
5371+
* \return Object ID of new tile object.
5372+
* \ingroup compoundobjects
5373+
*/
5374+
uint addTileObject(const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char *texturefile, const int2 &texture_repeat);
5375+
53635376
//! Add a spherical compound object to the Context
53645377
/**
53655378
* \param[in] Ndivs Number of tessellations in zenithal and azimuthal directions
@@ -5756,6 +5769,19 @@ class Context{
57565769
*/
57575770
std::vector<uint> addTile(const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char* texturefile );
57585771

5772+
//! Add a patch that is subdivided into a regular grid of sub-patches (tiled texture)
5773+
/**
5774+
* \param[in] center 3D coordinates of box center
5775+
* \param[in] size Size of the box in the x- and y-directions
5776+
* \param[in] rotation Spherical rotation of tiled surface
5777+
* \param[in] subdiv Number of subdivisions in x- and y-directions
5778+
* \param[in] texturefile Name of image file for texture map
5779+
* \param[in] texture_repeat Number of times to repeat the texture image in the x- and y-directions
5780+
* \return Vector of UUIDs for each sub-patch
5781+
* \ingroup compoundobjects
5782+
*/
5783+
std::vector<uint> addTile(const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char *texturefile, const int2 &texture_repeat);
5784+
57595785
//! Add a 3D tube compound object to the Context
57605786
/** A `tube' or `snake' compound object comprised of Triangle primitives
57615787
* \image html doc/images/Tube.png "Sample image of a Tube compound object." width=0.1cm

0 commit comments

Comments
 (0)