Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Member Since 29 Jun 2004
Offline Last Active Today, 03:43 AM

Posts I've Made

In Topic: What's the next step after LZ77?

17 July 2014 - 05:54 AM

If you're looking for speed, I recommend LZ4 (http://en.wikipedia.org/wiki/LZ4_(compression_algorithm)), if you're looking for high compression LZMA is pretty much the best freely available algorithm (as stated above). If you want a good trade off between those, zlib is still pretty competitive.


If WinRAR is faster than your LZ77 implementation, then your LZ77 implementation is very very slow.

In Topic: rendering to one pixel

26 April 2014 - 02:14 AM

The answer is pretty obvious. You cannot render a pixel in the middle of two raster positions without splitting it up somehow. Therefor, you need to avoid that situation and always render to a single raster position.

There are multiple ways to do this, depending on what kind of projection you are using and how many of these guys you want to render. If you use orthogonal projection and just "a few" (number depends on kind and power of the hardware used) pixels, just trim off any fractions of the position on the CPU or in the vertex shader.

If you use perspective projection, either do the projection on the CPU and trim, or again, use the vertex shader.

For a more detailed answer you'll need to provide more details!

I hope that helps!

In Topic: Should the Views/Beliefs of An Artist (Entertainer, Writer, etc.) Matter?

15 March 2014 - 03:38 AM

These are excellent question I struggle with myself from time to time. Like most things, unfortunately, it's complicated, but here are my thoughts:

First and foremost, the influence the attitudes of an author have on the perception of their books or the perception of their books have on the evaluation of their attitude is a very strong psychological phenomenon called the "halo effect" (https://en.wikipedia.org/wiki/Halo_effect).

Simply put, whichever you've discovered first (author's views or author's book), will strongly guide your feeling towards the thing you look at next. Even though it seems and is not rational, one can't help but feel that way.

If one tries to be rational about it, it's hard work to shake off or at least suppress the feelings induced by the halo effect.

Having said all that, on to my story:
I have never read one of Card's books and I find the views he's criticized for revolting. But I've heard that some of his books are excellent, I tend to like that type of SciFi and I have considered seeing the Ender's Game movie in the cinema, until I heard it's not a good movie, independent of Card's views. The first time I've heard about Card's bigotry was after playing the demo of "Shadow Complex", an XBLA game based on his writings. I played and didn't enjoy the game, before I knew any of this though, and I don't think it changed my attitude a lot.

On to my opinion:
Never attribute to malice that which is adequately explained by ignorance/stupidity. Hate their ideas, don't hate the people. Judge Card and his works separately by their own merits.

I hope that helps!

In Topic: Pointer confusion

11 March 2014 - 03:54 AM

One more note, making by value parameters (like the pointer pD3dscene and pLightingEffectId in your example) const does not really give you any benefits, because the values are copied anyways.


But it's a matter of personal preference really...

In Topic: Pointer confusion

10 March 2014 - 04:02 PM

In your case, all the pointers point to a const object, meaning you can't change the object through that pointer. You can, however, have the pointer point somewhere else, as is evident from the assignment of mD3dscene.

If you want the pointer itself const, you have to put a const after the *.

int * ptr; // non const pointer to non const object
const int * ptr; // non const pointer to const object
int const * ptr; // non const pointer to const object (same as above)
int * const ptr = something; // const pointer to non const object
const int * const ptr = something; // const pointer to const object
int const * const ptr = something; // const pointer to const object (same as above)

I think these are all cases and I hope that helps!