Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

336 Neutral

About CrimsonSun

  • Rank
    Advanced Member
  1. CrimsonSun

    Circular explosion with definable points

    Quote:Original post by Gibbon_99 That works as well ! Thanks. PS: To be a little more efficient I should setup a lookup table for the COS and SIN as well. Would I be right in guessing that these calculations are resulting in a radian result? How do you go about setting up a COS lookup table for radians. I would imagine that a degree lookup table would be something like double cosTable[360] - but I obviously can't use a radian as an index into that table. Have you measured your performance and determined this to be a bottleneck? I think you may be focusing on too low of a level. I would be surprised if your implementation didn't already use lookup tables or some sort of fast numerical algorithm for trig functions.
  2. CrimsonSun

    What would it take to make a third political party in US

    I don't think a third political party will ever become significant unless one of the current parties dissolves. I expect to see this in my lifetime with the Republican party splitting up into I would term "Palinists" on one side and a more centrist-libertarian party on the other. Eventually one of these two will lose favor and we'll be left with a (different) two-party system again in the end.
  3. Quote:Original post by Dolf But before you claim that Java or C# "often beats" C++ in performance I'd like to see some benchmarks and situations, because I find that quite hard to believe. swiftcoder didn't say that C# "often beats" C++ in performance, he said that naive C# will "often beat" naive C++. I'll give you an example: if you're dynamically allocating large blocks of memory on an inner loop in your code then the native C++ implementation will be much slower than the .net implementation. This is because dynamic allocation on the .net managed heap is, in general, almost as fast as allocating on the stack. This doesn't mean you'll always be running faster code on the .net platform. When you think you actually have performance to be gained, then you should realize that C# and C++ are not mutually exclusive as you always have access to C++/CLI. Regardless, programming in C# takes care of a lot of the annoying and senseless bullshit that you'd have to be dealing with when using C++. Anyone that says otherwise, or says that the supposed performance losses aren't worth the productivity gains, is either full of shit and lying out their ass or is an ignorant moron.
  4. CrimsonSun

    Tricky physics - how does friction affect velocity?

    This really depends on how accurately you want to simulate the projectile. Fluid drag forces are proportional to the square of the velocity, so you'll end up with a non-linear differential equation that likely has no analytical solution. You'll probably have to resort to a numerical approximation. This will be harder to program and comparatively more computationally expensive. For most cases, air drag is negligible compared to the other forces involved, mass of the projectile, etc. so you have to decide whether it's worth the trouble to simulate the very small difference that the air drag actually makes.
  5. Quote:Original post by Osha This is wrong on so many levels: First of all there's their assumption that anyone entering the contest would be a straight male. Yes, well this is comic-con. Is it so wrong to assume that the majority of those attending would be male? Even if that wasn't the case, what's the big deal? No one is making anyone participate. Quote:Original post by Osha Then there's the overt sexualization and objectification of women They're booth babes. They're already being paid to be objectified. No one is forcing them to work the job they have. Quote:Original post by Osha Then there's the fact that they call the picture taking an "act of lust" and tell people to "sin to win"; you just *know* they want people to push the limits (even if they do have disclaimers in the small text), and it should be obvious that this is encouraging inappropriate behavior (sexual harrasement) towards booth babes. Again, they're booth babes. I'm sure they're used to it by now. Quote:Original post by Osha And finally how they encourage this for any booth babes at the convention, not just EA employees. I'm not sure how this is wrong at all. It would be more of a dick move for them to say that the pictures have to be of EA babes. Let's not making something out of nothing. Maybe you need a thicker skin?
  6. CrimsonSun

    Space Exploration!

    Quote:Original post by visitor Quote:I understand the danger but I feel the risk/reward is way better than say working on an oil rig, etc. What exactly is the reward from having lots of people go to space? :) The space program provides more for us than bragging rights. It spurs high-tech innovation and industry. A significant amount of modern technologies that we enjoy today, such as hand-held cameras and the precursor to the internet, are the result of NASA's involvement and cooperation with private industry. Unfortunately, a large portion of the American public isn't aware of this kind of benefit that the space program provides. As a result, they see the space program as a giant money sink with little tangible benefit to society. Seeing school teachers and astronauts die in horrible accidents reinforces this notion: people see this wasteful loss of life as evidence that NASA doesn't really know what it's doing.
  7. CrimsonSun

    Hardest Boss Fights

    Quote:Original post by double O seven Even though I never beat the game, Alma from ninja gaiden (xbox) was definitely the most difficult for me. Krauser from RE4 was a pain in the ass too. Ninja Gaiden was a really hard game. I gave up on it, probably because I insisted on playing on the black difficulty mode. Normal is for pussies.
  8. CrimsonSun

    Does heat leave or does cold enter?

    Quote:Original post by capn_midnight Look, it's the Ideal Gas Law, PV = nRT. Pressure is going to stay the same, Volume as well. We've already defined that Temperature is decreasing, and R is the Ideal Gas Constant, so the count of air molecules has to increase. That means air must flow *in* to the house. There is no such thing as "heat", "heat" is just a measure of kinetic energy in molecules and atoms. The "hot" molecules don't go anywhere, they just become "cold". You also have to factor in the free convection due to buoyancy effects. When the door is opened (at ground level, because we don't enter houses through doors in the middle of the air), the cold air enters the house. Since the warm air is less dense than the cold air, it is pushed up from the bottom and out through tiny cracks in the building frame and roof.
  9. CrimsonSun

    Does heat leave or does cold enter?

    The incoming cold air displaces the warm air that is already inside the house: warm air leaves the house as the cold air comes in.
  10. Quote:Original post by sofakng If using a fixed timestep and exact same inputs always produced the same results why would you even need network synchronization? (let's assume the network isn't dropping packets or that we are using TCP and not UDP) You might end up with roundoff errors if registers are saved to the stack for any reason such as taskswitching (registers will have a few extra bits that will be lost when their values are saved to the stack). Over time the accumulation of errors may become significant depending on the application, and you can't really ever trust the code running on someone else's computer because alterations may have been made to it.
  11. CrimsonSun

    Goodbye 4th Ammendment

    Quote:Original post by LessBread And who determines what constitutes good faith? I think this should be determined on a case-by-case basis. This ruling sets precedent that clarifies such a determination: simple, isolated, negligent record-keeping mistakes made further up the line should not hinder the beat-cop's ability to enforce the law. Consistent negligence or reckless disregard for the bill of rights (planting evidence, conspiring against the public, etc. are all reckless disregard for the bill of rights, just to be clear) on part of the agency should nullify the argument for good faith. Quote:Original post by LessBread Already you've written off the universal application of this ruling with the justification that a single meth-head was taken off the streets. Well, no, that's not what I've done. I made an observation that the outcome of this ruling is in this particular case is probably a good thing. Quote:Original post by LessBread In this case, the probable cause that justified the warrant expired along with the warrant, so there was no justification for the police to search the suspect. So you don't think that law enforcement officer in this particular case had justification to search the suspect? Should he not trust his instruments which in this case told him that there was an arrest warrant on Bennie? How about if a police officer's radar gun suddenly stops functioning and it tells him that a certain car is going 5-10MPH faster than it actually is, and it leads him to see something illegal in the back seat through the window. Should any evidence be thrown out because, according to you, there was no justifiable cause to stop the speeding car because it was not actually speeding? Are these two scenarios not the same? Quote:Original post by LessBread What if it had been a ticking time bomb? Oh teh noes! We'd better torture him now!!! Joking aside, my opinion would not change. Either the Bill of Rights are respected or they're not. If some bad guys get away because of them, so be it. I'm curious, what if the guy had nothing on him but the police panicked and shot him dead like that guy in Oakland? (Oakland shooting protest ends in violence) That's a far more likely scenario than the kid in the trunk. I think you missed my point of my question. I really hoped that this wouldn't have been your response so that I could attack you on inconsistency. However, I can't say that I'm surprised that you of all people stuck to your principles.
  12. CrimsonSun

    Goodbye 4th Ammendment

    Quote:Original post by LessBread Given this clear assault on the Bill of Rights Hold on just a second here, that's not what's happening at all. The ruling states that Quote:evidence may be used "when police mistakes are the result of negligence such as that described here, rather than systemic error or reckless disregard of constitutional requirements." Searching just any house and excusing the "mistake" as a clerical error would be reckless disregard of constitutional requirements. The ruling here applies for mistakes made in good faith, as certainly was the case in this particular circumstance. Unless you believe that five months ago the Sheriff's office intentionally failed to delete the arrest warrant in their records in order to catch him months later when he would have meth on his person and an unregistered firearm. In any case, having some cranked out redneck with a gun running around can't be good for anyone. I'm curious - would your opinion differ if instead of finding him with meth he had a child in the trunk of his car that he had raped or was going to rape? Quote:Original post by LessBread Let's not forget that Scalia claimed that torture wasn't cruel and unusual punishment Well, yes, Scalia's a moron. He should be replaced.
  13. CrimsonSun

    Perversion of Math or "The New Way"

    If you think this is bad, you should see how kids are being taught multiplication these days. It involves diamonds, grids, and all sorts of other nonsense.
  14. Quote:Original post by Dmytry On topic: Nobody ever observed "magnetic charges" so far. Each magnet seen so far has north and south pole, with same amount of magnetic field flux for north and south, no net flux. If you use magnet and iron sphere, or two magnets that are free to align to attract, the orbiting wont work. The dipole field falls off as inverse radius cubed, and attraction of dipole into field falls off as derivative of this, i.e. as inverse radius to fourth power. With 1/r^3 and higher, no stable orbits can exist, IIRC. (don't have time to derive that, did read that though) You can do that experiment with electric charges however. Put a positively charged ball and set negatively charged ball to orbit it, that would work. offtopic: I always wondered... if you have a magnetic monopole and a superconducting ring with current flowing through it, and put monopole near ring, what's gonna happen? Monopole orbiting along the field line, spinning faster and faster, and superconducting ring losing current coz of conservation of energy? Something else? My intuition says that the monopole would orbit the wire and induce a current into the wire in the opposite direction of the pre-existing current. After the current reaches 0A, the magnet should continue inducing a current until it is exactly opposite to the initial current, at which point the monopole would begin orbiting the other way, like a spring-mass system but with a very complicated orbital motion instead of linear motion. I am a mechanical engineering student and don't have a great background in electricity/magnetism, so I may be way off base here.
  • 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!