Search found 8 matches

by dutt
Sun Sep 26, 2010 5:01 am
Forum: Beginners Help
Topic: Render only called when on screen
Replies: 4
Views: 283

Lonesome Ducky wrote:Before rendering:

Code: Select all

this->setAutomaticCulling(irr::scene::EAC_FRUSTUM_BOX)
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.
Ah, great. That did it. Thanks for the help :)
by dutt
Sun Sep 26, 2010 3:32 am
Forum: Beginners Help
Topic: Render only called when on screen
Replies: 4
Views: 283

I put a cout in my FlyingObjectSceneNode::render() to see how the position changed over time, and it keeps printing out even when the node isn't visible.

Alright, thanks for the tip about the scene manager, I'll put it in soon. What algoritm, does the default one use?
by dutt
Sun Sep 26, 2010 3:15 am
Forum: Beginners Help
Topic: Render only called when on screen
Replies: 4
Views: 283

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.
by dutt
Fri Sep 24, 2010 2:23 am
Forum: Beginners Help
Topic: Unit selection box
Replies: 1
Views: 327

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 r...
by dutt
Wed Sep 22, 2010 2:58 am
Forum: Beginners Help
Topic: Associate object with node
Replies: 5
Views: 429

Then a ShipSceneNode it is, thanks for the help :)
by dutt
Wed Sep 22, 2010 2:17 am
Forum: Beginners Help
Topic: Associate object with node
Replies: 5
Views: 429

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?
by dutt
Tue Sep 21, 2010 11:28 pm
Forum: Beginners Help
Topic: Node selection
Replies: 2
Views: 272

Got it working now :) I went with a pickable/non-pickable enum.

Thanks alot for the help.
by dutt
Tue Sep 21, 2010 3:18 pm
Forum: Beginners Help
Topic: Node selection
Replies: 2
Views: 272

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