Jump to content
  • Advertisement

cyric74

Member
  • Content Count

    207
  • Joined

  • Last visited

Community Reputation

100 Neutral

About cyric74

  • Rank
    Member
  1. I have a large amount of frames for an animation, and want to tile them all together in a single image file. I used to use ImageMagick's Montage for this, but it is broken and refuses to work or recompile on my system anymore. Can anyone suggest a program (or photoshop plug-in) that can tile images together, and retain all of the image information (.PNG transparent backgrounds etc) Thanks Cyric
  2. cyric74

    [4E5] Screenshots and Art

    Will put out some information on my entry in a month or so. Just a screenshot for now.
  3. cyric74

    C# MDX Texture Splat Problem

    I'm still having this trouble, and think the problem is with the texture stages in the Render function. device.SetTextureStageState(0, D3D.TextureStageStates.AlphaOperation, (int)D3D.TextureOperation.SelectArg1 ); device.SetTextureStageState(0, D3D.TextureStageStates.AlphaArgument1, (int)D3D.TextureArgument.TextureColor); device.SetTextureStageState(1, D3D.TextureStageStates.ColorOperation, (int)D3D.TextureOperation.SelectArg1 ); device.SetTextureStageState(1, D3D.TextureStageStates.ColorArgument1, (int)D3D.TextureArgument.TextureColor ); device.SetTextureStageState(1, D3D.TextureStageStates.AlphaOperation, (int)D3D.TextureOperation.SelectArg1 ); device.SetTextureStageState(1, D3D.TextureStageStates.AlphaArgument1, (int)D3D.TextureArgument.Current ); Is this the proper way to render part of Stage 1 texture based on Stage 0's alpha? Could anyone give me a hint in the right direction? Thanks
  4. I've just started to mess around with Fixed Function texture blending in C#, but am having some difficulty. There do not seem to be any resources on this with C# code, so I've been converting it from the c++ examples, and am thinking that perhaps something didn't transfer correctly? I was going by the demo from the GameDev texture splatting tutorial located at www.gamedev.net/reference/articles/article2238.asp It is supposed to look like: but instead is turning out to be: The correct texture colors are there, and the alpha blending is there, but no texture details appear. Is this a filtering issue, or have I done something wrong in my code? private void OnResetDevice( Device device ) { // Set projection m_camera.AspectRatio = (float)BackBufferWidth / (float)BackBufferHeight; device.Transform.Projection = m_camera.Projection; // Set render states device.RenderState.Lighting = false; device.RenderState.FillMode = m_framework.FillMode; device.SetRenderState( RenderStates.ZEnable, true ); // Allow multiple passes to blend together correctly device.SetRenderState( RenderStates.AlphaBlendEnable, true ); device.SetRenderState( RenderStates.SourceBlend, (int)Blend.SourceAlpha ); device.SetRenderState( RenderStates.DestinationBlend, (int)Blend.InvSourceAlpha ); device.SetSamplerState(0, D3D.SamplerStageStates.MinFilter, (int)D3D.TextureFilter.Linear ); device.SetSamplerState(0, D3D.SamplerStageStates.MagFilter, (int)D3D.TextureFilter.Linear ); device.SetSamplerState(0, D3D.SamplerStageStates.MipFilter, (int)D3D.TextureFilter.Linear); // Prevent some ugliness with the alphamaps device.SetSamplerState(0, D3D.SamplerStageStates.AddressU, (int)D3D.TextureAddress.Clamp ); device.SetSamplerState(0, D3D.SamplerStageStates.AddressV, (int)D3D.TextureAddress.Clamp ); device.SetSamplerState(1, D3D.SamplerStageStates.MinFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(1, D3D.SamplerStageStates.MagFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(1, D3D.SamplerStageStates.MipFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(2, D3D.SamplerStageStates.MinFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(2, D3D.SamplerStageStates.MagFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(2, D3D.SamplerStageStates.MipFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(3, D3D.SamplerStageStates.MinFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(3, D3D.SamplerStageStates.MagFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(3, D3D.SamplerStageStates.MipFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(4, D3D.SamplerStageStates.MinFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(4, D3D.SamplerStageStates.MagFilter, (int)D3D.TextureFilter.Linear); device.SetSamplerState(4, D3D.SamplerStageStates.MipFilter, (int)D3D.TextureFilter.Linear); } and the render calls private void Render( Device device ) { // Alphamap: take the alpha from the alphamap device.SetTextureStageState(0, D3D.TextureStageStates.AlphaOperation, (int)D3D.TextureOperation.SelectArg1 ); device.SetTextureStageState(0, D3D.TextureStageStates.AlphaArgument1, (int)D3D.TextureArgument.TextureColor); // Texture: take the color from the texture, take the alpha from the previous stage device.SetTextureStageState(1, D3D.TextureStageStates.ColorOperation, (int)D3D.TextureOperation.SelectArg1 ); device.SetTextureStageState(1, D3D.TextureStageStates.ColorArgument1, (int)D3D.TextureArgument.TextureColor ); device.SetTextureStageState(1, D3D.TextureStageStates.AlphaOperation, (int)D3D.TextureOperation.SelectArg1 ); device.SetTextureStageState(1, D3D.TextureStageStates.AlphaArgument1, (int)D3D.TextureArgument.Current ); device.SetTexture(0, alp1); device.SetTexture(1, tex1); //...draw primitives device.SetTexture(0, alp2); device.SetTexture(1, tex2); //...draw primitives device.SetTexture(0, alp3); device.SetTexture(1, tex3); //...draw primitives device.SetTexture(0, alp4); device.SetTexture(1, tex4); //...draw primitives } Thanks for your help
  5. Wait.. Wait.. I've got a good one: Don't link this thread as a response to an argument ever again. It proves very little beyond your meager HTML skills, and your inability to actually respond to the argument presented.
  6. cyric74

    America...

    Quote:Original post by Gorax Quote:Original post by Le_Danse_Macabre Say America, how about stop spending your money on weapons (see: !!TERRORIST!! weapons) and spending it on something constructive...say helping out the situation in most of Africa? Blood Cannibals Rebels, children being forced into armed war, diseases running rampant, children dying of starvation etc. I personally wish they'd do this too. I'm not singling the US out in this either. All leading countries should. I would have thought that after two world wars, the world leaders would have realized that the world'd probably be a better place if they helped each other, rather than prepare for the next war, but obviously they're too stupid to do something like that. Humans will be humans. We are, by nature, violent and greedy. No amount of logic, rationality or love will change that; we can all hope a big hug festival will break out, but it isn't going to happen. Quote:I'm just waiting for the day when the next world war comes. We are currently fighting it. There aren't any Nazis with tanks and rows of soldiers, but this war is a global battle which will influence almost every life on the planet in some way. I think the concept of a battlefield has changed significantly--much of this war is being fought on television, and the casualties are people like the original poster: He is so twisted and lost that his sympathies are now with the guys beheading contract workers for propaganda videos, or driving truck bombs into groups of women and children. He vomits up whatever words they want him to think are fact. America is by NO means perfect, or even correct in many instances, but the population's heart is in the right place. I, as an American, genuinely want the people of Iraq to have a brighter future. I don't give a damn WHY we went into Iraq--that is totally moot at this point; what I care about is where we are now, and where we are going.
  7. cyric74

    America...

    Quote:Original post by Illco @Cyric74: funny when you read your post after reading the Arguments You Never Want To Hear Again thread! Can you specify the amount that must be donated to charity to justify this and that amount of violence? Improbable. Illco Can you point out where in my post I try to JUSTIFY VIOLENCE? I never agreed with it. You need to re-read the thread you linked. Must I quote the original post again so that you can make another attempt at understanding the content?
  8. cyric74

    America...

    What a warped worldview. You've been watching way too much TV, and reading way too many radical left wing websites. This is the same broken record "We Love To Hate America" bullshit spewed by them every day with no point, focus or purpose. Quote:Even now that Iraq has been liberated...democracy will make no difference in alot of their lives. As opposed to, say, the iron fist they lived under before America came? Are you REALLY that god damn stupid? The previous rulers of Iraq didn't even allow for the illusion of democracy--just mass graves, public executions, intentional starvation of millions, and a pride in its many torture chambers. Quote:They don't REALLY get a vote, it'll just be rigged again...i cannot fathome how Dubya got another 4 years. Doh! Welcome to the amazing world of politics! You think American elections are decided by The People? Or Canadian? Quote:capitalism will reign supreme and there will still be people living disgustingly under the poverty line. Because they had it so good before. America really screwed them, right? Too bad Canada backed out of any real support, because God knows they could have made it all better--if they even bothered to try. Quote:Say America, how about stop spending your money on weapons (see: !!TERRORIST!! weapons) and spending it on something constructive...say helping out the situation in most of Africa? Blood Cannibals Rebels, children being forced into armed war, diseases running rampant, children dying of starvation etc. Oh never mind, let's just do it the good ol' fashion American way and drop some bombs on them! They won't be alive anymore to care about the state of their country! Say, how about you do a bit of research into how much money America sends abroad for charity and medical support to the less fortunate. Really, humor me here--find some numbers on how much America has spent on weapons in the past 10 years, and then find some numbers on how much they spent on non-violent activities for just this year alone. Back up your bullshit. Oh never mind, you're a mindless sheep who wants to find someone to blame the world's problems on, and will believe whatever the media tells you!
  9. CNN Link Quote:"It's a sign that the lack of gun laws in the U.S. is allowing guns to flood across the border that are literally being used to kill people in the streets of Toronto...The U.S. is exporting its problem of violence to the streets of Toronto," Miller said. Correct me if I'm wrong, but doesn't Canada have more guns per capita than America? The logic behind this is beyond retarded; it is like America blaming violence and shootings on Mexico. Of course pointing the finger at other people to find excuses for your own problems has always resolved pressing issues, right?
  10. cyric74

    "The Third Wave" experiment (very old news)

    Quote:Original post by d000hg Quote:Original post by Trap You think parents would notice while it still is happening? Very optimistic, even if they were told by their children (which is quite unlikely) I doubt they would notice that these are nazi methods. Even here in Germany I wouldn't bet on somebody noticing it.If you don't mind me asking, how does Germany approach the subject of teaching about WW2/hitler/holocaust in schools? For instance I've been told that in the US the role of the USA is taught significantly differently in WWI/II than in the UK. Try asking Japanese students about Japan's history in WWII. You'll (possibly) be surprised by their response. "History is written by the winners." isn't quite as accurate as, "History is written by its teachers." If an entire generation believes a lie about what really happened, the truth is replaced.
  11. cyric74

    30 year old ammo

    Quote:Original post by Witchcraven My grandpa gave me his 30-06 and a box of ammo. The catch is the ammo is 30 years old. It is high quality. What is the worst case scenario for firing it. I would imagine the bullet not exiting the barrel. But is there a possibility of the powder combusting too quickly, blowing apart the gun? I would imagine the opposite, but I am not sure. I'd be leery of any aged explosives: they can become very unstable, and even just dropping the bullet could set it off. On the other hand, it could also be totally dead, but I wouldn't be willing to bet my safty or the safty of others on it.
  12. Have you returned to the spot it occured? My guess would be a slightly wobbly manhole cover, or something of the sort, that both cars drove over. From the supplied information, I think that is the most plausible solution--just happened to hit an object that produced a 'ding' with comparable pitch/tone.
  13. I'm sure America would be willing to accept the whole of Canada as our 51st state. It would be sweet, I promise! 1) We could get your boys out to see the world (and kill a few terrorist, of course) 2) You would all fit in nicely at gun clubs, and could probably show us a thing or two about how to own more guns. 3) You could get to vote for all the American politicians that the world loves to hate! ("Hmm.. do I pick the creepy, socially removed billionair, or the coke-head religious nutjob?") 4) Starting Nov. 28th each year, you will exchange the words "Merry Chistmas" with anyone and everyone you see. At gunpoint. 5) You shall be free to worship whatever religion you wish. As long as it is Christianity. 6) You would have the freedom to speak your mind, and say whatever you want. As long as federal and state censors think its okay, and you fill out a few forms in triplicate. There may also be some jail time involved. 7) Your pizza delivery is free if they don't get it to your door in 30 minutes or less! 8) Do you like fat people? 'Cause we do! 9) Canadians will get to relax as their high-skill requirement jobs get broken down into simple factory lines, and are then manned by illegal immigrants who work for pennies so that you don't have to! 10) We'd consider giving Mike Myers a decent job again.
  14. cyric74

    650,000 Years of Carbon Dioxide Can't Be Wrong

    Quote:Original post by LessBread Quote:Original post by cyric74 LessBread was using the same approach that you are in pointing out specific cases of "ultra-rich versus the rest of us"--but when talking of something with such a massive scope as global warming, we're looking at species-wide and planet-wide changes. We need to suspend our divisions such as rich versus poor, Dem vs Republican etc. These dastardly rich people didn't design, build and drive every environment-harming car on the road. This was done by millions and millions of average Joes, some of who may have also made economic profit from the design, construction and operation of the vehicles, but will reap and sew the same damaged world as everyone else. Average Joes didn't lobby Congress in order to kill mileage standards. Average Joes didn't lobby Congress to give businesses a tax break for purchasing Hummers. Average Joes didn't lobby Congress to give big oil unnecessary tax breaks either. Average Joes elected members of Congress into their position of power, and continue to elect the same people. You can't pass off all responsibility by pointing a finger at some rich guy and scream, "His fault!" just because you don't like the fact that he's rich. How many average people do you know own SUVs or pick-up trucks, but just use them for driving around the city? I can probably name fifty aquaintances who fit that bill. Rich white people exploiting the masses didn't force them to purchase that car--it was a personal choice, and one that harms the environment. The Average Joe doesn't give a shit, honestly, so you can just as easily direct your anger at them. Quote:Original post by LessBread Cooperation is as much at work in biological evolution as is competition. In fact, I would put forward that cooperation is much more important to human evolution than competition given the length of time it takes for us to reach adulthood. I agree--populations of people who are somewhat trusting and cooperate with other populations around them are better off in the long run. Our modern concept of competition is very new--Americans 100 years ago didn't really have to worry about market prices in China, or oil prices in the middle east. Globalization has done remarkable things for our civilization, but it has also taken a toll on the environment and society.
  15. cyric74

    650,000 Years of Carbon Dioxide Can't Be Wrong

    Quote:Original post by Nathan Baum Quote:Original post by cyric74 When corporate greed and politics suck the life from a city, they may make a quick buck, but on a more universal scale, the producers and consumers who once thrived in that area no longer exist to make and buy from the corporation, nor from ANY other business. Their suffering causes the suffering of all other individuals in the population, because each of us depends on the other. This is a nicely idealistic picture, but it greatly distorts the truth. Whilst it is true that "each of us depends on the other", it is not true, as you appear to be implying, that "each of us depends on the other to an equal extent". I wasn't implying that at all. The effects of their actions, however, are arguably cumulative, as we see in global warming. It wasn't a distortion of truth, so much as a very over-simplified example to make a point. LessBread was using the same approach that you are in pointing out specific cases of "ultra-rich versus the rest of us"--but when talking of something with such a massive scope as global warming, we're looking at species-wide and planet-wide changes. We need to suspend our divisions such as rich versus poor, Dem vs Republican etc. These dastardly rich people didn't design, build and drive every environment-harming car on the road. This was done by millions and millions of average Joes, some of who may have also made economic profit from the design, construction and operation of the vehicles, but will reap and sew the same damaged world as everyone else. Quote:Original post by Nathan Baum Quote:Original post by cyric74 The "game" can be broken down to a simple race for genetic survival, and the super-rich are just playing it better than most--much like the alpha male in a gorilla pack. But they're not playing the game you're claiming they're playing. The super-rich are playing "who can make the most profit before they die?". Unfortunately, that game won't benefit them any if civilisation crumbles and the economic and political infrastructure which once supported their existance collapses. They know this, but they don't care. They assume that they'll die before it all goes wrong. Still a trait of biological evolution: Get as much as you can, as fast as you can. The more you have, the higher a guarantee of genetic survival. Even if they don't actually intend to pass on genetic material, we're just wired that way. It's the same reason fat people keep eating when there is no chance in hell they're going to starve. We have a desire to gain and acquire, because that was a trait which provided good protection for genetic survival (compared to peoples without such a trait that didn't last too long).
  • 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!