//ribbon

analogi

a place with pace that love peace

My Photo
Name:
Location: sungai petani, kedah, Malaysia

Thursday, July 29, 2004

semangat yang teruja



semalam, aku revise semangat dan sikap malas aku. hari ini terasa momentum untuk buat kerja tu dah kembali. thank god the all mighty! alhamdulillah, lega bila kembali ada momentum dan semangat. harap ia berkekalan la sampai hujung semester ni. moga2 begitulah. aku bangun pagi ni dengan semangat baru dan terus kembali bersama mr foggy.

aku revise balik function yang telah aku buat untuk mr foggy. tak banyak rupanya, huh! my fault! function2 adalah seperti berikut:

SetFogCoor(x, y, z); //tetapkan koordinat kabus dalam ruang maya
SetFog(zStart, zEnd, density); //tetapkan isipadu kabus dan ketebalan kabus
SetFogTexture(texture); //tetapkan hanya 1 tekstur
SetFogTexture(texture1, texture2, texture3); //tetapkan 3 tekstur
SetFogColor(red, green, blue); //tetapkan warna kabus
FogBoundBOx(); //lukis sempadan bagi isipadu kabus

aku memang tak puas hati dengan kerja aku. hampeh giler! aku masih cari macam mana nak buat the right presentation untuk projek ini supaya lebih nampak interesting. perlu lebih kreatif. minda kreatif, datang pada daku! ahaks! oklah, jumpa lagi. i got to continue working. have a creative thursday guys! wassalam.

p/s: design dekat bawah ni pun lack of creativeness. damn! come to me mr creative!


besaq

Wednesday, July 28, 2004

rabu, aku merapu



kalau sesiapa pernah baca entry aku dalam analogi.envolutionv.com, aku ada cerita pasal jatuh cinta. yup, cinta. hampir setiap hari aku jatuh cinta. orang cakap cinta pandang pertama la kan. what ever ... bagaimana? sebab setiap hari pasti aku terjumpa cik adik yang cantik, tersenyum, ayu dan sebagainya. sekali lagi betul la apa kata mamat orang putih tentang kajiannya tu. atau sekarang wanita terlalu banyak. mungkin juga sebab tak banyak aku terserempak dengan ramai budak2 lelaki. kalau nak naik lif tu, mesti puratanya adalah cik adik2 jer. mana perginya budak lelaki ni? semuanya naik tangga ker? apa2 pun aku enjoy jatuh cinta setiap hari, what ever ... aku rasa setiap orang alaminya kan? termasuk kau, my friend ...

but definasi cinta lebih besar daripada jatuh cinta setiap hari, cinta itu berbeza? jatuh cinta itu berbeza. jatuh cinta itu aku anlogi sebagai starting point untuk cinta. am i right? aku jatuh cinta setiap hari, tapi aku tidak bercinta. why not? sebab aku mmg takder buat follow up selepas jatuh cinta? so, cinta itu jatuh dekat situ jer la. apsal la aku merapu dengan cinta pulak hari ini. any how, aku sebenarnya progress aku slow sket beberapa hari ini. damn! aku pun tak tau kenapa. adakah sebab aku terjatuh cinta setiap hari. so, aku rasa why not hari ini aku merapu sket agar dapat semangat nak buat projek. apa lagi aku nak merapu di hari rabu ni haa...


rabu rabu
aku merapu
sambil makan muruku

rabu rabu
aku mati kutu
nak makan putu

rabu rabu
aku pasti jatuh cinta
dengan sesiapa yang aku jumpa

rabu rabu
lagi lagi merapu
terbang-terbang sang kupu-kupu

ha apa da merapu
apa da ikan kerapu
aku tersipu-sipu
lagi aku merapu


p/s: gambar awek tu macam arvil lavinge kan, but she's not. itulah awek malaysia. damn! it was cute! ahaks! oklah, wasalam. no offence cause i play defence, have wicked wednesday you guys! smile everyday everybody!



besaq

Tuesday, July 27, 2004

selasa yang selesa

aku tak mahu banyak cakap sebab tak ada apa2 yang nak dicakapkan.

kalau siapa nak easy money, bolehla masuk webdesign yang diorganise by MDC. untuk maklumat lanjut sila layari -> http://www.msc.com.my/websitecomp2004.htm
hadiah utama berupa wang tunai RM5,000+sijil penyertaan+komputer peribadi. kan bagus kalau dia kasi laptop.

oklah, just enjoy the images below. wassalam. happy selesa selasa!



besaq


besaq



Monday, July 26, 2004

