Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411512 Posts in 69376 Topics- by 58431 Members - Latest Member: Bohdan_Zoshchenko

April 27, 2024, 11:07:40 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)The grumpy old programmer room
Pages: 1 ... 192 193 [194] 195 196 ... 295
Print
Author Topic: The grumpy old programmer room  (Read 738876 times)
Goran
Level 0
***



View Profile WWW
« 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
Level 10
*****


nom nom nom


View Profile
« 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
Level 0
***



View Profile WWW
« 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 Sad
Logged

QuadrupleA
Level 2
**



View Profile WWW
« 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

Weapon Hacker - roguelite metroidvania;
Battleship Solitaire - mindless podcast companion
Goran
Level 0
***



View Profile WWW
« Reply #3864 on: January 19, 2013, 02:03:17 PM »

Sadly no. http://blogs.msdn.com/b/shawnhar/archive/2007/11/21/rendertarget-changes-in-xna-game-studio-2-0.aspx
Not to mention I can't get it to work "the old way" even following the suggestions Sad
Logged

BleakProspects
Level 4
****



View Profile WWW
« 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 Sad

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
Level 10
*****


Scary, isn't it?


View Profile WWW
« 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

Do I need a signature? Wait, now that I have a Twitter I do: https://twitter.com/theimpmaster
EdgeOfProphecy
Level 2
**



View Profile WWW
« 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
Level 2
**


View Profile
« 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
Level 5
*****


View Profile
« 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
Level 10
*****



View Profile WWW
« 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
Level 5
*****


View Profile
« 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
Level 10
*****



View Profile WWW
« 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
Level 10
*****


View Profile
« Reply #3873 on: January 24, 2013, 03:26:04 AM »

Quote
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
Level 10
*****


View Profile
« Reply #3874 on: January 24, 2013, 03:43:41 AM »

Someone has bad laptoooop! Tongue
Logged
nikki
Level 10
*****


View Profile
« Reply #3875 on: January 24, 2013, 04:32:41 AM »

well this is the grumpy old programmer room Wink
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
Administrator
Level 10
******



View Profile WWW
« 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
Level 2
**


View Profile
« 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
Level 10
*****


Notoriously edits his posts


View Profile
« Reply #3878 on: January 26, 2013, 03:04:12 PM »

Memory leaks. Memory leaks everywhere.
Logged

zacaj
Level 3
***


void main()


View Profile WWW
« Reply #3879 on: January 26, 2013, 03:40:44 PM »

Memory leaks. Memory leaks everywhere.
C/C++?
Logged

My twitter: @zacaj_

Quote from: mcc
Well let's just take a look at this "getting started" page and see--
Quote
Download and install cmake
Noooooooo
Pages: 1 ... 192 193 [194] 195 196 ... 295
Print
Jump to:  

Theme orange-lt created by panic