Search found 13 matches

by bit-pusher
Fri Jun 12, 2009 9:48 am
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

let me guess bit-pusher. either you had this junk laying around and decided that it was clock posting time because I made you think of it. OR you thought hey a clock I can do that faster then midnight maybe I should throw some poop together really fast and try to out do him. it'll be easy it's just...
by bit-pusher
Thu Jun 11, 2009 10:34 pm
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

Hmm wierd.. seems to work OK for me. Any probs with the demo, or is it just the code on this page? :S
by bit-pusher
Thu Jun 11, 2009 7:16 pm
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

Cool; updated the original post to add the demo link and for context.
by bit-pusher
Thu Jun 11, 2009 1:47 pm
Forum: Project Announcements
Topic: Nun Chuck!
Replies: 44
Views: 16403

Nice work!! Checked this out after seeing your snake dissection.
by bit-pusher
Thu Jun 11, 2009 12:55 pm
Forum: Project Announcements
Topic: Snake Disection
Replies: 10
Views: 3757

Very nice -- good work :)
by bit-pusher
Thu Jun 11, 2009 11:20 am
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

(deleted)
by bit-pusher
Thu Jun 11, 2009 10:31 am
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

great, second site of this thread and still no Midnight-code! :roll: I'm realy looking forward to see the great code snippet that needs so long to be finished! :twisted: Yeah it's comming. I'm adding some new features now and I got side tracked by bit-pushers code. I found a bug in it btw. GetGameT...
by bit-pusher
Wed Jun 10, 2009 8:12 pm
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

Sure, go for it :D

I was just demonstrating the calculation really, you can make it a u32 no worries.
by bit-pusher
Wed Jun 10, 2009 2:38 pm
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

Change DAY_LENGTH_MS to the number of real-world ms you want a game day to last.

Is that what you meant? :)
by bit-pusher
Wed Jun 10, 2009 12:45 pm
Forum: Code Snippets
Topic: simple 24 hour game clock
Replies: 29
Views: 4928

simple 24 hour game clock

(deleted; here was a broken clock demo)
by bit-pusher
Tue Jun 09, 2009 8:15 pm
Forum: Advanced Help
Topic: Rendering to a array
Replies: 3
Views: 378

Awesome -- works great. Thanks for the pointer Brainsaw, wheel reinvention avoided. Trivial use case example rendering to a bitmap file: // Create render target if (!driver->queryFeature(video::EVDF_RENDER_TO_TARGET)) exit(1); video::ITexture* rt = driver->addRenderTargetTexture(core::dimension2d<s3...
by bit-pusher
Tue Jun 09, 2009 12:29 pm
Forum: Advanced Help
Topic: Rendering to a array
Replies: 3
Views: 378

Brainsaw - (name from a Therapy? lyric??) - thanks! I was thinking ITexture didn't support pixel access but I see ITexture::lock() returns a void pointer to the pixel data.

I'll have a play and see if I can get that working.
by bit-pusher
Tue Jun 09, 2009 12:04 pm
Forum: Advanced Help
Topic: Rendering to a array
Replies: 3
Views: 378

Rendering to a array

Greetings friends. I'm experienced with C++ and Irrlicht, but I've hit a stumbling block I'm hoping someone can direct me out of. I want to render a scene with Irrlicht, but I don't want to display it directly; I just want to render the frame into eg a char array. I don't expect the OpenGL or Direct...