GoldenEye: Source Forums

Global Communications => Development Media => Topic started by: Mark [lodle] on July 22, 2007, 08:33:57 pm

Title: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mark [lodle] 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
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: olileauk on July 23, 2007, 11:56:32 pm
oh my god, you used a UK date. you absolute bloody legend.
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Sean [Baron] on July 24, 2007, 12:04:21 am
That's outrageous, how dare you type it that way.   :'(
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mark [lodle] on July 24, 2007, 12:25:28 am
by uk you mean most of the world. :D
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Polizei on July 24, 2007, 06:14:57 am
by uk you mean most of the world. :D

Most of the American Empire.  8)
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mike [fourtecks] 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 ;)
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mark [lodle] 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.
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Konrad Beerbaum on July 24, 2007, 06:59:26 am
Wait doesn't the US use the most logical way then? Oh wait, it does.  Booyah!
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mark [lodle] on July 24, 2007, 07:01:38 am
Nope, usa is mm/dd/yyyy
Rest is dd/mm/yyyy
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mike [fourtecks] 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
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mark [lodle] 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
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Konrad Beerbaum 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. 
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: VC 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.
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mike [fourtecks] 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
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Sean [Baron] on July 24, 2007, 03:36:44 pm
I like mm/dd/yyyy, it works. it's science.
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Loafie, Hero of Dreams on July 24, 2007, 05:02:17 pm
CANT ARGUE WITH SCIENCE!
(http://blog.modernmechanix.com/mags/qf/c/PopularScience/11-1963/tomorrows_man/med_tomorrows_man_0.jpg)
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: MtM0201 on July 24, 2007, 07:02:25 pm
Religion beats science... day/month/year FTW. lol
(http://www.hanway.co.uk/images/science_vs_faith.jpg)
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Konrad Beerbaum on July 24, 2007, 08:39:47 pm
Haha, nice diagram. 
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: pigsy2400 on July 25, 2007, 01:08:46 pm
oh my god, you used a UK date. you absolute bloody legend.

damn straight,. aint many of us brits on here i dont think, also why do the yanks call trousers, pants????unless your superman and wear em on the outside of ur trousers?!?!
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Sean [Baron] on July 25, 2007, 04:40:18 pm
Because we are better.
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: MetalLizard on July 25, 2007, 05:53:10 pm
By the way, nice blog! Keep it up everyone.  ;D
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: dlt on July 25, 2007, 07:00:41 pm
damn straight,. aint many of us brits on here i dont think, also why do the yanks call trousers, pants????unless your superman and wear em on the outside of ur trousers?!?!

I would say we are wrong with this one. We call them underpants so this infers that they are under a pair of pants. As for the date Day/Month/Year for me.

 
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: InvertedShadow on July 25, 2007, 09:37:12 pm
What do you guys call soda?
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Konrad Beerbaum on July 25, 2007, 10:21:15 pm
If you say pop, I'm gonna find out some way to give boris your home phone number. 
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: VC on July 25, 2007, 10:33:15 pm
(http://plaza.ufl.edu/vix44/omgscience.gif)

Wow, when this was my signature, it was months ahead of its time.
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: dlt on July 25, 2007, 11:34:05 pm
If you say pop, I'm gonna find out some way to give boris your home phone number. 

yup pop  :D
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mike [fourtecks] on July 25, 2007, 11:48:54 pm
I say pop so ,.|..
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Sean [Baron] on July 26, 2007, 12:13:30 am
I say soda
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Sergeant Kelly on July 26, 2007, 04:41:32 am
I don't see the need to use Soda or Pop. Why not just say Root Beer, Coke or Pepsi? :P
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Mark [lodle] on July 26, 2007, 07:27:03 am
LOL here in aus we call it fizzy drink
Title: Re: First blog (23/07/2007 or 07/23/07 for u yanks)
Post by: Sean [Baron] on July 26, 2007, 04:12:33 pm
I don't see the need to use Soda or Pop. Why not just say Root Beer, Coke or Pepsi? :P

Usually I do call it whatver it is, coke, pepsi, etc. but if I'm talking about all soft drinks, I call them soda's.

Ok this conversation is stupid. lol