The render() function

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
CyberP1708
Posts: 10
Joined: Sat Feb 19, 2005 6:37 pm

The render() function

Post by CyberP1708 »

Instead of using the drawAll() function of the scenemanager, I tried to use the render() function for each node but it is not working very well (it is as if the camera was not working)
William Finlayson
Posts: 61
Joined: Mon Oct 25, 2004 12:11 am

Post by William Finlayson »

Why did you try this?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

You don't need to reinvent the wheel :).
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
CyberP1708
Posts: 10
Joined: Sat Feb 19, 2005 6:37 pm

Post by CyberP1708 »

It was in fact because I have differents scenes to show and it would be easier to render only what corresponds to the current scene instead of hiding everything that we don't need in this case
But I'll do the second one
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Hidden nodes doesn't get rendered afaik.
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
kaeles-notlogged

Post by kaeles-notlogged »

the easiest way to do that, is to just make a new class that is the "state or scene"

make the class initialize all the stuff and draw when ->run()
then delete it all when it changes to a diff scene
Post Reply