Request: manage which passes are drawn by smgr->drawall
Re: Request: manage which passes are drawn by smgr->drawall
I think, if you just want to render one category, then specifying the category is easiest. But it may make it harder to allow a default of render all. Also, it may interfere with the current variable of currentRenderPass (I think).
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Re: Request: manage which passes are drawn by smgr->drawall
What if we added a drawAllExclusive function for specifying which passes not to draw. And the behavior of drawAll would be to specify which passes should be drawn inclusively?
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Re: Request: manage which passes are drawn by smgr->drawall
https://sourceforge.net/tracker/?func=d ... tid=540678
Passes are now inclusive, and I added a boolean to drawAll to provide support for exclusive passes as well. Any more suggestions for improvement?
Passes are now inclusive, and I added a boolean to drawAll to provide support for exclusive passes as well. Any more suggestions for improvement?
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Re: Request: manage which passes are drawn by smgr->drawall
Well, since you asked
Mainly a style point, since the enum values are single bits, you wouldn't need to write == ENUM_XX, it's enough to test for zero or non-zero. But this is going far in the nitpicking, I'd like to see the current patch merged, let's wait for hybrid to do a review.
Mainly a style point, since the enum values are single bits, you wouldn't need to write == ENUM_XX, it's enough to test for zero or non-zero. But this is going far in the nitpicking, I'd like to see the current patch merged, let's wait for hybrid to do a review.
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Re: Request: manage which passes are drawn by smgr->drawall
Could one of the devs review this?
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Request: manage which passes are drawn by smgr->drawall
I don't understand why the additional bool parameter is used. If you want to render everything except skybox, call drawAll(~ESNRP_SKYBOX)
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Re: Request: manage which passes are drawn by smgr->drawall
Oh, I didn't know about that bit flag trick. I'll update the patch right now.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Re: Request: manage which passes are drawn by smgr->drawall
The update is in the tracker. I tested everything again as well.
https://sourceforge.net/tracker/?func=d ... tid=540678
https://sourceforge.net/tracker/?func=d ... tid=540678
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Re: Request: manage which passes are drawn by smgr->drawall
The help text is not clear on which way it is in the latest patch?
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Re: Request: manage which passes are drawn by smgr->drawall
What do you mean? It's the same as the last patch, except that the extra parameter was removed. You still specify which passes you WANT to draw not the ones you DON'T want to draw, just like in the second patch.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Re: Request: manage which passes are drawn by smgr->drawall
The help text says:
Can you really say that only by reading that, you know which way it is?Allows you to disable/enable specific render passes by passing bitwise OR combinations of E_SCENE_NODE_RENDER_PASS values
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Re: Request: manage which passes are drawn by smgr->drawall
Oh, the documentation. I can update that.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Request: manage which passes are drawn by smgr->drawall
Ok, I've reviewed the patch and its context. One thing that I saw is that the lightmanager will be called for each render pass, even though it's not chosen. Not sure if we should do something about this.
Re: Request: manage which passes are drawn by smgr->drawall
Maybe to pass to the lighting manager the current render pass so it may react accordingly? although this would break the current lighting manager's interface, or perhaps, adding a internal variable to the lighting manager interface so it can be checked at any moment which is the current render pass.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Request: manage which passes are drawn by smgr->drawall
Yeah, the thing is that this callback (the lightmanager) is called currently on every pass, even if no nodes exists. So at least for now the behavior after the patch would be just as before. Question is if it is really intended this way, or if we should improve this further. The light manager gets the render pass that it was called on. However, it does not know which or how many nodes for this pass exist. But I guess this boils down to a question regarding the light manager, and shouldn't be handled at the drawAll level.