Ah, great. That did it. Thanks for the helpLonesome Ducky wrote:Before rendering:That makes the object be culled by the camera's view and its bounding box. I'm not sure if Irrlicht automatically culls custom scene nodes, but this definitely works.Code: Select all
this->setAutomaticCulling(irr::scene::EAC_FRUSTUM_BOX)
Search found 8 matches
- Sun Sep 26, 2010 5:01 am
- Forum: Beginners Help
- Topic: Render only called when on screen
- Replies: 4
- Views: 534
- Sun Sep 26, 2010 3:32 am
- Forum: Beginners Help
- Topic: Render only called when on screen
- Replies: 4
- Views: 534
- Sun Sep 26, 2010 3:15 am
- Forum: Beginners Help
- Topic: Render only called when on screen
- Replies: 4
- Views: 534
Render only called when on screen
I recently realised that my render() on my scene nodes are being called even when the objects aren't on screen, is there a standard way in the engine of culling those that aren't visible? I thought it was done automatically, was kind of surprised to see them called.
- Fri Sep 24, 2010 2:23 am
- Forum: Beginners Help
- Topic: Unit selection box
- Replies: 1
- Views: 440
Unit selection box
Does irrlicht support selection by 2d-box somehow? I'm making a very simple space rts and want support the usual kind of "drag out a box and all units in the box get selected".
Otherwise, what's the simplest way of doing this? I'm making a 3d-game, very simple stripped down homeworld-ish rts.
Otherwise, what's the simplest way of doing this? I'm making a 3d-game, very simple stripped down homeworld-ish rts.
- Wed Sep 22, 2010 2:58 am
- Forum: Beginners Help
- Topic: Associate object with node
- Replies: 5
- Views: 889
- Wed Sep 22, 2010 2:17 am
- Forum: Beginners Help
- Topic: Associate object with node
- Replies: 5
- Views: 889
Associate object with node
What's the standard/accepted way of associating an object(say a ship) with a scene node? My node selection by mouse is working now, but I'm not sure how to go from node to object.
Do I create a ShipSceneNode with doesn't change SceneNode, just connect it with my ship-object?
Do I create a ShipSceneNode with doesn't change SceneNode, just connect it with my ship-object?
- Tue Sep 21, 2010 11:28 pm
- Forum: Beginners Help
- Topic: Node selection
- Replies: 2
- Views: 377
- Tue Sep 21, 2010 3:18 pm
- Forum: Beginners Help
- Topic: Node selection
- Replies: 2
- Views: 377
Node selection
I'm trying to select a scene node using mouse. In theory it's fairly simple, a line from where the mouse pointer going into the screen, see what node it hits and get that. The problem is that I always get the camera node regardless of where I click.
I thought about moving the starting point a short ...
I thought about moving the starting point a short ...