marina.kovalevskaya Posted August 27, 2014 Share Posted August 27, 2014 At the same time I need to be only his Transform (Position, Rotetion, Scale) Link to comment
silent Posted August 27, 2014 Share Posted August 27, 2014 Node with no material assigned to the surfaces can do the trick: 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
marina.kovalevskaya Posted August 27, 2014 Author Share Posted August 27, 2014 How to do it by means of UnigineScript? Link to comment
silent Posted August 27, 2014 Share Posted August 27, 2014 You can pass empty material string to the setMaterial() function. 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
marina.kovalevskaya Posted August 27, 2014 Author Share Posted August 27, 2014 After operation posObject.setMaterial("", "*"); error Object::setMaterial(): can't find "" material Link to comment
silent Posted August 27, 2014 Share Posted August 27, 2014 Hi, Yes, indeed there is an error. Sorry for that. There are two more ways how to achieve this result: You can create special material, and disable all rendering passes (Material -> States -> set Skip to all Passes); After that you can assign it to the all surfaces of your node. You also can use NodeDummy object, which can save rotation, scale and position and update its transformation from code. Thanks! 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
marina.kovalevskaya Posted August 28, 2014 Author Share Posted August 28, 2014 Whether it is possible to remove the entire component Surfaces with Node? Link to comment
silent Posted August 28, 2014 Share Posted August 28, 2014 You can disable surfaces of the Node by deselecting Enabled checkbox in Surface tab and they will not be rendered. If you want node without any surfaces at all, please use NodeDummy instead. 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
marina.kovalevskaya Posted August 28, 2014 Author Share Posted August 28, 2014 Thanks! I did this metod: You can create special material, and disable all rendering passes (Material -> States -> set Skip to all Passes); After that you can assign it to the all surfaces of your node.I assign material with function setMaterial() Link to comment
marina.kovalevskaya Posted September 1, 2014 Author Share Posted September 1, 2014 Hello! How disable all surfaces on node, using function setEnabled( int mode, int surfase) in class Object. More precisely, what use instead parametr "int surfase"? Thanks! Link to comment
silent Posted September 1, 2014 Share Posted September 1, 2014 There is no function to disable all surfaces at once. You should loop through the all surfaces of node and disable them via setEnabled() function. For example: ObjectMeshSkinned object = new ObjectMeshSkinned("samples/animation/meshes/agent.smesh"); forloop(int surface = 0; object.getNumSurfaces()) { object.setEnabled(0, surface); } Thanks! 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
marina.kovalevskaya Posted September 1, 2014 Author Share Posted September 1, 2014 Thanks! Link to comment
Recommended Posts