I worked with 1.x or 2.x a long time ago and recently wanted to refresh and learn more about it. Then I started to see how much has changed since 3.x...
@MonadNewb buy a GTX 560. They're cheap-ass cheap now. And run Bioshock:Infinite on High
or if you have some proper spare cash, Kepler (series 600) already, they will be supported with newest features longer (but I am not sure if you will want to buy a GPU based on development needs not gaming needs)
@BartekBanachewicz I don't have any PC games ATM since I've been mostly gaming on PS3. I'll definitely want to look at both gaming and dev needs for my next GPU upgrade.
@MonadNewb basically when buying stuff for dev, get newest ones. for gaming, get 1-2 cards older, because games don't use newest features and performance will be better
> PCIe 2.0 motherboard slots are fully backward compatible with PCIe v1.x cards. PCIe 2.0 cards are also generally backward compatible with PCIe 1.x motherboards, using the available bandwidth of PCI Express 1.1. Overall, graphic cards or motherboards designed for v2.0 will work with the other being v1.1 or v1.0a.
There are generally two methods for dealing with this. Nowadays, they are called forward rendering and deferred rendering. There is one variation on these two that I will discuss below.
Forward rendering
Render each object once for every light that affects it. This includes the ambient light. Y...
this answer explains difference between per-fragment forward lighting and deferred lighting
the main difference is that the lighting won't run on fragments that are going to be discarded anyway
It looks like you would like to juggle the filebufs on an ostream& object.
Now, the only obstacle is that ostream or basic_filebuf<char> aren't copyable types, so you can't put them into a map (by filename) directly. This is easily worked around by creating a little Holder type:
struct Holder {...
Fixed and further simplified after realizing you wanted to have files created if they didn't exist yet. And removed the use of Boost Filesystem (as CheckExistance wasn't needed after all). See it all live at Coliru — sehe7 secs ago
@BartekBanachewicz Hmm? What constitutes a coding blog? Also, my SO profile is very empty
the fundamental problem here is that you need N lights to be passed to the pixel shader, but you can't, because all it can take is the interpolated vertex data.
eh, I heard that they're fine as long as each shader branches in the same direction (which they would, because the lights would be the same for every pixel)
are you seriously trying to tell me that running a loop over part of a shader is going to be more expensive than running a loop on the CPU and issuing a command to run the entire shader in a loop?
not to mention all of the intermediate reading/writing
so you have the same loop, but it's executed on the CPU, involves a whole bunch of unnecessary textures and reading and writing, and has to be larger than the same loop done on the GPU
not to mention more draw calls, kernel context switches, synchronization, stuff like that
that's not the same as having the shader compiler unroll the loop
@sehe that command won't work for msysgit users, msysgit doesn't come with man, if they want to use a command to view documentation, they have to use git rev-parse --help. — Cupcake7 hours ago