july, monday, and what so ever



i dont't know what i want to talk today. any idea? hmmm ... memang takder idea la. any how, minggu ni adalah minggu terakhir bagi bulan julai, bulan membaca. did anyone finish reading any book? don't be just like me, i haven't read any book except the book i must: the bluebook, redbook and some internet materials. August is just around the corner, and next month; the school holiday, hari merdeka, my midsem holiday. do anyone celebrate their birthday next month. if there, i would to wish happy ealier birthday. huh! what happen so far in july, i don't know much cause i don't read newpapers lately. maybe the missing helicopter at berkelalan, the malaysian idol had started, the released of the filipino in Iraq, and phillipines had take back their askar from Iraq, the game between Malaysia and Norwich, the copa america, the sad: pemergian adik atiqah, mmm what else? yup, greece won the euro cup, who ad suspected that! wicked! okay la, that's it. be good citizen, be a good human, be good on whatever you wanna be, drive safely, and say Tak Nak to smoking. have a Magnificent Monday! i'm going to wash my kain-kain la, wassalam.

#FOG: color your dream fogs



yup, now mr foggy can be color customize. select your favourite color and walaaaa, there you have it ...
i think this would be the shortest code of any function for mr foggy at the moment

[code]
setcolorForMrFoggy(red, green, blue)
{
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
glColor4f(red, green, blue, 0.50);
}
[/code]

yup! that's it. the first line of glTexEnvf; texture will modulate/blend with the color from the second line; glColor4f. did you get it?

#FOG: meet the mysterious man

i would introduce you the the man behind the good moment. yup, he is the mr glDepthMask. he had help me to make gl_depth_test and mr foggy became friends.
actually, glDepthMask is a function i used to make the depth buffer become read-only. why? when this glDepthMask(GL_FALSE), it become read-only right? so, it will preserve the depth value, but it will not eliminate any opaque/solid object (if the opaque object is behind my billboard). so, it then blend perfectly, mr foggy and any opaque object. if i dont't use this glDepthMask, it will be the same as before (see previous pics). previously, the billboard will not blend with other billboard and opaque object. so we can see the rectangular shape of the biilboard. so, mr foggy will not as realistic as real fog.

Friday, July 23, 2004

images

 

#FOG: the mysterious man between them

yup, when i got back today ... i just can't keep thinking about this matter ... why not mr foggy be friend with mr depth. this is gonna be hard i guess ... but as mr anti-keseronakan; 1kHz, gave me a hint about GL_ALPHA_TEST. why not i flip over the redbook or the bluebook instead. let see what the bluebook and the redbook gonna supply me ... mmm ... ahaaa... ahaaa... mmmm... ok. hahahaha! before that, let me play my totalclubmanager first! HAHAHHA! tah hapa hapa ... boleh le pulak aku pikir nak main game time kritikal macam ni ... hah! aku tak kira, aku nak main jugak ... hampir 2 jam jugak aku buang masa dengan total club ni ... and then dah petang, penat pulak rasanya ... have a short nap ... apa nak jadi ni, time kritikal macam ni, boleh bantai tidur pulak ... and then, lets flip over the redbook and the blue book again, aha .. aha... aha.. mmm ... yum ... yum ... aduih, lapar pulak rasanya ... have a nice hot milo ..., la ... time kritikal macam ni boleh dia rilek sambil minum milo pulak ... orait! orait! aku baca la ni ... letih juga kerja2 reading ni ... selak sana, selak sini, baca sana, baca sini, tak paham ulang balik, tak paham2 juga ... so apa yang aku buat, lebih baik tengok contoh ... ok. ok. ok. no luck petang ni agaknya. so, night, the searching continues ... tiba2 tv terbuka, tengok CSI, tengok MONK, tengok latte@8, tengok LateNightShow with Dave ... abis2 dah almost pukul dua ... redbook dan bluebook terbuka di depan mata ... whatever ... so cuba2 try apa yang aku dah baca dalam program ... what can i say, after all the suspend and the laughter lepas puas tengok tv, menda ni menjadi ... WOW! damn! alhamdulillah. syukur! but i have to make some postmortem untuk lebih clear apa yang telah exactly berlaku, i'll story it later lah. but, this is just miracle man! wicked! look at the pic below for the output ... damn cool!






Thursday, July 22, 2004

khamis datang lagi

today is khamis, a day before weekend. huh! yesterday, i almost finish my pending work for this week. glad to light up such burden. but few problem had to fixed. nevermind! and yesterday, i went back to career fair just to pass up my repaired resume. ok lah, so... so...

