A convincing photorealistic chocolate bar CGI render depends on more than a detailed texture. The molded proportions, bevel widths, surface imperfections, roughness response and reflected studio shapes must all describe the same material at a believable scale. If one layer is inconsistent, chocolate can quickly resemble plastic, wax or rough stone.
This workflow covers the complete process in Houdini: analyzing real chocolate, building reusable segmented geometry, controlling procedural imperfections with attributes, developing a physically plausible material, and lighting the bar for confectionery advertising. It also explains how to divide detail between geometry and shading, separate asset-level decisions from shot-specific look development, and diagnose the common problems that make rendered chocolate look artificial.
Start With the Shot and Real Chocolate Reference
Before modeling, define the intended image. A macro hero shot may reveal bloom, softened embossing, faint scratches and handling marks. A wider packshot will depend more heavily on accurate proportions, clean segment spacing and controlled edge highlights. Camera distance and output resolution determine which details need geometry, which can remain in the shader, and which will not be visible at all.
Gather references of the relevant chocolate type under several lighting conditions. A single polished advertising image may conceal important evidence through retouching, contrast or reflections. When possible, compare top, side and three-quarter views and record four categories of information:
- Primary form: overall length, width, thickness, silhouette and segment layout.
- Secondary form: bevels, grooves, borders, logos, lettering and molded relief.
- Surface condition: cooling marks, bloom, scuffs, fingerprints, dents, crumbs and small tonal changes.
- Optical behavior: highlight width, roughness, reflection breakup and the tonal relationship between top faces, side walls and recesses.
Distinguish physical surface evidence from lighting. A pale patch might be fat or sugar bloom, but it could also be a softbox reflection. Check whether the feature persists across multiple angles before deciding to place it in color, roughness, displacement or the lighting setup.
Analyze detail by scale rather than treating the surface as one texture problem. This scale-first approach is also central to other forms of photorealistic food CGI, where large forms, material breakup and microstructure have different production requirements.
Separate reusable asset decisions from shot decisions
The reusable chocolate asset should contain the product’s proportions, segmentation, molded design, bevel logic, region masks and general material response. Camera focal length, depth of field, reflection cards, key-light direction, exposure and final contrast belong to the shot.
This separation prevents a lighting fix from being baked into the shader or model. It also lets one procedural asset support a pristine packshot, a close hero image or a composition with broken and rearranged pieces.
Build the Molded Chocolate Bar at Real-World Scale
Start with a clean blockout of the entire bar. Set its length, width and thickness at a consistent real-world scale before adding logos or surface noise. Scale affects bevel width, displacement amplitude, depth of field and the apparent size of every imperfection.
Build the segment rhythm procedurally where practical. Expose controls for the number of pieces, spacing, border width, groove depth and overall dimensions so design changes do not require reconstructing the model. Primitive-based networks, copied segment modules or a controlled polygonal base can all work; the important requirement is stable, editable topology.
Model features that affect silhouette and shadow
Segment divisions, deep snap lines and prominent branding should exist as geometry when the final camera can resolve them. These features alter shadows and reflections in ways a color or normal map cannot reproduce reliably.
Logos and lettering can begin as curves or text geometry used to create raised forms or cutters. Integrate them with softened transitions rather than perfectly sharp extrusions. Molded chocolate generally benefits from slight rounding around embossed details; excessively crisp relief tends to resemble machined plastic.
Judge branding from the final camera. Fine lettering that appears clear in an orthographic modeling view may disappear after antialiasing and depth of field, while overly deep embossing can dominate the product.
Use deliberate, scale-dependent bevels
A mathematically sharp edge provides no physical width for a highlight. Add bevels to the outer silhouette, segment boundaries and major relief, but size them according to each feature. A wide outer bevel can make the bar look inflated or partially melted; one that is too narrow may still render as a razor edge.
Test the bevels with a neutral material and one large area light. This makes it easier to see whether each transition creates a stable highlight without color and procedural texture obscuring the result.
Keep the main bevel structure controlled. Slight variation in corner continuity or edge softness can reduce sterility, but randomizing every border weakens the manufactured design. Chocolate should still look molded, not eroded.
Choose connected or separate segments according to the shot
A connected mesh is efficient for an intact bar and helps maintain consistent spacing. Separate pieces are more flexible when the chocolate must break, bend, scatter or reveal an interior surface. They also provide more control over contact shadows and tiny gaps in close-up compositions.
Separate geometry introduces additional risks: intersections, inconsistent bevels and implausibly even spacing. Keep the original molded design as a reusable source, then create breakage and arrangement as shot-level variations.
Create Procedural Chocolate Surface Detail With Attributes
Real chocolate is neither perfectly smooth nor uniformly noisy. Its surface may show broad cooling variation, subtle waviness, softened exposed edges and a limited number of handling defects. Build these effects in layers while protecting the molded design.
Work from broad variation to microdetail
- Broad molding variation: introduce very low-amplitude changes across large faces so reflections do not travel over mathematically perfect planes.
- Medium-scale waviness: add restrained deformation that breaks up broad highlights without distorting the silhouette.
- Edge softening: use curvature or distance masks to vary exposed bevels while keeping recesses controlled.
- Localized defects: place a small number of soft dents, scuffs or contact marks in plausible areas.
- Microdetail: reserve fine pores and tiny irregularities for bump or shader-level displacement unless the camera can resolve their effect on the silhouette.
In Houdini, these layers can be built with Attribute Noise, VOP networks, Attribute Wrangles, painted masks or scattered control points. The specific node is less important than the mask governing where each operation is allowed to act.
A global noise field applied directly to P usually gives poor results. It treats flat faces, logos, grooves and outer edges as equivalent regions, causing branding to warp and molded details to lose definition. Store the clean position in a separate attribute or preserve an undeformed branch so the effect remains reversible.
Build stable region masks
Create named point, vertex or primitive attributes early in the network. Useful classifications include:
- Top faces: suitable for restrained cooling variation and broad roughness breakup.
- Side walls: useful for a slightly different surface response or mold-contact treatment.
- Recesses: areas where displacement can be reduced to preserve segment definition.
- Outer edges: suitable for controlled softening and handling variation.
- Branding: a protection mask for lettering and decorative relief.
- Defect zones: art-directed regions for dents, bloom or scuffs.
Combine orientation, curvature, height, proximity and hand-authored masks instead of relying on one noise pattern. For example, a deformation mask might favor upward-facing surfaces, fade near logos and segment boundaries, and then be multiplied by a sparse defect mask.
Displacing along the surface normal is usually safer than offsetting points independently in world axes because it better preserves the intended dimensions and groove alignment. Even then, inspect corners and narrow relief carefully; normal displacement can still create pinching or self-intersections.
Avoid correlated procedural patterns
Do not drive color, roughness and displacement with the same unmodified noise. When every dark patch aligns with a dent and every dent has the same roughness change, the construction becomes obvious.
Related channels should share physical logic without being identical. A scuff may affect color and roughness but not meaningful displacement. A shallow dent should alter form and reflection direction, while its color may remain nearly unchanged. Use different seeds, scales and remapping curves for each layer, and expose the seed so asset variations remain reproducible.
Decide between geometry, displacement and bump
| Detail | Preferred method | Decision criterion |
|---|---|---|
| Silhouette, segments and molded mass | Base geometry | Must create stable contours, shadows and edge highlights. |
| Deep grooves, strong relief and pronounced dents | Geometry or controlled displacement | Needs measurable depth under grazing light. |
| Fine waviness and shallow surface variation | Displacement or bump | Choice depends on camera distance and silhouette visibility. |
| Roughness breakup, faint scuffs and subtle bloom | Shader masks | Primarily changes reflected light and tone. |
Excessive displacement makes chocolate look melted, inflated or stone-like. Using only bump has the opposite problem: close silhouette edges remain unnaturally perfect. Test the split at delivery resolution rather than assuming that more geometry always produces more realism.
Develop a Physically Plausible Chocolate Material
A realistic Houdini chocolate material is built around the interaction of base color, roughness, dielectric reflection and surface relief. Chocolate should not be treated as a uniformly brown diffuse object, but neither should it receive a perfectly clean, mirror-like coating.
Control color without crushing the form
Choose a restrained color range from reference to the actual chocolate type. Dark chocolate may contain deep warm browns and cooler shadow relationships, but pushing the base color toward pure black removes form separation. Highly saturated brown can make the product look synthetic.
Keep large molded faces comparatively stable. Use soft masks for small value or hue shifts around handled areas, bloom and exposed edges. A color patch with no corresponding change in reflection may look painted on, so coordinate visible surface conditions across the appropriate channels.
Shape reflections primarily with roughness and lighting
Broad faces can produce soft, coherent highlights, while rounded edges often catch narrower accents. If roughness is too low and uniform, the bar resembles coated plastic. If it is too high, chocolate becomes chalky and loses the dense, slightly oily response that helps define its form.
Use physically plausible dielectric reflection controls for the selected shader rather than compensating with arbitrary specular intensity. Let roughness, surface normals and reflected studio shapes determine the character of the highlight. Low-frequency roughness variation is generally more useful than high-frequency noise spread evenly across the entire asset.
Bind geometry masks into the material as named attributes or USD primvars. In a Solaris workflow, confirm that these attributes survive import and can be read by the MaterialX network. Expose practical controls for base color range, roughness range, imperfection strength, bloom influence and optional displacement.
Use subsurface effects selectively
A solid chocolate bar often requires little visible subsurface scattering in a conventional studio setup. Excessive scattering can make it resemble wax, especially under warm lights. A restrained contribution may help on thin broken edges, shavings or strongly backlit fragments, but it should be judged against reference.
This is a different balance from materials with more obvious transmission, such as the skin and flesh treatments used in fruit CGI for advertising. Do not add translucency simply because chocolate is food; use it only when the geometry and lighting provide a credible reason for the effect to appear.
Light the Bar Like a Confectionery Product
Studio lighting should describe the molded form and material while preserving rich chocolate values. The aim is not to illuminate every area equally. It is to design readable gradients, edge highlights and reflections around the product’s most important features.
Start with one broad key source
Place a large area light or softbox so it creates a gradual transition across the main planes. Side or three-quarter key positions often reveal segment depth more effectively than frontal illumination. Move the source while watching how its reflection travels over the top faces, outer bevel and embossed details.
Source size changes both shadow softness and the visible reflection. If a highlight is small and harsh, enlarging or repositioning the light may produce a better result than reducing the shader’s specular response.
Add restrained fill and separation
Use a fill source or bounce card to retain information in grooves and shadow-facing sides. The fill should not equalize the image; directional contrast is what allows shallow molded forms to remain legible.
A rim or separation light can distinguish dark chocolate from a similar background, but avoid a narrow white outline around the entire silhouette. A broad source catching one important edge usually feels more natural than an intense rim washing over every contour.
Design reflections with cards
Reflection cards provide precise control over highlight placement without requiring every bright shape to act as a direct light. Use them to create a clean transition along a long outer bevel, a molded segment or an important side wall.
Keep bright reflections away from critical branding unless they improve its legibility. Because chocolate is often moderately rough, cards should remain coherent while showing some breakup from the surface detail. No visible reflection can make the material appear flat; a perfectly sharp reflection across every face makes it look varnished.
Set the Camera and Render for the Final Use
Lock the camera angle, focal length, framing and approximate depth of field before finalizing microdetail. A macro view may justify visible roughness transitions and fine displacement. A wider composition may need little more than a strong silhouette, clear segmentation and readable branding.
Be cautious with shallow depth of field. It can add scale and visual focus, but it can also blur the molded details needed to identify the product. Keep the hero area—often the front segment, logo or broken edge—within a useful focus range.
Inspect the render at its intended delivery size. Details that look subtle in a high-resolution viewport may alias, disappear or become disproportionately strong after downsampling. Check bevel highlights, logo legibility and procedural repetition at the actual output resolution.
Validate the asset with diagnostic passes
- Clay pass: reveals silhouette, proportions, bevel quality, intersections and excessive geometric noise.
- Neutral-lighting pass: shows whether the molded forms produce useful gradients and edge highlights.
- Final-material pass: exposes roughness balance, color variation, reflection breakup and any excessive subsurface contribution.
If the bar fails in the clay pass, fix the geometry. If the clay form is convincing but the final result looks synthetic, investigate the material and reflections before adding more displacement.
Diagnose Common Chocolate CGI Failures
| Visible problem | Likely cause | Production response |
|---|---|---|
| Chocolate looks like painted plastic | Roughness is too low or uniform, and reflections are broad and mechanically clean. | Add restrained roughness breakup, review light and card shapes, and confirm that the base color is not overly saturated. |
| Surface looks melted or inflated | Displacement amplitude is too large or broad noise affects every region equally. | Reduce displacement, protect logos and grooves with masks, and reserve strong deformation for deliberate defects. |
| Geometry feels sterile | All segments, edges and cavities are mathematically identical. | Preserve the product design while adding low-amplitude variation to selected transitions, roughness and exposed regions. |
| Detail looks procedural | One repeated noise pattern drives several channels or has an obvious scale and orientation. | Separate noise fields, vary their scale and seed, and restrict them with region-specific masks. |
| Branding is difficult to read | Relief is too shallow, reflections cross the lettering, or depth of field removes definition. | Check the embossed profile in clay, reshape the reflection and revise focus before deepening the logo. |
| The bar appears flat | Lighting is frontal, fill is too strong, or the background has a similar value. | Restore a side-to-side gradient, reduce frontal fill and place a controlled edge reflection or separation source. |
| Highlights are clipped | A source is too intense or too small relative to the shot. | Adjust source size, position and exposure before weakening the material globally. |
Run a Production-Ready Delivery Check
Before delivery, review the Houdini network for unmasked deformation and verify that material attributes survive the complete geometry, USD and rendering path. Pay particular attention to branding masks, displacement exclusions and fine roughness primvars.
Confirm that displacement bounds and tessellation are sufficient for the final camera without producing cracks or unstable silhouettes. Increase shading and sampling quality only where the material or lighting requires it; fine roughness and depth of field can need more attention than a clean clay preview suggests.
If the asset will be animated, check procedural stability across frames. Detail seeds, depth of field, motion blur and any deforming geometry should remain consistent rather than being approved from a single still.
Finally, document which controls belong to the reusable chocolate asset and which belong to the shot. Proportions, molded forms, region masks and baseline material behavior should remain portable. Camera, reflection design, exposure, visible defects and final displacement balance can then be adjusted for each advertising composition without compromising the underlying asset.