[fixed]Save Fog Variables into .irr

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

[fixed]Save Fog Variables into .irr

Post by Virion »

i find out that fog variables do not get saved into .irr when using saveScene(). how can I add those data into my scene file when saving scene?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess that this needs to be added in the serializeAttributes method. Moving to bug report so we can fix it.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

and also i cant find any function that returns the fog attributes.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

In irrb I recently added exporting Blender mist (fog). After running across this post, I modified CSceneManager and CNullDriver (+ getFog()) to properly de/serialize the fog attributes.

I created a patch against 1.6 but now I'm wondering if you would prefer to have it against the trunk?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

At this point there shouldn't be too much difference for the two. So just submit it, it will be commited to trunk, though.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

k, thanks.

Tracker Bug & Patch: 2889239
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Very nice patch, thanks for that. It's commited for SVN/trunk, i.e. will be part of Irrlicht 1.7
Post Reply