Goran
|
|
« Reply #3860 on: January 19, 2013, 12:55:21 AM » |
|
Xna (reach profile) GraphicDevice.SetRenderTarget clears the target. To purple. Despite what render usage suggests. Why? Because XBox does it? It seems helpful not to be able to change render targets. I mean, why would you use that? You wish to do some cpu post-processing? Here's purple. So why purple? "To avoid the hate mail that would have come from the original neon green!"
Thank you Xna!
|
|
|
Logged
|
|
|
|
Ben_Hurr
|
|
« Reply #3861 on: January 19, 2013, 10:44:34 AM » |
|
lol what
Shouldn't you be able to clear the buffer to whatever color you want?
|
|
|
Logged
|
|
|
|
Goran
|
|
« Reply #3862 on: January 19, 2013, 01:22:16 PM » |
|
Yes you can clear it again if you want. To whatever color you choose. But whatever you had drew up to that point is gone... So I wanted: 1. Draw a few things to backbuffer 2. SetRenderTarget(mytarget) 3. Draw a few things to my target - apply post-processing effects 4. SetRenderTarget(null) <- back to backbuffer 5. Draw from my target to backbuffer Guess what - nothing from step 1. survives
|
|
|
Logged
|
|
|
|
QuadrupleA
|
|
« Reply #3863 on: January 19, 2013, 01:49:22 PM » |
|
Hey Goran - that should normally work - I'd suspect something's happening in the "apply post-processing effects" part. Normally a post-process shader requires another intermediate render target than what you have.
|
|
|
Logged
|
|
|
|
Goran
|
|
« Reply #3864 on: January 19, 2013, 02:03:17 PM » |
|
|
|
|
Logged
|
|
|
|
BleakProspects
|
|
« Reply #3865 on: January 19, 2013, 02:22:22 PM » |
|
Yes you can clear it again if you want. To whatever color you choose. But whatever you had drew up to that point is gone... So I wanted: 1. Draw a few things to backbuffer 2. SetRenderTarget(mytarget) 3. Draw a few things to my target - apply post-processing effects 4. SetRenderTarget(null) <- back to backbuffer 5. Draw from my target to backbuffer Guess what - nothing from step 1. survives I feel your pain. I've been writing post-processing shaders in XNA for a while now, and every time I get the "purple screen of death" I twitch a little.
|
|
|
Logged
|
|
|
|
Impmaster
|
|
« Reply #3866 on: January 23, 2013, 03:26:07 AM » |
|
Exporting in Eclipse. It should be as easy as File->Export->Runnable Jar. But nooo. The stupid IDE won't let me export a project that works perfectly in the IDE.
|
|
|
Logged
|
|
|
|
EdgeOfProphecy
|
|
« Reply #3867 on: January 23, 2013, 08:08:50 AM » |
|
Modifying a physics material at runtime in Unity is allowed, but produced aberrant behavior, while setting a collider's material works perfectly fine. Never saw mention of this anywhere in the docs. I spent an hour going insane, thinking there was some painfully obvious mistake I'd made before I figured this out.
|
|
|
Logged
|
|
|
|
Ludophonic
|
|
« Reply #3868 on: January 24, 2013, 12:05:50 AM » |
|
Using IOHIDManager to try and tell if my "mouse" events are actually coming from the trackpad.
The trackpad reports itself as a mouse of course.
|
|
« Last Edit: January 24, 2013, 12:17:55 AM by Ludophonic »
|
Logged
|
|
|
|
Crimsontide
|
|
« Reply #3869 on: January 24, 2013, 12:17:13 AM » |
|
No intellistupid, that namespace name is not ambiguous, now give me my hilighting back you cheap bastard...
I hate how syntax hilighting is tied to intellistupid in VS2012.
|
|
|
Logged
|
|
|
|
Geti
|
|
« Reply #3870 on: January 24, 2013, 12:58:37 AM » |
|
Use codeblocks or something and hook it up to vs compiler if you need to use it and hate the VS IDE. I do that on my weaker laptop, don't have an installer for old VS any more and new VS is heavy as fuck.
|
|
|
Logged
|
|
|
|
Crimsontide
|
|
« Reply #3871 on: January 24, 2013, 01:08:18 AM » |
|
No, I love it when it works... VS and I have a love-hate relationship, but you'd have to tear it from my cold dead fingers before I gave it up.
TBH (and not trying to be mean here at all, tone is so hard to convey over the internet) but I really don't understand when people complain about the IDE or compiler being 'heavy' (ie. having performance issues). I've never had performance issues, I have more than enough core's and gigs to throw at it. Even in my largest projects the speed at which I work is always far slower than the speed at which my IDE works.
|
|
|
Logged
|
|
|
|
Geti
|
|
« Reply #3872 on: January 24, 2013, 02:49:45 AM » |
|
Fair enough. Starting Modern VS on my dated laptop is profoundly "un-fun", but there's no issue on my main dev box.
|
|
|
Logged
|
|
|
|
nikki
|
|
« Reply #3873 on: January 24, 2013, 03:26:04 AM » |
|
I really don't understand ... 'heavy' (ie. having performance issues). I've never had performance issues, I have more than enough core's and gigs to throw at it. Not everybody has your core's and gigs obviously, that's hard to understand?
|
|
|
Logged
|
|
|
|
Quarry
|
|
« Reply #3874 on: January 24, 2013, 03:43:41 AM » |
|
Someone has bad laptoooop!
|
|
|
Logged
|
|
|
|
nikki
|
|
« Reply #3875 on: January 24, 2013, 04:32:41 AM » |
|
well this is the grumpy old programmer room and vs does make me grumpy, eager for many gigs and cores, while it's just a fucking glorified texteditor.
|
|
« Last Edit: January 24, 2013, 04:38:38 AM by nikki »
|
Logged
|
|
|
|
ThemsAllTook
|
|
« Reply #3876 on: January 24, 2013, 10:50:16 AM » |
|
Using IOHIDManager Oh dear. That's enough to make you grumpy on its own.
|
|
|
Logged
|
|
|
|
Ludophonic
|
|
« Reply #3877 on: January 24, 2013, 12:55:01 PM » |
|
Using IOHIDManager Oh dear. That's enough to make you grumpy on its own. I actually don't find IOHIDManager all that hard to use. It's waaaay better than what you had before it was added OS X with Leopard. And better than the Windows equivalent. It's just the fact I need to use it at all for this which is annoying.
|
|
|
Logged
|
|
|
|
kamac
|
|
« Reply #3878 on: January 26, 2013, 03:04:12 PM » |
|
Memory leaks. Memory leaks everywhere.
|
|
|
Logged
|
|
|
|
zacaj
|
|
« Reply #3879 on: January 26, 2013, 03:40:44 PM » |
|
Memory leaks. Memory leaks everywhere.
C/C++?
|
|
|
Logged
|
My twitter: @zacaj_Well let's just take a look at this "getting started" page and see-- Download and install cmake
Noooooooo
|
|
|
|