Jump to content

[SOLVED] How disable renderer node in scene?


photo

Recommended Posts

Hi,

 

Yes, indeed there is an error. Sorry for that.

 

There are two more ways how to achieve this result:

  1. 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.
  2. 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:

Link to comment

Thanks!

I did this metod:

  1. 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.

assign material with function  setMaterial()

Link to comment

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

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:

Link to comment
×
×
  • Create New...