Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VDrift Graphical Upgrades
03-14-2010, 04:44 PM,
#12
 
NaN Wrote:I'd like to have soft particles(spherical billboard), multiple lights and HDR rendering(no I don't mean bloom). => I'd like to have a decent deferred renderer.

VDrift already does HDR rendering (I don't mean bloom), but it uses a very simple tonemapping that's local to the pixel. It could definitely be improved. I was looking at implementing Wolfgang Engel's light pre-pass renderer. It allows for easier antialiasing than most other types of deferred renderers. See:
http://diaryofagraphicsprogrammer.blogsp...derer.html

What sort of other light types and sources do you think we need? For night time driving there are several, but I can't really think of anything to add for daytime driving, except maybe in tunnels.

I think a better material system is needed too. Right now there are a few parameters set in the texture, but they just aren't general enough to work for many surface types (as MirceaKitsune has found).

Quote:Right now we have things like SetSmoke(), SetSkybox(). What if I have an alternative particle/skybox implementation/shader. How do I integrate it into the scene graph?

If you look at my sky rendering integration in the bullet branch. It's an ugly hack right now. I still haven't figured out how to add it to the scene graph in a clean way.

The scene graph system needs a little bit of work, but it's a pretty good base. Here's how integrating something like your dynamic skybox would work:
* load your new shader in GRAPHICS_SDLGL::EnableShaders
* add a new shader type in the GRAPHICS_SDLGL::RENDER_INPUT_SCENE::SHADER_TYPE enum
* add a property to the DRAWABLE class if needed (we already flag skyboxes so you may not need to do anything for the case of your skybox code)
* make sure your DRAWABLE instance gets marked with the property you added (for skyboxes, this happens via the track's objects/list.txt file and the code in TRACK::OBJECTLOADER::ContinueObjectLoad)
* in GRAPHICS_SDLGL:Big GrinrawScene call renderscene.SetShader(RENDER_INPUT_SCENE::MY_SHADER_TYPE, shadermap["my_shader_name"]);
* upload any per-frame parameters to the shader in GRAPHICS_SDLGL::RENDER_INPUT_SCENE::Render
* add code to GRAPHICS_SDLGL::RENDER_INPUT_SCENE::SelectAppropriateShader to enable your shader based on the DRAWABLE property you added

I want to fiddle with the code some to make it easier to manage shader types, render passes, and shader constants. Also, right now there are a lot of really huge function bodies that I'd like to simplify.
Reply


Messages In This Thread
RE: VDrift Graphical Upgrades - by zimluura - 03-12-2010, 03:35 PM
[No subject] - by portets - 03-12-2010, 08:18 PM
[No subject] - by NaN - 03-13-2010, 05:53 AM
[No subject] - by NaN - 03-13-2010, 06:33 AM
[No subject] - by portets - 03-13-2010, 06:41 AM
[No subject] - by NaN - 03-13-2010, 09:43 AM
[No subject] - by portets - 03-13-2010, 11:49 AM
[No subject] - by sebiastisch - 03-13-2010, 02:17 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-14-2010, 01:30 AM
[No subject] - by portets - 03-14-2010, 02:51 AM
[No subject] - by NaN - 03-14-2010, 09:08 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-14-2010, 04:44 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-14-2010, 04:49 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-14-2010, 04:50 PM
[No subject] - by portets - 03-14-2010, 07:00 PM
[No subject] - by NaN - 03-14-2010, 08:00 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-14-2010, 10:50 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-14-2010, 10:51 PM
[No subject] - by portets - 03-15-2010, 12:39 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-15-2010, 01:03 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-15-2010, 01:04 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-15-2010, 11:17 PM
[No subject] - by zimluura - 03-16-2010, 05:03 AM
[No subject] - by NaN - 03-16-2010, 05:22 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-16-2010, 09:39 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-16-2010, 09:48 PM
[No subject] - by zimluura - 03-17-2010, 06:34 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-19-2010, 09:43 PM
[No subject] - by zimluura - 03-19-2010, 10:15 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-20-2010, 12:28 PM
[No subject] - by zimluura - 03-20-2010, 02:18 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-23-2010, 10:04 PM
[No subject] - by zimluura - 03-23-2010, 10:41 PM
[No subject] - by zimluura - 04-25-2010, 03:48 AM
[No subject] - by nomoo - 04-25-2010, 06:45 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-25-2010, 03:01 PM
[No subject] - by zimluura - 04-26-2010, 11:11 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-27-2010, 10:34 AM
[No subject] - by zimluura - 04-27-2010, 01:10 PM
progress report - by zimluura - 04-29-2010, 02:31 PM
[No subject] - by NaN - 04-30-2010, 02:18 AM
[No subject] - by zimluura - 04-30-2010, 01:07 PM
[No subject] - by NaN - 04-30-2010, 01:55 PM
[No subject] - by zimluura - 04-30-2010, 04:32 PM
[No subject] - by NaN - 04-30-2010, 05:04 PM
[No subject] - by zimluura - 05-01-2010, 02:08 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-01-2010, 06:35 PM
[No subject] - by zimluura - 05-02-2010, 04:01 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-09-2010, 12:51 PM
[No subject] - by zimluura - 05-11-2010, 11:36 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-11-2010, 09:52 PM
[No subject] - by zimluura - 05-13-2010, 12:17 AM
[No subject] - by NaN - 05-13-2010, 01:45 AM
[No subject] - by zimluura - 05-13-2010, 03:09 AM
[No subject] - by NaN - 05-13-2010, 03:57 AM
[No subject] - by NaN - 05-13-2010, 04:16 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-13-2010, 10:41 AM
[No subject] - by zimluura - 05-13-2010, 11:46 AM
[No subject] - by NaN - 05-13-2010, 02:34 PM
[No subject] - by zimluura - 05-13-2010, 04:34 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-14-2010, 01:41 AM
[No subject] - by zimluura - 05-14-2010, 11:37 AM
[No subject] - by NaN - 05-14-2010, 04:22 PM
[No subject] - by NaN - 05-14-2010, 05:00 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-14-2010, 09:51 PM
[No subject] - by zimluura - 05-15-2010, 02:57 AM
[No subject] - by zimluura - 05-18-2010, 09:08 AM
[No subject] - by zimluura - 05-20-2010, 12:58 PM
[No subject] - by NaN - 05-21-2010, 03:30 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-21-2010, 12:00 PM
[No subject] - by zimluura - 05-21-2010, 04:02 PM
[No subject] - by zimluura - 05-25-2010, 06:07 AM
[No subject] - by NaN - 05-25-2010, 08:29 AM
[No subject] - by NaN - 05-25-2010, 08:55 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-25-2010, 10:24 AM
[No subject] - by zimluura - 05-25-2010, 05:15 PM
[No subject] - by NaN - 05-26-2010, 10:23 AM
[No subject] - by zimluura - 05-26-2010, 11:53 AM
[No subject] - by NaN - 05-26-2010, 02:42 PM
[No subject] - by zimluura - 05-26-2010, 03:56 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-27-2010, 01:35 AM
[No subject] - by portets - 05-27-2010, 08:06 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-27-2010, 11:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)