Mesh Vertices only update when in cone of last created spotlight #38379
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#38379
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 7 64-bit AMD Radeon HD 7750
Blender Version
2.69.7
fbc7ab3
(built from scratch)Worked: 2.69 Release
Short description of error
Manually updating vertices in Python (i.e. moving them, changing their UVs, etc) only works when physically placed in a spotlight, if a spotlight exists in the scene.
Exact steps for others to reproduce the error
Just press P in the example blend file to play the game. Notice the cube's vertices just rise one frame unless you place the cube at least to the point at which it intersects the spotlight's cone. Note that it has to be whichever spotlight was created last (i.e. duplicate the existing one, and the cube will no longer rise in the first spotlight. It now will only do so in the second).
Once the problematic object intersects the light, it's "good", so to speak from that point, regardless of whether it continues in the light or not.
This phenomenon doesn't appear with other kinds of lights, or with spotlights that have no shadow buffer.
VertTest.blend
Changed status to: 'Open'
Added subscriber: @solarlune
This bug also shows up in the latest build of Blender from the BuildBot, so it's not my personal build that has an issue, either.
Added subscriber: @Ace_Dragon
Hi, the following attachment (which is an edited version of someone else's solution for Ocean Waves), works just fine in a VC build from the buildbot done at hash
c0a4089
water_surface_1.1.blend
This utilizes manual movement of vertices through Python like what your report suggests is needed, but I don't see any bug here, you should probably download a buildbot build and double-check to make sure it's not an error on your end (like in your compiling process or settings), perhaps it's only not working in certain cases then?
Sorry, I didn't notice that you already tried a buildbot build, but the file I had that I tested still works okay.
I even quick tested with a spotlamp in the scene to see if that leads to it exhibiting the bug, but it's still bug-free for this case.
Dang it, I think I attached the wrong file, this was the one I was talking about
Wave_Script3.blend
Sorry for making a mess here, but there's no edit button.
(Hmm, it would appear I commented on the file, so I'll comment again here.)
It's fine; thanks for the blend file. It would appear that old meshes work fine, but new meshes have some sort of issue. That blend file works fine for me, until you:
At that point, the new plane can be seen to stop updating.
In the build I'm using.
Either this bug is extremely recent or it's simply tough to pin down why it occurs.
Hmm, I see. Did you try a recent build bot version with my example file?
EDIT: The buildbot version I downloaded was from today, and I compiled my own build yesterday, it would seem.
Added subscriber: @rykounanba
After some playing around I noticed you can work around it when you turn off the shadows on your glsl shaders or on the spotlight itself.
@rykounanba - I mentioned turning off shadows fixes the issue in the bug report, but it's good to know that turning off shadows on the shader does it too. So it would appear that it has something to do with the shadows in particular for spot lights.
after some more research I found out that because the meshModified within your mesh gets set to false it stops rendering. When you make sure it does not set the meshModified it will keep on rendering, and you can see it did not actually stop to update the object. How this relates to the shadows cast by the spotlight is still a mystery to me tough.
I suspect it might be because the mesh deformer is not getting set. That seems to push the function trough a different render loop which does not update the Vertex Array but actually just renders the Vertex Array. When the deformer doesn't get set it doesn't list the display array as modified. When it does state it has been modified it actually forces a different loop that takes care of updating the vertex array and thus rendering the objects as suspected.
Bumping (?) for more info. I just tried this in the recent Release Candidate for Blender 2.7, and the bug is still there.
Added subscriber: @Moguri
I did a build of 2.69, and it doesn't work there. Is there a typo in your summary?
That's odd, I just downloaded a build from the buildbot (64-bit Windows), and the bug's still there.
When you start the game, if the cube is outside of the spotlight, all of its vertices move up one unit. If it's in the spotlight, the vertices continually move up, as the script is executing every frame.
The hash of the buildbot build is
01645cc
, and it's from today, the 24th of February.So the bug is that the vertices visually don't update if there's a spotlight and the object isn't in its cone. You can print out the vertices' Z position and see the values rise, despite not updating visually in the game.
EDIT: Maybe Rykounanba can say what build / version of Blender he's using?
I can see the bug, I was just pointing out that it also exists in 2.69, so 2.69 isn't a working version.
Ah, I see. I misunderstood you. It's odd, though; I must have tested it out in Blender 2.69 when I said that it worked then. However, when I tried it myself just now, the bug is still there in 2.69 release, as you mentioned. Very odd.
This issue was referenced by
2055e968df
Changed status from 'Open' to: 'Resolved'
Closed by commit
2055e968df
.