View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002642||The Dark Mod||Coding||public||20.02.2011 18:04||22.11.2020 12:49|
|Product Version||TDM 1.04|
|Summary||0002642: Add multiple particles to func_emitter|
|Description||We have StaticMulti to present multiple func statics as one model to the rendered, but we lack a way to do the same for particles. |
Particle emitters cannot be "combined" into a rendermodel, but we should at least be able to store all models and their offset in one entity, then present them all to the renderer, instead of having to have multiple entities with one particle for each.
This would help in cases like fog (multiple floating fog particles), leaves or foliage (hundreds of trees with particle leaves, or flower patches), or f.i. a grand city view with dozend of chimney smoke stacks.
|Tags||No tags attached.|
A first stab of this has been implemented with revision 0004618. Multiple particle models can be set with "modelSUFFIX" like "model_2" and positioned with the corrosponding offset spawnarg (relative to entity origin).
LOD changes only happen for the first model, and there are some issues with Save()/Restore() which need sorting out. But otherwise it works.
The code has been restructured to not use so much memory if there are no additional models (keep only 1 instead of 3 lists, only put additional models into it, not the base model etc.). Also each model has a flags field (so we later can selectively hide them), and the Save/Restore code is much more complete now.
The code can now also distinguish between "is the same as the original model" (which should get full LOD treatment) and "is not the same", which should only pay attention to the hide_distance.
Also two script events have been added:
* emitterAddModels(modelName, modeloffset)
Things to do:
* script events for removeModel() and getModelOffset(), getModelAtOffset()?
* LOD thinking for the individual involved models
|20.02.2011 18:04||tels||New Issue|
|20.02.2011 18:04||tels||Status||new => assigned|
|20.02.2011 18:04||tels||Assigned To||=> tels|
|20.02.2011 18:36||tels||Note Added: 0003618|
|20.02.2011 18:36||tels||Target Version||=> TDM 1.05|
|23.02.2011 17:16||tels||Note Added: 0003646|
|23.02.2011 17:18||tels||Relationship added||parent of 0002576|
|23.02.2011 17:19||tels||Relationship added||parent of 0002575|
|23.02.2011 17:19||tels||Description Updated||View Revisions|
|14.03.2011 11:09||greebo||Target Version||TDM 1.05 =>|
|15.05.2013 15:28||tels||Assigned To||tels =>|
|20.11.2020 16:11||nbohr1more||Assigned To||=> stgatilov|
|22.11.2020 12:49||nbohr1more||Relationship added||child of 0005138|