Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(273)

Issue 6446114: Particle storage in cycles, bugfix #32184 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by lukas.toenne1
Modified:
11 years, 8 months ago
Reviewers:
brechtvl, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

This is a bit of redesign made necessary to fix this bug http://projects.blender.org/tracker/index.php?func=detail&aid=32184&group_id=9&atid=498 The particle data used by the Particle Info node was stored in cycles as a list in each object. This is a problem when the particle emitter mesh is hidden: Objects in cycles are only intended as instances of renderable meshes, so when hiding the emitter mesh the particle data doesn't get stored either. Also the particle data can potentially be copied to multiple instances of the same object, which is a waste of texture space. The solution in this patch is to make a completely separate list of particle systems in the Cycles scene data. This way the particle data can be generated even when the emitter object itself is not visible.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -96 lines) Patch
intern/cycles/blender/blender_object.cpp View 2 chunks +1 line, -8 lines 0 comments Download
intern/cycles/blender/blender_particles.cpp View 7 chunks +82 lines, -37 lines 0 comments Download
intern/cycles/blender/blender_sync.h View 3 chunks +4 lines, -2 lines 0 comments Download
intern/cycles/blender/blender_sync.cpp View 4 chunks +9 lines, -0 lines 0 comments Download
intern/cycles/blender/blender_util.h View 1 chunk +11 lines, -0 lines 0 comments Download
intern/cycles/render/CMakeLists.txt View 2 chunks +2 lines, -0 lines 0 comments Download
intern/cycles/render/object.h View 3 chunks +0 lines, -8 lines 0 comments Download
intern/cycles/render/object.cpp View 3 chunks +0 lines, -40 lines 0 comments Download
intern/cycles/render/particles.h View 1 chunk +69 lines, -0 lines 0 comments Download
intern/cycles/render/particles.cpp View 1 chunk +118 lines, -0 lines 0 comments Download
intern/cycles/render/scene.h View 3 chunks +4 lines, -0 lines 0 comments Download
intern/cycles/render/scene.cpp View 5 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 2
lukas.toenne1
11 years, 9 months ago (2012-08-10 13:13:04 UTC) #1
brechtvl
11 years, 8 months ago (2012-08-31 16:27:06 UTC) #2
Sorry for late review, but LGTM, please commit.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b