Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 25 Apr 2004
Offline Last Active Dec 19 2013 12:03 AM

#4940949 Need to support OGL 1.4 retrospectively... (NPOT Problem)

Posted by on 17 May 2012 - 09:33 AM

Converting the images (and the code that uses them) to be POT compatible is out of the question.

While reading the NPOT textures from file, you could resample them to the nearest POT dimensions in software. If you don't want to lose detail, you might want to resample up only, rather than nearest.

After buffering the resulting POT textures to GL, use a texture matrix to scale the bound textures to the correct aspect ratio on the geometry.

#4904816 Normalization Approximation in 30 operations

Posted by on 21 January 2012 - 07:55 AM

Quick hack-up in SSE4:

movaps xmm0,xmmword ptr [Vector] 
movaps xmm1,xmm0 
dpps xmm0,xmm0,CCh
rsqrtps xmm0,xmm0
mulps xmm1,xmm0
movaps xmmword ptr [Vector],xmm1

Not tested, and I'm not 100% sure the immediate value for dpps is right.

#4892510 Which Country Should I Move To?

Posted by on 10 December 2011 - 07:42 AM

Come down to Australia. If we ever cross paths, I'll buy you a beer.

#4886480 Can young gamers appreciate the “pixel” art style?

Posted by on 22 November 2011 - 02:31 AM

Not only they can appreciate pixel art, but I think the style is making a some sort of a comeback. This is partly attributed to many reasons:

1. Mobile gaming is now a serious contender.
2. The mobile platform generally demands "lightweight" engines to run, compared to consoles, PCs etc.
3. More indie devs are releasing games than ever, without massive funding to back them, thus resulting in titles with simpler looking graphics.
4. Pretentious retro nerd/geek fad is now cool.

It's a good thing; not everything needs to look like Gears of War.

p.s. shurcool that looks rad.

#4882033 Is reverse engineering being regarded as a valuable skill when applying a new...

Posted by on 09 November 2011 - 02:25 AM

Reverse engineering abilities will give you skills which may be useful in other disciplines. You probably won't be reversing anything in most jobs, but the skill is useful for debugging, problem solving, and gaining a better understanding of how things work under the hood.

Personally I would not list "reverse engineering" as a key skill on a resume, nor would I raise it in an interview - perhaps put it down in the hobby section on the resume? Alternatively, you could use a different terminology to describe this skill. For instance, on my resume I have mentioned that I used decompilers extensively and used it to analyse the generated code, etc. Paranoid and dumb recruiter types will see you less threatening that way.

#4866912 Browser games - The nightmare of UI design

Posted by on 28 September 2011 - 01:28 PM

I would probably adopt the standard web design rules for the layout, such as the rule of thirds, the golden ratio (more here) , etc... and apply more fancy looking graphics on top. It's actually much harder than it sounds, because you have to create something that accommodates all kinds of screen resolutions. This calls for robust dynamic content resizing, which can be nightmarish to implement when it comes to supporting a wide range of browsers. Fortunately IE is getting better in that respect.

Personally, I think less is more. The OP is pretty much spot on, those sample sites simply overload the audience with visual clutter. Making important navigation elements clear and easy to find is paramount. Additional stuff should appear in a contextual manner, if possible.

#4866397 Covered or Naked, That is a Question?

Posted by on 27 September 2011 - 05:58 AM

I don't have an issue either way, I'm more concerned about the choice of clothing for a particular scenario / scene. For example, I find bikinis in snow, in a swamp, or a warrior chick performing some heavy melee moves in skimpy clothes incredibly stupid. That sort of thing has been over done a million times before, specifically to exploit juvenile fantasy at the cost of realism.

I guess I'm not 16 any more.


Personally I find the clothed examples cooler actually.

#4866120 Possible neutrinos travel faster than light

Posted by on 26 September 2011 - 10:34 AM

For these sort of news, I think it's best to check out the official CERN Press release on this subject, or the actual paper detailing the experiment and the results, and for the lazy, here is a web cast, with one of the scientist discussing and defending the aforementioned paper (it's long). Pay attention to comments during question time, it's very interesting.

In a nutshell, the authors were not making any deductions, assumptions, nor any theoretical assertions about what was observed. The paper simply described the methodology, discussed the results, and left open for scrutiny. No doubt, the experiment will be dissected in great detail.

I'm betting there is probably a systematic error somewhere in the experiment which skewed the results.

#4864183 The dumbest products you've seen advertised

Posted by on 21 September 2011 - 07:05 AM

Posted Image

"Quaid... Quaid... start the reactor... free Mars..."

#4861611 Graph theory intro?

Posted by on 14 September 2011 - 10:15 AM

I seen this a while back:

Probably as simple as it can get, as far as intros are concerned. That guy has a decent collection of math related vids, it's worth checking them out. You might also want to look at his Markov systems tutorial.

#4861508 printf disadvantages?

Posted by on 14 September 2011 - 05:46 AM

printf needs to scan the format string and construct the output dynamically. Not only that, but a variadic argument list needs evaluation, too.

However, speed is not your biggest concern. Potential buffer overflows is the real danger, particularly bad (or mismatched) format specifiers. The latter is generally known as "uncontrolled format strings", which can be exploited in creative ways if you are not careful.

#4859050 When/Why to Move to C++?

Posted by on 08 September 2011 - 08:18 AM

I don't know.

When it comes questions like this, I usually reply with "just hack away". IF you are interested enough, then you will have the persistence to figure out how each new language works to some degree. That includes reading up plenty of material on the subject and trying new tricks.

After a while, you cherry pick the one that is more relevant to you in terms of career and interests, and then refine your coding skills with your choices.

#4853499 Deus Ex: Human Revolution?

Posted by on 24 August 2011 - 08:48 PM

I have a slow machine. I'm poor. I'm sad. :(

#4850237 How much do you use your IDE?

Posted by on 17 August 2011 - 04:57 AM


Chuck Norris makes code write itself.

#4849861 Marxist RTS

Posted by on 16 August 2011 - 08:28 AM

You don't have to simulate a Marxist economy in an elaborate way. You just have to establish a system that seems to operate well initially, but runs itself into the ground after a while.