yesterday, i decided to try some interface design. dah lama tak buat this thing. rasanya dah karat kot skills interfacing ni... here are the result of yesterday interface design ... what i can say, not a WOW! design ... but i tried, berkarat lagi ni ...






paddy field! the most comman thing to see at my home state, that is why they called it negeri jelapang padi. i miss that scenery. intense become relax, mad became relax, sad became relax, the paddy field can change my emotions at times. maybe it have this green color material or can i say a fotosyntesis miracle ... ahaks! ... so, i have to see my paddy field to feel relax ... so, this came out ... paste as my wallpaper ... yeah! fresh, relax, ahhhhhh! feel the calm man, burung berkicauan, cit... cit... cit... ahh! great! ... wassalam.



orang1: berapa lama?
orang2: 1 tahun ...
orang1: huh lamanya ...
orang2: waran ni mmg setahun ...
orang1: tapi saya tak buat salah apa2 encik
orang2: tak salah? memang awak tak salah, huh!
orang1: saya cuma nak beli BARANG ni jer
orang2: memang awak tak salah! huh!
orang1: abis tu, sebab apa bagi saya waran?
orang2: yela, BARANG ni awak punya kan? jangan nak lari pulak
orang2: HOI! apa la bengap sangat hah!
orang1: apa? saya tak salah encik
orang2: ni warantty la bodo ...
orang1: awat tak cakap awal2, ingat kan waran tangkap
orang2: apa da...
orang1: apa da... lain kali cakap biar clear

Wednesday, July 21, 2004

THE interlook, the INTERview

actually the interview i suppose to attend have been cancel. hahaha, what a relief! ahaks! but the talk that were conduct by the MDC (the company that suppose to interview me) were knowledgable. much input la. i don't know there was an internship programme. what an oppurtunity! this internship programme allow fresh graduate to have work experiences with MSC status company. how you like that! good oppurtunity i see here! if i have luck, maybe one of those MSC status would like my repaired resume. hahaha! or you can get more info at http://internship.mdc.com.my and petang tadi terpaksa la aku repair my resume. actually, the previous resume, i write it within 1 hour. not much details info included. bila diorang check balik, malu pun ada. sungguh memalukan. but, i have repaired it, it is a better resume with details. malam pulak aku contact my last practical supervisor, mr azhar. actually nak mintak untuk letak nama dia dalam ruang references. mr nor azhar ni sempoi jer, memang best kalau dapat boss macam dia. gelak la tiap2 hari, tapi kalau masa serius kena serius la. anyway memang best aaa, ilmu pun bleh tahan jugak aku cedok dari dia. dia benarkan, for sure lah, and dia ucap good luck lagi. yeah! i need that man! thanks again. wokeh lah, enough for now! wasalam. better continue work with mr foggy.

Tuesday, July 20, 2004

#FOG: do depth dead?

damn! my fog's billboards can't cooperate with mr depth. i talk to mr foggy last night.

me: please do me a favor.
mr foggy: i would not cooperate with this depth guy? huh!
me: please la. i am begging you ...
mr foggy: this is all his fault la, not me. i am doing the best i can.
mr foggy: i am fog, so my billboards has to stay close la. but this depth guy can except it.
me: so what should i do?
mr foggy: i don't know, but sometimes i can sacrifice my principle la ... it is only for you la ..
me: how is that?
mr foggy: to do so, you have to leave a space between my billboards.
me: that's it?
mr foggy: yeah, but you'll will see a weird fog. not a fog actually.
me: hah! mmm, damn! i am stuck! oklah, i am going to bed. *wish to dream how to solve this*

if i don't use this depth guy or technically known as gl_depth_test, all the objects, the billboards will be draw in one straight line. because there is no depth. if i use this depth guy, my fog look jaggy. and sometimes i wonder, why don't the quads/billboards blend it's texture. why lah? adakah ini salah opengl? or the setting is not correct kah? look at the pic lah for more details views.





Monday, July 19, 2004

what can i say



