• What are you working on? November 2011 Edition
    3,673 replies, posted
[QUOTE=ROBO_DONUT;33406466]Because tabs still don't show up the same in every editor. You have to dick around with settings to make things line up right, whereas spaces [i]will always[/i] look the same in every editor.[/QUOTE] I had no idea where the setting was in Notepad++ took me 10 seconds to find it and be able to change it. Settings -> Preferences -> Tab Settings It's not a chore to figure out or change this setting, and it's usually the length of four spaces in almost every editor anyways. One thing I can't change though is that spaces [i]will always[/i] be annoying for me to work with.
[QUOTE=NorthernGate;33406628]One thing I can't change though is that spaces [i]will always[/i] be annoying for me to work with.[/QUOTE] How so?
so, android, in its infinite wisdom, provides real-time camera shots in YUV 4:2:0 instead of just RGB888 or RGBA8888 like iOS anyone have any tips on decoding YUV 4:2:0?
[QUOTE=ROBO_DONUT;33406466]Because tabs still don't show up the same in every editor. You have to dick around with settings to make things line up right, whereas spaces [i]will always[/i] look the same in every editor.[/QUOTE] What do you mean? Why would things not be lined up right anyway? tabs are going to be the same length regardless.
[QUOTE=Kopimi;33406310]Thats sexy The bar above the control points needs to be improved though[/QUOTE] [IMG]http://i.imgur.com/sVppB.png[/IMG] Better?
[QUOTE=NorthernGate;33406628]I had no idea where the setting was in Notepad++ took me 10 seconds to find it and be able to change it. Settings -> Preferences -> Tab Settings It's not a chore to figure out or change this setting, and it's usually the length of four spaces in almost every editor anyways. One thing I can't change though is that spaces [i]will always[/i] be annoying for me to work with.[/QUOTE] Indeed, but what if you're sharing your code? On Linux, you might find that many use eight-space tabs. Maybe not most of the people, but a lot do. They probably don't want to change their settings, either. [editline]24th November 2011[/editline] [QUOTE=danharibo;33406763]What do you mean? Why would things not be lined up right anyway? tabs are going to be the same length regardless.[/QUOTE] [code] a_long_ass_function_call( also_parameters, <tab><tab><tab><tab><tab> this_wont_align_correctly_everywhere ); [/code]
[IMG]http://i.imgur.com/6mJzA.png[/IMG] Pretty'd up the neutral so it shows up at night.
[QUOTE=esalaka;33406836] [code] a_long_ass_function_call( also_parameters, <tab><tab><tab><tab><tab> this_wont_align_correctly_everywhere ); [/code][/QUOTE] why would you do that [cpp] a_long_ass_function_call(also_parameters, more_parameters, etc_parameters, and_so_on); [/cpp]
[QUOTE=icantread49;33406976]why would you do that [cpp] a_long_ass_function_call(also_parameters, more_parameters, etc_parameters, and_so_on); [/cpp][/QUOTE] Some people do that. It's not like I can do shit about it??? [editline]24th November 2011[/editline] I personally usually do something like [cpp] function( param, another, more, whatever ); [/cpp] the four preceding spaces being equal to one tab. This nicely skips around the issue if I ever want to align my parameters.
[QUOTE=icantread49;33406712]so, android, in its infinite wisdom, provides real-time camera shots in YUV 4:2:0 instead of just RGB888 or RGBA8888 like iOS anyone have any tips on decoding YUV 4:2:0?[/QUOTE] YUV/YCbCr<->RGB conversions aren't too hard. It's just a simple matrix multiplication to convert between the two color spaces, you can look it up on Wikipedia or something. The 4:2:0 format looks equally straightforward. You just up-sample (duplicate) the Cb and Cr samples to the full resolution.
[QUOTE=ROBO_DONUT;33407199]YUV/YCbCr<->RGB conversions aren't too hard. It's just a simple matrix multiplication to convert between the two color spaces, you can look it up on Wikipedia or something.[/quote] i kno [quote] The 4:2:0 format looks equally straightforward. You just up-sample (duplicate) the Cb and Cr samples to the full resolution.[/QUOTE] thanks but it wasn't too hard to pick that up from a quick search. the question is how exactly android packs the YUV components since there are both interlaced and non-interlaced versions of 4:2:0
[QUOTE=ROBO_DONUT;33406653]How so?[/QUOTE] Like null said before click tabs puts you at one position or another, you can't misclick and accidentally end up a space to the left or right, and you can enter the tabs much quicker than the spaces. [QUOTE=esalaka;33406836]Indeed, but what if you're sharing your code? On Linux, you might find that many use eight-space tabs. Maybe not most of the people, but a lot do. They probably don't want to change their settings, either.[/QUOTE] If they are using tabs the editor will automatically make the tabs that were four spaced on your computer into eight spaced on theirs, it's not like tab settings transfer through files, where spaces do. If you're using spaces and someone does four spaces on their file, but you do eight, you might get a little annoyed. Tabs are consistent across editors, much better in my opinion.
[QUOTE=icantread49;33407485]thanks but it wasn't too hard to pick that up from a quick search. the question is how exactly android packs the YUV components since there are both interlaced and non-interlaced versions of 4:2:0[/QUOTE] [url=http://developer.android.com/reference/android/graphics/YuvImage.html#getYuvFormat%28%29]Could[/url] [url=http://developer.android.com/reference/android/graphics/ImageFormat.html]this[/url] [url=http://developer.android.com/reference/android/graphics/ImageFormat.html#YV12]help[/url]?
[img_thumb]http://dl.dropbox.com/u/4912307/ClipboardUploader/2011-11-24_00_04_31_537.png[/img_thumb] Working on a GUI system for my game, and any future xna games I will work on :D I have tooltips, buttons, and textboxes for now, gonna work on more controls tomorrow.
What's the next step after love2d? (I don't like XNA because of the pre-genned code it gives you. ( Bad excuse I know :v: ))
[QUOTE=NorthernGate;33407517]Like null said before click tabs puts you at one position or another, you can't misclick and accidentally end up a space to the left or right, and you can enter the tabs much quicker than the spaces.[/QUOTE] People actually use the mouse while programming? [editline]23rd November 2011[/editline] [QUOTE=icantread49;33407485]i kno thanks but it wasn't too hard to pick that up from a quick search. the question is how exactly android packs the YUV components since there are both interlaced and non-interlaced versions of 4:2:0[/QUOTE] Really not sure what you're asking, then :\. Shouldn't be too difficult to try each.
[quote]Android YUV format: This format is exposed to software decoders and applications. YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed by (W/2) x (H/2) Cr and Cb planes. This format assumes - an even width - an even height - a horizontal stride multiple of 16 pixels - a vertical stride equal to the height y_size = stride * height c_size = ALIGN(stride/2, 16) * height/2 size = y_size + c_size * 2 cr_offset = y_size cb_offset = y_size + c_size Whether this format is supported by the camera hardware can be determined by getSupportedPreviewFormats(). [/quote] guys
[QUOTE=C:\;33407674]What's the next step after love2d? (I don't like XNA because of the pre-genned code it gives you. ( Bad excuse I know :v: ))[/QUOTE] that's actually a terribad excuse, just delete it. XNA's a good place to start because it has the option of holding your hand for you but if you require it and/or feel adventurous you can still drill down into the graphics drivers and more complicated things.
[QUOTE=ROBO_DONUT;33407687]People actually use the mouse while programming? [editline]23rd November 2011[/editline] Really not sure what you're asking, then :\. Shouldn't be too difficult to try each.[/QUOTE] I do often. Even if I didn't you can use the arrow keys to navigate a tab instantly without the ctrl key (Not that it takes much effort to press the ctrl key, but still).
[QUOTE=C:\;33407674]What's the next step after love2d? (I don't like XNA because of the pre-genned code it gives you. ( Bad excuse I know :v: ))[/QUOTE] "what should i do after im done using a lua-powered 2d game engine" "just not xna because i hate not doing everything on my own"
[QUOTE=C:\;33403003]Are you using images or love.graphics.circle for the planets?[/QUOTE] Love.graphics.circle for the planets themselves, the "atmosphere" surrounding them is an image though.
[QUOTE=Kopimi;33407886]"what should i do after im done using a lua-powered 2d game engine" "just not xna because i hate not doing everything on my own"[/QUOTE] In all honesty I just don't like the way it's laid out. ... fine, i'll try XNA. edit: then again you're right, there is a lot of documentation for xna so yeah.
[QUOTE=C:\;33408235]In all honesty I just don't like the way it's laid out. ... fine, i'll try XNA. edit: then again you're right, there is a lot of documentation for xna so yeah.[/QUOTE] you are being a silly
[QUOTE=C:\;33408235]In all honesty I just don't like the way it's laid out. ... fine, i'll try XNA. edit: then again you're right, there is a lot of documentation for xna so yeah.[/QUOTE] Learn C/C++
[QUOTE=esalaka;33407569][url=http://developer.android.com/reference/android/graphics/YuvImage.html#getYuvFormat%28%29]Could[/url] [url=http://developer.android.com/reference/android/graphics/ImageFormat.html]this[/url] [url=http://developer.android.com/reference/android/graphics/ImageFormat.html#YV12]help[/url]?[/QUOTE] thanks for search but no it can't. the best YuvImage is gonna do is write me a JPEG which i'm gonna have to read in, which is like take the train to my neighbor's house because i don't wanna hop the fence [QUOTE=ROBO_DONUT;33407687]Shouldn't be too difficult to try each.[/QUOTE] it is pretty difficult when you don't have an android phone on hand and the fucking emulator uses a [b]DIFFERENT[/b] YUV format than most phones :v: [QUOTE=esalaka;33407731]guys[/QUOTE] AFAIK that's not NV21, NV21 is inter-laced
[img]http://content.screencast.com/users/Kopimi/folders/Jing/media/80382b9c-c904-40e9-bd1a-9997574926b7/2011-11-23_1657.png[/img]
Waywo: indentation wars
man directx makes setting render settings surprisingly easy so far i'm enjoying the api, don't see where the grief comes from
Can we just add tabs/spaces to the list of things people hold opinions on and move on? Arguing over such a little thing is just dumb
[b]anyone wanna test my cloth app?[/b] you need a good android phone and you need to be available on steam chat for an hour or two. i'm implementing the YUV decoding and i need someone who can test builds every 10-15 minutes until i get it right
Sorry, you need to Log In to post a reply to this thread.