Search the Community
Showing results for tags 'node'.
-
WorldClutter and WorldCluster node creation and deletion callback
david.broto posted a topic in Feedback for UNIGINE team
Related to this post https://developer.unigine.com/forum/topic/1068-acessing-individual-clutter-generated-nodes/ it would be awesome to have some callback system at WorldClutter and WorldCluster classes at every creation/deletion of dynamic nodes (or batch of nodes). This could make these classes more powerful and dynamic. Thanks!- 3 replies
-
- worldclutter
- callback
-
(and 1 more)
Tagged with:
-
Hello Folks I'm trying to get dedicated deflectors to my nodes, which should intercept with my global particle system. To Explain you: When i have a House preset, i can create a deflector in my particle system, even set it to word coordinates instead of local - all fine. but i need a more accurate way, an automated. We will have player build castles, workhouses and living-houses. How can i get a deflector into their node which we spawn when the building is finished by a player, which then interacts with the global, always present rain particle system. i would love to achieve that with deflectors, as real time intersection <<physic>> is a no-go performance wise. Any ideas?
-
i try to use WidgetSpriteNode class. i want to draw a node in WidgetSpriteNode. but the node appear at WidgetSpriteNode with worldscene. i wrote this script. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // my script m_lbSpriteNode = new WidgetSpriteNode(gui, 430, 600); Node node = node_load("mesh.node"); m_lbSpriteNode.setProjection(ortho(-10, 10, 50, -1, 0.1f, 100.0f)); m_lbSpriteNode.setModelview(lookAt(vec3(0,-1,0), vec3(0,1,0), vec3(0,0,1))); m_lbSpriteNode.setNode(node); // Transparent background viewport m_lbSpriteNode.setBlendFunc(GUI_BLEND_SRC_ALPHA,GUI_BLEND_ONE_MINUS_SRC_ALPHA); engine.render.setAmbientColor(vec4(1, 1, 1, 1)); // remove engine.editor.removeNode(node); or node_remove(node); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// but i was failed remove from worldscene. can i remove the node from worldscene for only use in WidgetSpriteNode ?
- 5 replies
-
- [WidgetSpriteNode
- remove
-
(and 2 more)
Tagged with: