GoldenEye: Source Forums

  • December 22, 2024, 11:49:12 pm
  • Welcome, Guest
Advanced search  

News:

Pages: [1] 2 3   Go Down

Author Topic: First blog (23/07/2007 or 07/23/07 for u yanks)  (Read 44361 times)

0 Members and 1 Guest are viewing this topic.

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
First blog (23/07/2007 or 07/23/07 for u yanks)
« on: July 22, 2007, 08:33:57 pm »

Well here i am at 3 am (freezing my ass i might add) sobering up from after work drinks and posting my life story (well not really that would be boring :P).

Any way for thoses who have not meet me before my name is mark (in game name lodle or johnyb depending on the game) and i come from the little place you yanks like to call down under (not that any of you know where it is to start with). My chosen field of occupation, as i like to call it, is the humble programmer. Im quite lucky really, with scott of having fun in data centers along the west side of USA and mario QA'ing the hell out of ea i had the title of lead and only coder slapped on me. So i thank you all for that :P.

Now thats enough ramble about me. Lets talk business. Recently i had the fun of recoding the health and amour bars in ges. My god was that harder than it looked. The old ones where really a freak of nature and should never of seen the light of day. Trying to align and change 10 different pictures in a nice curve is like trying to swallow a chain saw while being sprayed in the face with mace. Put it simple it looks shit and is a pain in the but to work with.

Now i stumbled along this nice little function that takes to images and a percent value and draws % of the first one with 1-% of the second one. Wow, 1 line of code to draw the health bars and it worked very well except one thing. The health bars we wanted are curved so this would mean that it would still have the last little bit of the box above showing, which in the end looked shit.

So now the challenge was to find a way to splice the images together on an angle. So i started looking through all the drawing functions and one sparked my eye, DrawTexturedPolygon. Now this little beast was exactly what i needed but i had no idea how the hell it worked. So i googled it, nothing, looked in the src code for other examples, almost nothing (the one found was so complex (radar) that i gave up learning how it worked. So i did the next best thing, trial and error. After the 10th rebuild I got a picture to render using it and i was so happy :D but dark times where still ahead.

I got a square to render which was the easy part and so i tried to skew it into a ... dam forget the word .. funny skewed, not so square, dovalacky (that will do) but the texture was stretching in a weird way cause i still didnt understand how it worked. Any way i left it at that and went off to work and then right in the middle of pooring my 99th pint of weinstephaner (very good German beer, and yes i am a bar tender by night) it hit me, the fact that the second set of points that DrawTexturedPolygon where unitvectors to define what part of the image was drawn.

With this knowledge i went back to the code and after 9 hours, 201 lines, 56 rebuilds, 7 sheets of scribble and 23 stupid errors they where working like a charm. I would love to show you them but sean said no. ( he is such a meany at times ).

Well thats the end of my rant for today.
When will i post next? Any ones guess. So ttul

Oh btw feel free to ask questions about what i blog as well. And a special thxs to my yr 11 math teacher Mrs Scar (yes her real name) with out her skills of teaching i would of been lost.

Mark "Lodle" Chandler
Lead Programmer
« Last Edit: June 20, 2008, 02:48:32 am by Mark [lodle] »
Logged

olileauk

  • Last vestige of [L[T]K]
  • 00 Agent
  • ***
  • Posts: 238
  • Reputation Power: 1
  • olileauk has no influence.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #1 on: July 23, 2007, 11:56:32 pm »

oh my god, you used a UK date. you absolute bloody legend.
Logged
Been here since Alpha 1.1... Those were the days.

Sean [Baron]

  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 6,752
  • Reputation Power: 2
  • Sean [Baron] has no influence.
  • Offline Offline
    • GoldenEye: Source Official Site
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #2 on: July 24, 2007, 12:04:21 am »

That's outrageous, how dare you type it that way.   :'(
Logged
/Sean "Baron" Stock
Director
sean@goldeneyesource.net

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #3 on: July 24, 2007, 12:25:28 am »

by uk you mean most of the world. :D
Logged

Polizei

  • 00 Agent
  • ***
  • Posts: 380
  • Reputation Power: 1
  • Polizei has no influence.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #4 on: July 24, 2007, 06:14:57 am »

by uk you mean most of the world. :D

Most of the American Empire8)
Logged

Mike [fourtecks]

  • Disregard KM, acquire death threats.
  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,734
  • Reputation Power: 19
  • Mike [fourtecks] is working their way up.Mike [fourtecks] is working their way up.Mike [fourtecks] is working their way up.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #5 on: July 24, 2007, 06:17:14 am »

if you think about it the most logical way to do it would be year/month/day for sorting reasons. starting with day is just bloody stupid imo because of that. but hey. no worries I suppose ;)
Logged
ge_facility, ge_facility_backzone, ge_control

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #6 on: July 24, 2007, 06:49:08 am »