salam, and happy monday! what can i say. no momentum anymore lah. nak buat PSM pun susah, lembap!!! hantu malas ni asyik duduk bertenggek above my head, saying to me 'don't do your PSM!' ahaks! malas nak mampus! someone tolong la berleter dekat aku sket, i need that leteran so much! kalau tidak susah aku! ahaks! anyway, baru semalam aku sambung balik progress mr foggy. nak start tu is the hardest thing la ... lagi pulak, macam-macam pulak masalah timbul, gedebuk! masalah ni, gedebik! masalah tu. mencabar betul minggu ni. sempat ker aku nak tunjuk progress to mr superior. i hope so. in addition, minggu ni (this wednesday) ada interview dengan Multimedia Development Corporation Sdn. Bhd. satu habuk pun takder buat preparation lagi ni. alih2, bantai la jawab apa yang dia tanya. ahaks! rasanya tak boleh banyak tulis sangat, nak kena stop ni. alamak! kena tambah sket la sebab nak cerita pasal trip ke kuala lumpur tu. mmm, perginya malam jumaat. sampai la kl pagi jumaat, around 4.00 o'clock. aduih! awalnya. then, pukul 10.00 dah ada dekat lowyat untuk beli that laptop. mana kedai buka lagi. lepak ler dekat bawah tu. aduih! bosannya! pukul 11++ baru la kedai bukak, lambat betul la compuzone ni bukak kedai. lembap betul! bila dah buka, aku terus tanya la ... bla bla bla, gedebuk, gedebak, ting tong, hahahaha, hehehhehe, angkat la model IBM Thinkpad R series. boleh la tahan spec dia. pastu tambah hp printer 3 in 1 (printer+scanner+tak tau satu lagi apa, copier kot). habis tu, pakndak aku ajak pergi pasar seni. aku ikut jer la. dia nak beli lukisan. i have no idea, bila pula dia minat lukisan ni... rupanya2 nak letak dekat restoren baru sepupu aku tu... cari punya cari, takder yang melekat dekat hati dia ... mmm, dah lama aku tak ke pasar seni ni ... tak banyak berubah pun, tapi banyak juga barang2 menarik, awek pun cun2, ahaks! nanti bila ada masa, maybe lepas habis semester ni ... nak try datang balik la sini ... analogi tour dalam Malaysia, ahaks! alamak! dah banyak dah ni, kena stop la kot ... banyak keje nak settle ni ... oklah, wasalam. have a moody+marvelous monday! wish me good luck! i need that!

Thursday, July 15, 2004

#FOG: tackle fps

yesterday, when coming back from lab. i keep thinking about the this fps thing. so i decided to limit the billboards. and the ideas goes ... the programs will checks how many billboards being drawn currently. then, if the number of billbords exceed a value, for instance 100. it will divided the fog volume into 2. the front divided volume will remain, the second divided volume will be erase and will be replace by one billboard that had a different texture with the opacity of almost 100%. so, logicly it will increase the fps, is it right? for the movement of the camera, it will check in some distance if it near to the second divided volume. if yes, then it will be draw. mmm ... how about the camera turn back to the first divided volume? what will happen? or only if it (camera) far away from the first divided volume? mmm ... much to thing hah! how about clearing buffer? how i suppost to do this? lots of works to do man!!!

buffer: setahu dalam opengl punya konteks, ia adalah pixel2 yang dilukis dalam persekitaran tu sendiri ... buffer pegang nilai depth, color dan macam2 ... adakah aku kena clearkan depth, clearkan color utk naikkan fps, who knows ... lotS and lots of works to be consider!

and about the perlin noise, i notice that this perlin guys had produced lots of new interesting techniques. kebanyakannya tak membebankan komputer lah. his prefer to use noise func to create cloud, smoke or other gaseous objects. back to the perlin noise, i still thinking how to integrate that into my project. should i generated it inside the program or outside and then import it into my program.

last night, again meeting with the supervisor. ok. but macam mana dekat komputer dia gambar/tekstur aku pecah2. bengang betul macam ni. adakah aku clamp gambar kecik kepada quad yang terlalu besar? so, nak kena buat besar lagi ker. yang aku guna ni pun saiz 400px X 400px. enough la!

kuala lumpur anyone

maybe tomorrow i will be in KL.



semalam hujan cuba bermanja dengan aku. mengacah2 untuk membasah kuyupkan aku gamaknya. tapi tidak pula ia berbuat demikian. alhamdulillah. sampai saja di kafe, hujan menangis tak berhenti2, bukan menangis teresak2 lagi ... rasa bagai takkan berhenti selagi belum langit malam muncul atau sang bulan menggantikan sang matahari ... itulah, selesai makan, sang hujan berhenti menangis, mungkin sebab gembira tengok aku berselera makan petang tu ... hahaha, melantak jugaklah aku petang tu ... bila saja mencecah kaki di muka pintu bilik aku, hujan menangis kembali ... apsal sedih pulak ... tapi tidak mengapa kerana sang guruh dan sang halilintar tidak bersamanya ... aku teruskan kerja yang tersadai pagi tadi ... terima kasih sang hujan ... kau teman setia aku minggu ini ...

oklah. itu hasil merepek aku hari, wassalam ... have a nice terrific thursday!

Wednesday, July 14, 2004

#FOG: what happened



slow slow progress i had yesterday. i think i haven't done much. except for a easy func SetTexture(tex1, tex2, tex3); the func that take 3 textures for the volume. itu pun, i had done in the morning. in the afternoon, as usual i have to go to lab and had to be back early cause it will rains after that. yesterday, i've tried to find any information about creating a *.lib file. is it correct if i say that creating a *.lib file is a part of creating *.dll (dynamic link library). anyone, please respond man! aku tak mahu sesat maa! this *.lib thing, i will try to make it as glpng, glui does. just for fun. and yesterday, after the rains stopped, i try mr foggy into my previous VR assignment. nice! nice! nice! but you have to include many2 file lah. so i thought if we use the *.lib and *.dll, it will less files to be included. see pic above for the integration of mr foggy in that VR assignment. as i said, not much to be report here about yesterday progress. any comments or opinions or suggestions, please do so. i much appreciate it. so, that is a wrap.



p/s:
* thanks to 1kHz for the perlin noise idea, a great one two. i will consider that. it is kind a cloud filter in photoshop ... nice man! thanks!
* ijok, betul ker nombor yang ko kasi tu, nanti aku call dekat mana center di KL. insyaAllah kalau takder apa2 hal, khamis @ jumaat ni aku turun KL ... laptop shopping

rains isn't bad

rains isn't bad after all. we get the chance to have a nice sleep cause we feel so sleepy when it rains. we do not have to go to class when it rains cause we have excuse, ahaks!. and we don't have to water the plants cause it is raining outside. it is much on the brighter side. but for few people it is not, for instance, the rubber tapper and the fisherman. so yesterday it rains again, a heavy one too. i am lucky cause i got back early yesterday. after that it starts to rains. so, i guess i cannot continue my project, it is an excuse again. so, i decided to read lah! it just last 15 minutes i guess, then i got asleep. i am not reading a boring material, it is cg tutorial maaa! yeah, sleeps make me rest, but the ideas keep coming. so, after wake up, i got this idea to try mr foggy into my previous projects. raining is not a bad thing after all. and i got to see fog after the rains stopped. yea! enough said.



below are the pic of a cute little girl i got from a friend (an ittutorian). cute isn't she? enjoy the pic! i don't want to manipulate much the original pic cause it is almost a perfect pic. i just contrast it, level the colors and put some text on it. just look at her face expressions, just nice and cute. only a patient one manage to take this shoot. credit to pic owner again.



Tuesday, July 13, 2004

lab, laptop



almost every petang, it will rains. semalam, semasa aku keluar nak pergi lab; indah sekali suasananya, bagai langit dalam mood gembira. sekejap saja di lab, mood si langit berubah, kenapa sedih pula. aku agak, petang ini pasti langit menangis lagi. yup, memang betul! jadi terpaksalah aku redah saja hujan sebab aku masih belum lunch dan belum solat zohor. mmg semalam, langit begitu sedih hinggakan aku basah kuyup dibuatnya. sampai saja dibilik, terus mandi dan telan si paracetamol a.k.a panadol. hujan masih belum reda, serebrum, sereblum dan medula oblongata aku berdenyut2 rasanya. lebih baik aku tidur sekejap. alhamdulillah, selepas tidur, kembali segar walaupun mamai. solat asar, kemudiannya terus on coding.



mengenai tajuk pulak, aku dah cari notebook atau laptop yang menarik. seingat aku, kalau nak beli laptop/notebook, elok pilih yang branded. senang nak dapat barang, maintenance dan warranty. tapi nak cari dalam .net susah la sket sebab bukan price RM. aku just jumpa dekat dell and lowyat.net. bila aku compare2, dell punya spec lagi best dengan yang lowyat punya. harga pun not bad la. model InspironTM 600m, harga dalam rm4,399. tapi mana pulak nak cari branch dia. dekat lowyat pulak takder jual brand ni, yang ada hp compaq, IBM thinkpad, toshiba satellit, benq, acer and few others.

and today is tuesday, be amuse! wassalam, have a amused day guys!


#FOG: ehem ehem

except from customizing code and checking for algorithm error, what else i do yesterday. hah! recontruct 3 columns in the volume and create new textures. that is all folks!

Monday, July 12, 2004

weekend treats

