• What are you working on? May 2012
    2,222 replies, posted
[QUOTE=Night-Eagle;36041297]Ziks: Sounds dirty! GTA: SA did do some fun stuff with lighting, perhaps they meant to apply gamma correction in the shader. Not sure if you're aware about this topic, but at least some of the readership will find this interesting: [url=http://filmicgames.com/archives/299]Linear-Space Lighting (i.e. Gamma)[/url] As for the alpha values, I have not a clue.[/QUOTE] Thanks, fixed it. I had actually accidentally declared my textures as gamma corrected (the identifier for gamma corrected has one character difference out of a 20+ character name of acronyms).
The proper fix is to keep the textures as srgb and create your window and other relevant framebuffers with an srgb format.
Valley of Ramps [img]http://eagle.undo.it:8083/img/kintel_92.jpg[/img] Why do procedurally generated inclines get me so excited?
[QUOTE=jalb;36041087]It's a template class so it's in the header. I hate having "using" in .h to force other files to do the same.[/QUOTE] [cpp] using std::map; using std::pair; using std::string; [/cpp]
[QUOTE=Lexic;36042006] using std::map; using std::pair; using std::string; [/QUOTE] That is the same problem on a smaller scale.
[QUOTE=Night-Eagle;36041923]Why do procedurally generated inclines get me so excited?[/QUOTE] hopefully not to the point where they're inclining something else
[QUOTE=amcfaggot;36042121]hopefully not to the point where they're inclining something else[/QUOTE] ...you mean, like, other inclines? [img]http://eagle.undo.it:8083/img/kintel_93.jpg[/img]
[QUOTE=Lexic;36042006][cpp] using std::map; using std::pair; using std::string; [/cpp][/QUOTE] Even that could cause ambiguities. The problem here is that if someone uses my .h and I'm doing a "using std::map," then somewhere down the road someone wants to write their own map class in their own namespace, they would be [b]forced[/b] to use the TheirNamespace::map (or using TheirNamespace::map) because otherwise C++ wouldn't know to use their namespace or std. It's a minor problem but a major annoyance sometimes. Like when I wrote a "Window" class that worked fine in Windows and Mac but caused ambiguities in Linux because X11 has a "Window" class in the global namespace. I did find a way around it, however... [cpp]#define Window X11Window #include <X11/Xlib.h> #undef Window[/cpp] .. which probably makes some of you cringe, but I refuse to rename my window class!
Now you just need some smoothing :v:
[img]http://www.leet.cc/Screenshot_from_2012-05-21_19_31_20.png[/img] I finally got around to implementing the methods for setting the window size and position. I'll still have to figure out a way to account for the size of the window decorations (e.g. the title bar) though.
Doesn't X let you access the decorator to acquire such details? [editline]Fuck[/editline] Okay apparently it doesn't
[QUOTE=DarKSunrise;36042542]I finally got around to implementing the methods for setting the window size and position. I'll still have to figure out a way to account for the size of the window decorations (e.g. the title bar) though.[/QUOTE] Oh, I've done that! Let me just get you tha-- [cpp]void Cross::Window::setSize(UInt width, UInt height) { #if defined(_WIN32) RECT rect = {0, 0, width, height}; AdjustWindowRect(&rect, style, false); SetWindowPos(handle, nullptr, 0, 0, rect.right - rect.left, rect.bottom - rect.top, SWP_NOMOVE | SWP_NOZORDER); #elif defined(unix) // @TODO #endif }[/cpp] .. oh, nevermind
Onscreen keyboard [IMG]http://i.imgur.com/6uvRG.png[/IMG] Password onscreen keyboard [IMG]http://i.imgur.com/ADsnI.png[/IMG] Xbox 360 onscreen keyboard (Sorry for the crappy photography however the capture frame function of XNA doesn't capture the OSK) [IMG_THUMB]http://i.imgur.com/9fD2f.jpg[/IMG_THUMB]
Quick question: Is there any noticeable difference in performance comparing SDL and GLFW used with OpenGL? SDL/GLFW would be used for window management, of course.
[QUOTE=amcfaggot;36042121]hopefully not to the point where they're inclining something else[/QUOTE] I think I'm starting to see a pattern with your jokes.
[QUOTE=krix;36043903]Quick question: Is there any noticeable difference in performance comparing SDL and GLFW used with OpenGL? SDL/GLFW would be used for window management, of course.[/QUOTE] no.
I'm not to sure how many of you know about this but there is this new device coming out called The Leap. It's a motion detection device for using gesture controls. Whats the big deal? if you have some nice looking projects in your back pocket you can get the device and SDK for free. So [URL="https://live.leapmotion.com/"]check [/URL]it out. I wanted to get one but I'm to cheap and I don't have any awesome projects, but I know a lot of you guys work on some amazing things!
[QUOTE=Mr.Heal;36045090]I'm not to sure how many of you know about this but there is this new device coming out called The Leap. It's a motion detection device for using gesture controls. Whats the big deal? if you have some nice looking projects in your back pocket you can get the device and SDK for free. So [URL="https://live.leapmotion.com/"]check [/URL]it out. I wanted to get one but I'm to cheap and I don't have any awesome projects, but I know a lot of you guys work on some amazing things![/QUOTE] I saw the video for this product earlier, it looks like the kind of technology that Apple would innovate with. The gestures would also work really well with the Windows 8 start screen.
[QUOTE=jalb;36041087]I suppose I could use a struct, not sure why I didn't think of that earlier. I'm writing a resource manager to sync up multiple threads. I can point to any data type (hence void*) and I need to know how large they are for memcpy. It's a template class so it's in the header. I hate having "using" in .h to force other files to do the same. The "difficult" part comes with syncing up to a remote. Note that I don't actually find it difficult anymore, but it was my first time around.[/QUOTE] git init git remote add origin [email]git@github.com:blah/blah.git[/email] git push origin master done
[QUOTE=Jacko2007;36045242]I saw the video for this product earlier, it looks like the kind of technology that Apple would innovate with. The gestures would also work really well with the Windows 8 start screen.[/QUOTE] I wouldn't say innovate. I don't think gesture control is going to win against a mouse and keyboard. But when I want to sit on my couch and browse Facepunch, being able to browse that way would be awesome. I may sit down and focus on a single project to present them with to try and get access to the SDK, because it seems like something really fun to mess around with. We shall see, I'd like to see the specs on it before I put any money on it.
[QUOTE=swift and shift;36045328]git init git remote add origin [email]git@github.com:blah/blah.git[/email] git push origin master done[/QUOTE] Isn't there something about SSH keys or whatever that you need to do?
[QUOTE=Darwin226;36045366]Isn't there something about SSH keys or whatever that you need to do?[/QUOTE] [code]ssh-keygen -t rsa -C "your_email@youremail.com"[/code] Done.
[QUOTE=Overv;36045455][code]ssh-keygen -t rsa -C "your_email@youremail.com"[/code] Done.[/QUOTE] So simple... -r rsa -C.... WHAT? ;( Where do you go to learn to speak robot? I feel like a retard not knowing.
[QUOTE=Darwin226;36045467]So simple... -r rsa -C.... WHAT? ;( Where do you go to learn to speak robot? I feel like a retard not knowing.[/QUOTE] Note that you do this only once per machine you work on, then you can forget about it. [editline]21st May 2012[/editline] I really can't figure out why I keep getting missing alpha mask textures. GTA stores textures in .txd texture dictionaries, and for each object it gets told which .txd has all its textures. Except they never seem to contain any alpha textures, and they're in separate .txd files and you're not even told which.
[QUOTE=Ziks;36045578]Note that you do this only once per machine you work on, then you can forget about it.[/QUOTE] I have been using git with bitbucket for months and have never done anything with SSH
[QUOTE=Richy19;36045715]I have been using git with bitbucket for months and have never done anything with SSH[/QUOTE] But what if The Man intercepts your commits?!
[QUOTE=Ziks;36045845]But what if The Man intercepts your commits?![/QUOTE] He will laugh at my code :/
[QUOTE=Darwin226;36045467]So simple... -r rsa -C.... WHAT? ;( Where do you go to learn to speak robot? I feel like a retard not knowing.[/QUOTE] To be honest it isn't that hard to understand really. You just need to remember a few of those bits to actually use CLI applications. "ssh-keygen" is the application obviously. A key generator. -t is a option flag, the "rsa" after it specifies the method used to generate the key (I assume seeing as it's a cryptography algorithm) -C is another option flag that specifies something else (like fuck I know, I should probably look at setting up a git repo at some point), taking the provided e-mail address as the value it uses.
[QUOTE=Darwin226;36045467]So simple... -r rsa -C.... WHAT? ;( Where do you go to learn to speak robot? I feel like a retard not knowing.[/QUOTE] Commands in terminal are simple really. They're usually formatted like so: <command> <options> <arguments> In this case the command is ssh-keygen, the options are -t and -C, and there is no arguments. Most Linux distributions come with handy offline manual pages where you can look up commands, [url=http://linux.die.net/man/1/ssh-keygen] but here's an online one here.[/url] Using that you can see that the option -t specifies the (t)ype of they key generated, and -C adds a (C)omment. [editline]sadf[/editline] Oh damn you hexpunK; let me be helpful! :(
[QUOTE=hexpunK;36045900]To be honest it isn't that hard to understand really. You just need to remember a few of those bits to actually use CLI applications. "ssh-keygen" is the application obviously. A key generator. -t is a option flag, the "rsa" after it specifies the method used to generate the key (I assume seeing as it's a cryptography algorithm) -C is another option flag that specifies something else (like fuck I know, I should probably look at setting up a git repo at some point), taking the provided e-mail address as the value it uses.[/QUOTE] But why in God's name is it named "t" and "C"? Does it hurt someone to be a bit more explicit?
Sorry, you need to Log In to post a reply to this thread.