• What are you working on? v15
    5,001 replies, posted
Yeah, enabling dithering with [cpp]_paint.setFlags( Paint.DITHER_FLAG );[/cpp] did the trick. Why wouldn't it use that by default?
[QUOTE=TheBoff;27415370]Could you clarify this? I don't understand what you mean...[/QUOTE] So you're coding the best thing ever, but for some reason you want that program to get the value of trig functions (sin, cos, whatever floats your boat) like a champ. You find that the default implementations are slow, but you wrote youw own that generates sin so fast that it's almost surreal. So you can get the value of sin(42.24), sin(12.34), etc. You keep looking for a way to get the cosinus of an angle as fast as sin, but you can't. "Well", you say to yourself while picking out crumbs of pizza from your beard, "looks like I'll have to find the value of cos using sin!". The value of cos(42.24) is the meaning of your life. So you write this: [code]// Well, I have the value of sin(42.24f), now I'll just use high school math to get the value of cos for it! Easy. float ValueOfSin = __uber_fast_sin(42.24f); float ValueOfCos = sqrt(1 - ValueOfSin * ValueOfSin);[/code] "But wait!", you exclaim, "this is slow as fuck! Since I know I need to get the value of cos for 42.24 (and not the value of cos for the result of an arbitrary sin call), I can do this!": [code]#define pi 3.141591337 //like a boss float ValueOfCos = __uber_fast_sin(42.24f - pi / 4.0f);[/code]
Testflight were being slow to give me an invite, rolled my own deployment systems: [img]http://cl.ly/41Lq/Screen_shot_2011-01-14_at_21.47.33.png[/img] [img]http://cl.ly/41oR/Screen_shot_2011-01-14_at_21.48.19.png[/img]
Well shit, i coded that perlinnoise generator at school, then left it all there over a four day weekend. noooo.
[QUOTE=q3k;27416381] Unecessary Patronisation [/QUOTE] Yeah, I'm perfectly aware of this. I'm sorry if I just assumed that anyone implementing a more efficient sin function would realise this too, and write a cos function as a thing wrapper. I was merely wondering whether the square root function might be marginally faster, and thus allow to calculate what you want based on what you already know with some additional efficiency. I did however assume that anybody with any intelligence worth speaking of would know what you've written down, and wouldn't make a big hoohah about it, and expect a nice round of applause.
[QUOTE=TheBoff;27416629]I did however assume that anybody with any intelligence worth speaking of what know what you've written down, and wouldn't make a big hoohah about it, and expect a nice round of applause.[/QUOTE] Sorry... :(
So I'm freaking out right now. Deloc somehow has my address and sent pizza to my house. I had to pay for it.
[QUOTE=geel9;27417010]So I'm freaking out right now. Deloc somehow has my address and sent pizza to my house. I had to pay for it.[/QUOTE] I can't tell if this is a joke you're trying desperately to stretch to the point where it becomes funny or if this actually happened. Which is it?
[QUOTE=geel9;27417010]So I'm freaking out right now. Deloc somehow has my address and sent pizza to my house. I had to pay for it.[/QUOTE] You're 14. You're therefore lying. Stop lying geel.
[QUOTE=BlkDucky;27417040]I can't tell if this is a joke you're trying desperately to stretch to the point where it becomes funny or if this actually happened. Which is it?[/QUOTE] I'm being serious. Also, [media]http://www.youtube.com/watch?v=2zaxsZHSgVA[/media] [editline]14th January 2011[/editline] The beat effect isn't very noticeable in the video, but it's very accurate to the beat.
-snip- Wrong thread.
[QUOTE=geel9;27417010]Deloc somehow has my address and sent pizza to my house.[/QUOTE] wrong. but i prefer coffey over tea.
[QUOTE=geel9;27417125]I'm being serious. Also, [media]http://www.youtube.com/watch?v=2zaxsZHSgVA[/media] [editline]14th January 2011[/editline] The beat effect isn't very noticeable in the video, but it's very accurate to the beat.[/QUOTE] Don't know why nobody else said this yet but the reason it's not very noticeable is because the zombie spawning isn't very noticeable. You could probably make it so when they spawn they fade in and shrink to normal size so you always see when one is appearing.
-automerrrrge-
[QUOTE=geel9;27417125]I'm being serious. Also, [media]http://www.youtube.com/watch?v=2zaxsZHSgVA[/media] [editline]14th January 2011[/editline] The beat effect isn't very noticeable in the video, but it's very accurate to the beat.[/QUOTE] That screen shaking is really annoying.
[QUOTE=q3k;27416784]Sorry... :([/QUOTE] Yeah, I did over react there, sorry for that. I just don't like being patronised -- for example I don't have a beard, and despite being 18 I'm completely incapable of growing one :(.
[IMG]http://i944.photobucket.com/albums/ad281/andrewmcwatters/Half-Life%202%20Sandbox/dm_overwatch0000-1.jpg[/IMG] [quote=Log Message]Log message Added lPanel.cpp Added lPanel.h Replaced all instances of luaL_checkint() (MACRO) to luaL_checkinteger() (FUNCTION) for debugging purposes Moved #pragma warning disable from lgametrace.cpp to lgametrace.h Added lua_topanel() Added lua_pushpanel() Added luaL_checkpanel() Added luaL_optpanel() Added luaopen_Panel() Added Panel.AddKeyBinding() Added Panel.CanStartDragging() Added Panel.ChainToAnimationMap() Added Panel.ChainToMap() Added Panel.DeletePanel() Added Panel.DisableMouseInputForThisPanel() Added Panel.DrawBox() Added Panel.DrawBoxFade() Added Panel.DrawHollowBox() Added Panel.DrawTexturedBox() Added Panel.EditKeyBindings() Added Panel.FillRectSkippingPanel() Added Panel.FindChildByName() Added Panel.FindChildIndexByName() Added Panel.FindSiblingByName() Added Panel.GetAlpha() Added Panel.GetBgColor() Added Panel.GetBounds() Added Panel.GetChild() Added Panel.GetChildCount() Added Panel.GetClassName() Added Panel.GetClipRect() Added Panel.GetCornerTextureSize() Added Panel.GetDescription() Added Panel.GetDragFrameColor() Added Panel.GetDragPanel() Added Panel.GetDragStartTolerance() Added Panel.GetDropFrameColor() Added Panel.GetFgColor() Added Panel.GetInset() Added Panel.GetKeyBindingsFile() Added Panel.GetKeyBindingsFilePathID() Added Panel.GetKeyMappingCount() Added Panel.GetMinimumSize() Added Panel.GetModuleName() Added Panel.GetName() Added Panel.GetPaintBackgroundType() Added Panel.GetPaintSize() Added Panel.GetPanelBaseClassName() Added Panel.GetPanelClassName() Added Panel.GetParent() Added Panel.GetPinCorner() Added Panel.GetPinOffset() Added Panel.GetPos() Added Panel.GetResizeOffset() Added Panel.__index() Added Panel.__eq() Added Panel.__tostring() Added Panel.__type() Added Panel() Added INVALID_PANEL [/quote]
[QUOTE=geel9;27417125]Shnip.[/QUOTE] for some reason, the music to that video really reminds me of the donky kong 64 music on n64 :v:
[QUOTE=EarlGreyAllDay;27397272]I'm working on an extension for Chrome that dynamically highlights trending twitter topics on any webpage and allows you to view recent tweets about them in real time by hovering over them. (Tweets will appear in a small window next to your mouse, that part isn't finished yet.) [img_thumb]http://i.imgur.com/IeMEo.png[/img_thumb][/QUOTE] I am nearly finished. Here is what it looks like when you hover over a trend: [IMG]http://i.imgur.com/QiQSA.png[/IMG]
[QUOTE=EarlGreyAllDay;27418872]I am nearly finished. Here is what it looks like when you hover over a trend: [img_thumb]http://i.imgur.com/QiQSA.png[/img_thumb][/QUOTE] Looks nice.
The last week I've been writing some software at work for my department to use. Its a highly customized Bing Maps Application to show locations and information about each site. I had to use Bing because our corporate proxy already has Microsoft Virtual Earth API whitelisted. I found dealing with security permissions on a corporate network is a nightmare. I wanted the application to be located on a shared drive to ensure everyone was using the most current version (I do not have administrator access). The application failed to launch on some systems and worked on others. I thought maybe it was the .NET version, some were running up to 2.0 and others 3.5. I lowered the target framework to 2.0 and it still didn't work. Come to learn after much trial and error that there are many security policies, some of which pertain only to applications running on a network. Adding the WebControl to an application requires it has FullTrust on Intranet policies... fuck. So I tried writing a wrapper application. Basically you run the application and it sends the real application to the users temporary files directory (the real application was compiled and store inside the wrapper by means of Resources). The wrapper would once again ensure everyone was running the most up to date version. That didn't work... I hit another wall with security permissions... fuck. So then after much thought, I reversed it. Basically everyone copies a single .exe to their computer. Once they run the application it checks the network for the most current version of the application. It downloads it to the temporary files directory and launches it seamlessly. Worked flawless.
Took a break from my garbage collector to design a bit of my scripting language. I figure for a given scope, I'll use a dictionary of some kind to keep track of variables, but I need a 64-bit hash algorithm, preferably a fast one. It doesn't have to be cryptographically secure (in fact I'd prefer it wasn't since that'll slow it down). After digging around for a bit I found the [url=http://isthe.com/chongo/tech/comp/fnv/]FNV Hash[/url]. It definitely fits my criteria, but if anyone knows of a faster 64-bit hashing algorithm I'd love to see it :)
CamStudio cried while recording this, but I started doing some real work on the GUI of Facepunch for Android. [img]http://dl.dropbox.com/u/2399384/Android%20fp%20gui%20test.gif[/img]
[QUOTE=Overv;27421086]CamStudio cried while recording this, but I started doing some real work on the GUI of Facepunch for Android. [img_thumb]http://dl.dropbox.com/u/2399384/Android%20fp%20gui%20test.gif[/img_thumb][/QUOTE] There's something about that look that I like. But very cool Overv. :D
[QUOTE=Overv;27421086]CamStudio cried while recording this, but I started doing some real work on the GUI of Facepunch for Android. [img_thumb]http://dl.dropbox.com/u/2399384/Android%20fp%20gui%20test.gif[/img_thumb][/QUOTE] got an eta? you seem to be going pretty fast with this it looks nice by the way.
Started up to make the VM translator which will take commands that use stack arithmetic and translate them into the lower level assembly (in which my assembler will take and translate to the binary representations). I've finished what the translator will spit out when checking each arithmetic and bitwise command, now I need to figure out logic commands like '==', '<' and '>' preferably without using a conditional goto, although it may not be possible.
Working on implementing my environment shader to my BSP loader, right now it seems like my tangent calculation are working. [img]http://i55.tinypic.com/1z3ur5t.png[/img]
[media]http://i52.tinypic.com/3090v85.png[/media] Noise :D and as a bonus, COLOR :D
[QUOTE=Overv;27421086]CamStudio cried while recording this, but I started doing some real work on the GUI of Facepunch for Android. [img_thumb]http://dl.dropbox.com/u/2399384/Android%20fp%20gui%20test.gif[/img_thumb][/QUOTE] thus loks really pretty I lijke it but 1 queston are you goin to ad the aiblity for ratings? sory about the spelin i h ad a few drinks
[QUOTE=mmavipc;27422104][media]http://i52.tinypic.com/3090v85.png[/media] Noise :D and as a bonus, COLOR :D[/QUOTE] Nice but, why hide the Windows button? Scared of us knowing you're using Windows 7? :P
Sorry, you need to Log In to post a reply to this thread.