much of my work/progress i had done on saturday. on sunday, i woke up late. i don't know why. as i woke up, it is already 11.30 am. huh! ahaks! woke up late, mamai and then watch tv, bath, eat lunch, watch gilmore. when i want to start to code, it is raining with thunder ... i'm not blaming on the raining man. so, i turn off my computer and felt asleep on my bed. ahaks! as i woke up, it is already 4.45pm. ahaks! don't be mad at me! mamai again. then, solat asar! then, i decided to went to jusco to buy 3 in 1 milo. mine is already finish. my first stop at jusco, as usual is at Mr Perfect and Handsome (MPH, pinjam kata2 zuril). not to buy books, but i love to hang out there. read few magazines, read few programming books, ahaks! it is free. thanks to Mr Perfect and Handsome. i spend about an hour in there! then, back to my mission, to hunt down 3 in 1 milo. wow! there is so many people in here. why? it is because the sign stated 50%, 70% discount. that's why ... mmm, should i bought something? i think no, i came here to buy 3 in 1 milo only. ahaks! maybe next time lah!



ahaaa! there is my 3 in 1 milo. yea! yea! yea! before i pay it, let's jalan2 around, maybe ada benda menarik yang boleh dibeli. i was attracted to this girl, ehh.. silap2 attracted to this beatiful2 botol2 minuman ... i like to collect different shape of botol ... mmm, it is coke and pepsi japanese version. i want to buy it! hah! it cost rm8.99. man! i can't effort that for a piece of metals. maybe next time! or anyone of you would like to buy it for me? ahaks! then, i saw this mini 7up. it cost rm2.09! why so expensive lah. maybe i can it at lorong kulit! but i decided to bought it! ahaks! that evening, i only bought a soya bean drinks, a mini 7up and of course 3 in 1 milo. had to long long queue for this 3 things. huh! before go back, stop at music store. just to look any new records. there is no good one. so, go back lah, it is almost 7.00pm. malam pulak, had to watch O.C, ahaks! i only start my code after 12.00, ahaks! so, have to stay up late lah ...



opsss!!! last saturday, my mom called to inform that my cousin have received her check. what for? to buy a notebook. actually, we have made a quotation from a kedai before (at sg. petani), but her father decided to buy the notebook at KL. he said, we could find latest one with cheaper cost! mmm, yeah, he right. so, he asked my mom to asked me to survey a new one. with a cost below rm5000. hey! anyone of you have any suggestions? because dah lama aku tak usha2 hardware punya barang, harga pun tak tau. i thought i could find in lowyat. any suggestions kedai mana yang best. ada juga aku pernah dengar 'house of notebook', korang tahu tak dekat mana kedai ni? kalau ada cadangan atau tahu kedai2 yang best, tolong la inform aku, kalau nak hantar email, send it to an_urb@hotmail.com. ok then, wassalam. have a good quality monday you guys!


#FOG: working with volume

this week progress is building the volmetric fog. so far so good, as i might say. as far as i concern, i archieve something this weekend, HORAYY!, hoi hoiyahoi! lets story a little bit about the volume.



it begins ...
user have to send information to build the volume. the parameters are zStart, zEnd, density scalar. this 3 parameters or variables will be send to SetFog function. in the SetFog function, it will calculate the distance of the volume according to zStart and zEnd. then it will also find how many billboards will be in that particular volume. to calculate how many billboards are in that volume, variable; distance and density Scalar will be used. after that, the big volume will be divided into 3 columns. why? looks below ...



the lines are billboards with columns, my volumetric fog is more like a volume rather than with no columns one. we can spot the different between this two whne we enter the volumetric fog itself ... the experiences are differ. other than that, i manage to fixed few bugs. thanks god! alhamdulillah! i have plan to set different textures for this 3 columns to make it much more realistic. and today, i build one more functions; SetFogCoor()... so that user will be able to set where the fog will be in their environment ... and not to forget, i had create interface (using glui, my many thanks to Paul Rademacher) for user can interact with my fog, see below


Friday, July 09, 2004

#FOG: the loud laughing is starting
===================================

-0200 am-
yup! it is starting ... but it is part of the challange ... i have to plan it slowly and perfectly. i hope keberkatan penghulu segala hari, hari jumaat; dapat melangsaikan hutang aku berjaga lewat malam. oleh kerana, sakit leher tu belum hilang, i suppose i have to go bed early. error all over my code. why? why? why? maybe sebab otak tak dapat berfungsi bila letih. dah lewat. i have to go to bed! good night, wassalam.