mike most logical way would be day/month/year as year doesnt change (except every new year), month doesnt change that often so day is the most important factor.
Logged

Konrad Beerbaum

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,343
  • Reputation Power: 1
  • Konrad Beerbaum has no influence.
  • Offline Offline
    • Konrad Beerbaum Online Portfolio
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #7 on: July 24, 2007, 06:59:26 am »

Wait doesn't the US use the most logical way then? Oh wait, it does.  Booyah!
Logged
Konrad Beerbaum: Environment Artist
http://www.konradbeerbaum.com

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #8 on: July 24, 2007, 07:01:38 am »

Nope, usa is mm/dd/yyyy
Rest is dd/mm/yyyy
Logged

Mike [fourtecks]

  • Disregard KM, acquire death threats.
  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,734
  • Reputation Power: 19
  • Mike [fourtecks] is working their way up.Mike [fourtecks] is working their way up.Mike [fourtecks] is working their way up.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #9 on: July 24, 2007, 07:34:02 am »

mike most logical way would be day/month/year as year doesnt change (except every new year), month doesnt change that often so day is the most important factor.

I'm talking about numerical ordering like file 'sort by name' in operating systems and stuff

23/05/2007
23/06/2006
24/02/2007
26/05/1999
26/08/2003

now lets see how it would be ordered yyyy/mm/dd

1999/05/26
2003/08/26
2006/06/23
2007/02/24
2007/05/23

ah look at that, it's correctly ordered from past to present. :p
Logged
ge_facility, ge_facility_backzone, ge_control

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #10 on: July 24, 2007, 07:35:13 am »

That would be true. But for humans (who most read left to right) you want the most important / unknown info first
Logged

Konrad Beerbaum

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,343
  • Reputation Power: 1
  • Konrad Beerbaum has no influence.
  • Offline Offline
    • Konrad Beerbaum Online Portfolio
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #11 on: July 24, 2007, 08:14:39 am »

Nope, usa is mm/dd/yyyy
Rest is dd/mm/yyyy

Wait, shit.  Man I need to sleep, modeling all day has fucked with my head. 
Logged
Konrad Beerbaum: Environment Artist
http://www.konradbeerbaum.com

VC

  • Valiant Varanidæ, Citrus Jockey
  • Retired Developer
  • GE:S Fanatic
  • *****
  • Posts: 2,843
  • Reputation Power: 16
  • VC is working their way up.VC is working their way up.VC is working their way up.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #12 on: July 24, 2007, 10:31:25 am »

I use 24 July 2007 style when writing by hand, serialised 70724 when putting dates in filenames or similar computer-related tasks. In theory I like the 24-VII-07 style, but it never looks right (especially when fixed width of serial and yyMMMdd formats is a boon) and confuses the balls off of anyone who doesn't understand entry-level roman numerals, which is about 70% of the U.S. population.

Noobs.
Logged
"As for VC's scripts they have not broken the game at all, in fact the game has never felt better." -- KM
"(03:12:41 PM) KM: I would call you a no life loser, but you are useful"
"(03:12:59 PM) VC: Go ahead.  I am, and I am."

Mike [fourtecks]

  • Disregard KM, acquire death threats.
  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,734
  • Reputation Power: 19
  • Mike [fourtecks] is working their way up.Mike [fourtecks] is working their way up.Mike [fourtecks] is working their way up.
  • Offline Offline
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #13 on: July 24, 2007, 10:37:29 am »

I II III IV V VI VII VIII IX X XI XII XIII XIV XV XVI XVII XVIII WHEELS ON A BIG RIG
Logged
ge_facility, ge_facility_backzone, ge_control

Sean [Baron]

  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 6,752
  • Reputation Power: 2
  • Sean [Baron] has no influence.
  • Offline Offline
    • GoldenEye: Source Official Site
Re: First blog (23/07/2007 or 07/23/07 for u yanks)
« Reply #14 on: July 24, 2007, 03:36:44 pm »

I like mm/dd/yyyy, it works. it's science.
Logged
/Sean "Baron" Stock
Director
sean@goldeneyesource.net
Pages: [1] 2 3   Go Up