[Cycles] PointLight can’t be moved, always rendered at (0, 0, 0)

Open
#486 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Reproduce the issue with the attached RENDER.zip, then compare the generated Project.xml with the Cycles XML interpreter referenced in the report. Trace how the point-light position is serialized and consumed; done means moving the light changes its position in the rendered output, not only its color.

Written by the indexing model from the issue text.

Description

FreeCAD 1.0.2
Windows 11 Pro
Engine Cycles

I set up a scene with a point light. RENDER.zip
When I move the light in FreeCAD, I can see in the preview that its position and color both change correctly.
However, after running the render process, the light only reacts to color changes — its position does not update.

Image Image Image Image

I tried editing the Project.xml file to figure out what the correct XML structure should look like, but I couldn’t get it to work.
I also experimented with the Project.xml file and the Cycles XML interpreter .cpp code, but it’s a bit too complex for me.

I suspect the issue might be caused by incorrect XML file generation.
Could you please give me some hints on where the problem might be located? I’d be happy to try fixing it, but right now I’m completely lost.

Image Image
Dominant language
Python
Stars
240
Forks
47
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FreeCAD/FreeCAD-render

All issues in FreeCAD/FreeCAD-render

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.