Jump to content
  • Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

363 Neutral

About CodeDemon

  • Rank

Personal Information

  • Interests

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. CodeDemon

    Why XML is all the rage now?

      S-expressions are just as powerful, yet more terse. Naughty Dog uses them in the Uncharted Engine for similar things.
  2. CodeDemon

    Why XML is all the rage now?

      Quite the array of language projects you have there!   I too am fond of the use of S-expressions over that of XML, and have had experience using them for data and DSLs in a number of projects. You can't beat the terseness and expressive power, and it's not hard to roll your own parser to handle them.   I share many of the opinions from: http://c2.com/cgi/wiki?XmlIsaPoorCopyOfEssExpressions   As for my own projects, I've also built a custom R6RS parser in C++, and have done some interesting things with it. For specifying data as maps/sets/vectors, I added support for handling special forms which yield new data-structure semantics, added Closure-like syntactic sugar to the lexer/parser where braces and square brackets can be used to define such data structures, and added a quick tree-rewriting pass to the data compiler to convert from the internal list AST node representation to the appropriate container type.   For simple data, sometimes I just go with simple key-value text files if I can get away with it (less is more! strtok_r does the job good enough), and I've recently been experimenting with using parsing expression grammar generators to quickly create parser combinators for custom DSLs that generate more complex data or code as s-expressions or C++.   A shame that many of the "big iron" game studios still use XML for a lot of things, although I've managed to convince a number people that it's time to move on. I dread the days where I am tasked with working on anything touching the stuff.   In short, if you're still using XML, you're needlessly wading through an endless swamp of pain, suffering and obtuse complexity. Things can be better.
  3. CodeDemon

    John Carmack a racist?

    This is not an argument about fundamental value systems. This is an argument about certain historical, societal, and biological truths. Objective facts aren't a projection of one's value system, they're either true or they're not. Attack my actual statements and my evidence with logic. Don't fallaciously attack my character, even if that wasn't your intention. Hiding ad hominen or strawman arguments with the illusion of apology and compromise doesn't make it acceptable. I have provided what I believe to be factual evidence to support my claims. Perhaps you haven't yet had the time or the motivation to fully go through what I have cited. If you don't want to argue about it, or to research it on your own time, then that's your loss.
  4. CodeDemon

    John Carmack a racist?

    There was a time when the idea that the Earth was flat instead of spherical was mainstream. Yes, there is the stigma of conspiracy and paranoia, but it's all in one's head. Judge the evidence or the argument on its own merits. At the very least, it's in the same type of danger as the Japanese civilization. With a global average fertility rate of around ~1.6 and comprising only around 8% of the World's population, White Europeans will be extinct within a matter of centuries and displaced far before then unless current trends change. Keep in mind that Japan keeps its borders much more closed to immigration than the West. Of course, things can and will change in the future, but we don't live in the future--we're responsible for the future. [media][/media] Is it simply just skin color? And why do you think it is evil to protect something? http://www.edge.org/...g-out-of-africa http://www.nature.co...-planet-1.10561 http://www.pnas.org/...8/29/1109300108 http://www.ncbi.nlm....act&holding=npg http://www.ncbi.nlm....act&holding=npg http://www.medical-h...0537-4/abstract http://www.nature.co.../mp201185a.html http://www.nature.co...ll/ng.2250.html http://www.nature.co...ll/ng.2237.html http://www.sciencema...1/1717.abstract
  5. CodeDemon

    John Carmack a racist?

    And I couldn't help but notice, but you say you don't care about Political Correctness, and yet you unwittingly play your role to the narrative. Perhaps its time to unplug yourself from the matrix, wake up and realize you're being played as nothing more than a pawn in a game of conquest that has been going on for over a century. http://www.nationalreview.com/articles/299918/censored-race-war-thomas-sowell Oh wait, that last editorial, like Derbyshire's, was also pulled days after being published. Gee, I wonder why. Here's the Google cache version. http://webcache.googleusercontent.com/search?q=cache:Ikz6UnQKS8IJ:www.nationalreview.com/articles/299918/censored-race-war-thomas-sowell+&cd=1&hl=en&ct=clnk
  6. CodeDemon

    John Carmack a racist?

    You do realize that Leon Trotsky, a key Bolshevik and leader of the Red Army during the genesis of the USSR, was the one who coined the word 'racist' and preconfigured the ideology of anti-racism so as to specifically destroy White European civilization, making it amenable to communist revolution (Source: http://www.marxists....0/hrr/index.htm). Anti-racism, like every Marxist movement, will ultimately fail in the same way that say literal Creationism has failed: it's not grounded in reality. History will venerate John Carmack and everyone else from absense of apology, for there is no reason to apologize towards the imposition of a bankrupt ideology.
  7. CodeDemon

    Which Country Should I Move To?

    And for anyone who thought I was being over-dramatic, like clock-work, it's happening. The EU is finished. http://www.cnbc.com/id/45609228 British Prime Minister David Cameron announces that Britain will never join the Euro, and will not sign a new European Union treaty. This is the beginning of the end.
  8. CodeDemon

    Which Country Should I Move To?

    http://en.wikipedia.org/wiki/Patagonia I wouldn't trust Canada, if shit hits the fan, the authorities here won't have any qualms deporting you to America. http://www.cbc.ca/news/politics/story/2011/12/06/weston-border-deal-exit.html Also, EU is dangerously close (a matter of days) to breaking up which will lead to civil disorder and socio-economic breakdown. http://www.bbc.co.uk/news/business-16082755 http://www.thisismoney.co.uk/money/markets/article-2071800/Tesco-plans-collapse-eurozone.html?ito=feeds-newsxml http://blogs.telegraph.co.uk/news/jameskirkup/100122774/eurozone-crisis-summit-what-david-cameron-will-say/ http://www.guardian.co.uk/world/2011/dec/08/treaty-changes-on-eu-summit-agenda
  9. CodeDemon

    Machine Learning in Graphics

    You can apply machine learning to anything that requires optimization of a set of parameters or functions controlling the transformation of data. Generally, it's used in cases where searching the entire space of solutions has non-trivial complexity, and you simply want to find a good enough solution that isn't obvious. I can think of at least one area within real-time computers graphics that might bear fruit. Occlusion culling often uses general purpose hard-coded heuristics to determine "good" objects or surfaces for use as occluders, and may rely on input from content designers or programmers to flag which objects should be used for occlusion or to generate acceptable bounding volumes or primitives to use when rendering into the occlusion buffer. Using machine learning, you could have the system do all of the hard work for you in determining good heuristics that are custom tailored for a specific scene, level, or sub-region/sector within a level, and for generating better occlusion geometry for static (occluder planes) or dynamic (optimal LOD for an occluder mesh) datasets, duration of time before reconsidering an object as an occluder in implementing temporal coherence, etc. There's probably an endless number of things you could optimize for. A starting point would probably involve simulating the contribution of various objects as occluders across the different regions of a level as a preprocessing step, generating feature vectors that capture the camera position & orientation, a measure of contribution from objects into the occlusion buffer, perhaps some other information, and then performing clustering analysis of the feature vectors and optimizing for least amount of over-draw and least cost of performing the occlusion culling pass. Note that your feature vectors will be very large as they have to account for every possible occluder in a given level data set, and so you they will be n-dimensional where n is probably in the thousands or tens of thousands. You could probably implement a lot of this to run on a GPU using DirectCompute or OpenCL. Alternatively, you could record a number play throughs and use the play-back for your simulation and analysis phase and combine the results. Think of it as profile-guided optimization for occlusion culling. I'm not sure how much of this kind of stuff is already done in COTS occlusion systems like Umbra, but I seem to recall the original paper on it used simple heuristics and statistical geometric methods to generate occluder sets and the like.
  10. Whoa. CodeDemon. I haven't seen that name in FOREVER.
  11. Still up to the same old shenanigans, I see.
  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!