-0930 am-
i have to wake up early, i have to do! so i wake up early than before! i have to pending my mr foggy. i thought i want to pay the electrical belongings fee to the college admin and then straight too PSZ, just want to see the book fair organized by penerbit UTM and try to look out entry form for career fair. i think today is the last day! i hope i'm not too late. it's raining now and i'm going to have my bath now.

-1200 noon-
settle about the electrical fee, got the entry form (it is a form for interviews). got back quickly to write a resume. damn! after finish writing it, suddenly the MS Word hang, what the heck is this? it is part of the challenge. go to solat jumaat.

-0300 pm-
after lunch, get back to room. quickly write again the resume. AGAIN! hope to make it before 4 pm cause any entry will not be accept after 4 o'clock.

-0400 pm -
nasib baik sempat lagi, hantar borang and tunggu 15/7 utk shortlist nama2 peserta yang layak di interview.

-0430pm-
here i am dekat lab, cuba mengupdatekan blog sendiri. and jangan salah anggap dengan artwork dekat bawah ... sila baca dbetul2 and have a nice weekend guys


Thursday, July 08, 2004

title unknown

#FOG: meet the superior
========================

last night would be my first meeting with my supervisor. it turn out to be fine. he as always gave much input as well as suggestion. yup! nice, i love that suggession and i'll try my best to create such ouput. so today, i doesn't want to talk about the progress as idon't. have to finish my extended abstrak that to be summitted today. ahaks! many corrections to be done.

-------------------------------



8/7/2004; is today a great day! don't know yet but still have to make it so a great day. wake up late this morning as i stay up late last night. and still my eyes are not open entirely yet. wahahaha! people said that when you laugh, you could stay awake. is it? this morning oi found that 'disagree', the malaysian made band had release their second music video; suicide note, after the release crumbs music vdeo. the music video, not bad! the actors, the locations, the camera angles, the lightings, the art values, it is all there. almost the entire scenes of the video, we could see peolple running all over the place. and i can't find the true story behind it. it ending is just hanging .... i could make the conclusion of that video. but i still enjoy it. it is the good music maaaaa!!!

then semalam, ada seseorang tanya dalam satu forum mengenai image processing. yup! that one tough subject man! all the bytes, the offset, it is hard! but i can learned. not impossible man! this seseorang ask how to convert from TIFF file image to RAW file image. i wonder! ahaks, lama dah tinggal benda ni, memang tak ingat. so aku just pergi tanya pakcik google la. bila baca2 balik, ada la ingat sket all those thing. first thing sebelum nak process/convert, we have to analyze the header. dalam header tu la tersimpan macam2 maklumat seperti panjang, lebar, jenis (MSB-most significant t bit, LSB-less significant bit). dari situ kita boleh la manipulate this image, nak buat patterning ker, haltoning ker, contrast ker, dithering ker, dan apa lagi la?

untuk buat manipulation, kena cari stripoffset kerana permulaan data bermula selepas nya. lepas dah cari strip offset, mula la baca fail input berdasarkan panjang dan lebar yang kita extract dari header tadi.

//contoh nak buat ascii
for [i=0;i kecildrpd image_width;i++]
for [j=0;j kecildrpd image_height;j++]
{
baca dari fail, piksel per piksel
uji nilai piksel dengan range yang berbeza
if (piksel==100)
lukis bentuk # dalam fail baru (ascii file)
else if (piksel==128)
lukis bentuk @ dalam fail baru (ascii file)
}

contoh diatas adalah rough jer, aku bukan nya ingat sangat macam mana nak buat. just the idea jer. for my own revision only. kalau salah tolong betulkan la. ahaks! isyhh! panjang pulak aku bersembang hari ni. ahaks! so, it is the time i guess. time to stop. have a very wonderful and impressive yet mysterious day, today! don't forget to smile and laugh. wakakakAKAKAKWAKAKWAKAKWA! AHAHAHAHAHAHahaha! excuse me! ok, wasalam.


wall166

Wednesday, July 07, 2004

sakit leher



yesterday i mumble about attitude. today i want to talk about sakit leher. tiba2 after bath petang semalam, tengkuk dah rasa sengal2, sakit2. nak toleh kiri, ouchhh! try pusing kanan, uHHhhh! nak tunduk, argggHHHHhhh! apsal pulak tiba2 sakit ni. benar tapi pelik. do anyone know how to legakan sakit leher? ada orang cakap tampal koyok, ada orang cakap sapu mopiko, ada orang suruh urut. ada orang cakap sakit leher ada kaitan dengan stress, betul ker? bergantung juga kot? ada sekali aku sakit tenguk sebab this barber pusing tenguk aku lepas gunting rambut. kalu sesiapa pernah pergi to indian barber shop, they know, they(barber) always do that. tak sempat nak bagi tau terus pusing leher aku! pRAKKK!!!! prakKKKK!! aku first time dekat kedai tu, mana la nak tau dia will do such thing. tapi dalam hati, auchhhhh!!! at first memang tak sakit, tapi lepas satu hari, baru rasa sakitnya. 2,3 hari jugak baru hilang. so, aku ingat nak biar jer sakit leher ni heal by itself. teringat pula petua orang tua yang suruh jemur bantal jika sakit leher selepas bangun tidur. sometimes it works! i don't know! dah la tu, jumpa lagi. wasalam. have a good sunshine day everyone!



wall164

#FOG: hello classy

hello wednesday! hello guys! it is wednesday, and it is the day to to lot of works cause i have to present it to my supervisor. GEDEBAK ... GEDEBUK ... alamak, what have i done so far ... fuh! nothing! arggggghhhh! but the gilmore things make me turn on to do some progress, ahaks! stay up late and continue again the next morning. i hope i do much. so far, i am working on with mr foggy classes. i'm a newbie for object-oriented programming. damn! it hard to change man! although i code it like an OOP expert, i still stuck on procedural/structural method. like the lovely stacie orrico always to sing, "i am stuck on you". ahaks!



this is the small archievement i had so far

class QUAD{
public:
VECTOR v1, v2, v3, v4;
VECTOR center;
GLfloat w, h, halfw, halfh;
GLint idTex[2];

QUAD();
QUAD(VECTOR v1_, VECTOR v2_, VECTOR v3_, VECTOR v4_);
void Draw();
void DrawBillboard(QUAD temp, GLuint* Texture);
void CreateBillboard(GLfloat mat[], QUAD quad, GLuint* Texture);
void GenerateBillboard(QUAD quad, GLuint* Texture);
};

class FOG{
public:

void DrawBillBoard();
void DrawVolume(); //contains many billboard
void SetFog(GLfloat zStart, GLfloat zEnd); //set the volume of fog
};

but this not impress me yet! i have to compile a good code as my code still tunggang langgang lagi maaaa. and few of them still not working yet. wish me good luck guys!

Tuesday, July 06, 2004

tuesday is the day for gilmore girls



hello everybody, yesterday would be an enjoying day as i don't have any progress. i can't think of anything except hearing music, again and again. no concentration involve. but alhamdulillah, today i manage to change this attitude. trying to plan on the fog's class construction. slow and steady i guess. i always wanting to finish it as soon as possible but ...



so, today. what can i talk about? attitude? can we just mumble about attitude? what is attitude? does attitude present a properties to a human? or it is just a flexible one, it come and it goes? attitude, dude! or it related to the music we hear? does it related to the atmosphere of anyone life? damn! this attitude is just ambiguous to be defined. hah? defined your own attitude lah.



attitude perangai
=================

attitude, dude!
perangai, mamai!
aku bukan baik
sebab aku tidak sempurna
itulah hakikat menjadi manusia
tapi hidup mengubah perangai
paksi baik, paksi jahat
bak besi magnet
yang ingin selalu medekati aku
tapi segalanya adalah attitude
pembuat keputusan yang sejati
kerana aku tahu aku sering diperhati
dari mula hidup hingga aku mati

perangai, attitude
itu masih boleh diubah
jadilah baik dari jahat
kerna pasti semua orang
akan hidup dalam bumi yang sihat
tanpa ada salah sangka
tanpa perlu menghitung angka
kematian akibat konflik
dinama, digelar war

perangai itu sementara
kerana semua ini masih sementara
ubahlah, ubahlah ke arah kebaikan
kerana itu tidak merugikan
malah menguntungkan
bak memiliki berkantung-kantung
yang tergantung untuk disanjung
jomlah ubah, let us change!
bukan menjadi rubah
tapi menjadi manusia yang tidak gelabah
dan menjadi sesuatu yang disukai abah

haha, haha, haha
kenapa ketawa, sambil sendawa
lantaklah aku nak ketawa
kerna aku sukanya
attitude perangai
itulah aku

dah cukup la aku mengarut hari ini, simpan untuk esok pulak ... wasalam. and have a nice day and good attitude guys!

Monday, July 05, 2004

ittutor



wall157

design with lyrics







the lyrics are by arvil lavinge, take from 'under my skin' album