Jump to content
  • Advertisement
Sign in to follow this  
fatima

old problems...

This topic is 2975 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi

1 - where can I find source code for games that released recently(at least after 2004)? I know some companies release their project’s source. I have found some of them, but they are too old.

2 – I tried to implement deferred shading algorithm, while it works pretty well, but I don’t like it. It wastes a lot of video memory and decreases frame rate(by forward rendering my D3D application renders a teapot at ~1000 fps, but by using deferred shading without any optimizing frame rate changes to ~60 fps! Maybe my implementation is wrong… ).how can I manage lights and shadows of a pretty large level with a lot of lights at runtime?I have tried many methods(most of them are my own ideas), but they didn't help me.

3 – Is it possible to export classes that use std::vector<> (or other STL classes) to dll?

4 - thanks :)

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by fatima

1 - where can I find source code for games that released recently(at least after 2004)? I know some companies release their project’s source. I have found some of them, but they are too old.
If looking for AAA, then almost everything post-2004 is primarily for consoles and bound by various NDAs.

Quote:
~60 fps
Vsync?

Quote:
3 – Is it possible to export classes that use std::vector<> (or other STL classes) to dll?
While not recommended, the biggest problem comes from memory management. This will likely require writing a custom allocator.

Unfortunately, this results in different type of vector, which will be incompatible with almost all third-party libraries - almost none of them use generic version of vector<T,A>, but only first specialization.

But why use DLLs in the first place? Applications that are intended to be extensible in this way are *much* better off being written in C#.

Share this post


Link to post
Share on other sites
Hi fatima,

Answer to 2:

It looks like you have a few options here; if you feel you need deferred shading, then there are optimizations you can make to make it more efficient, and there are ways to handle large arrays of dynamic lights in large levels using the standard forward rendering too.

Firstly, are you sure that deferred shading is what you want?

Secondly, in deferred shading you're probably going to be writing to different surfaces atleast 4-6 times. Meaning, for each render you'll be doing 4-6 times as many pixel writes. Deferred shading is slow, but there are ways to optimise the technique. Try to simplify the shader code, and compress the data in the gbuffer to only what is entirely necessary.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!