ivan.cuevas Posted December 4, 2017 Share Posted December 4, 2017 Hi, In new editor I can't find the way to specify per instance parameters for properties and materials. In the .node file, these parameters were stored as follows: <node type="NodeLayer" id="1877567429" handled="0" name="layer_building_arrecife" property="cgs_building_arrecife"> <layer>guid://3d26f5abfa9536fdfda15d25830dcc1213be9dfb</layer> <property> <parameter name="floors">5</parameter> </property> <transform>1 0 0 0.0 0 1 0 0.0 0 0 1 0.0 0 0 0 1.0</transform> </node> Can you tell me how can I perform this operation in user interface? Thanks. Link to comment
silent Posted December 5, 2017 Share Posted December 5, 2017 Hi Ivan, There is no more per instance materials parameters available (you have to explicitly create or inherit new material to be able to modify its settings). We removed them due to performance issues. Note that you still can modify material's parameters via code as you done this before. Properties per instance will be available within next SDK update (by the end of this year). How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
nitrooo Posted September 13, 2022 Share Posted September 13, 2022 While researching Unigine I couldn't find any info regarding "per instance properties" equivalent of Unity's MaterialPropertyBlock. Is such feature supported? Can multiple objects with the same material, but different properties, be rendered in one draw call? If materials have to be created or inherited, doesn't that mean that to draw 1000 objects with the same material, but different color, is to generate 1000 draw calls? I am thinking about migration from Unity and such feature is critical. Link to comment
silent Posted September 14, 2022 Share Posted September 14, 2022 nitrooo At this moment such functionality is not implemented, I'm afraid. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts