Page 1 of 4

Raycasting Example Source

PostPosted: Mon Jan 08, 2007 3:36 am
by mcveighja
Raycasting Example Source.
Feedback would be greatly appreciated.

Thanks
Jason (KidsCo)

[EDIT] by makslane

PostPosted: Mon Jan 08, 2007 11:49 am
by marathon332
That's very cool demo!

But it really sucks up the processing power...

Have you been able to make a playable game with it yet?

PostPosted: Mon Jan 08, 2007 12:19 pm
by makslane
Amazing! :shock:

I will work to optimize the engine to execute better this kind of code.

Thanks!

PostPosted: Mon Jan 08, 2007 4:06 pm
by kellyrey
very cool demo!

This makes me wonder if it would be possible to have game editor support some type of plug in mechanism. If we had this type of ability we would not need any perf work in game editor as we could simply make CPU intensive code native.

Increase Speed of Demo

PostPosted: Mon Jan 08, 2007 4:56 pm
by mcveighja
INCREASE SPEED OF DEMO

GEWOLF_SCREEN_WIDTH = 320;
GEWOLF_SCREEN_HEIGHT = 240;

The speed can be increased by reducing the resolution. There are two integer variables that determine the resolution, "GEWOLF_SCREEN_WIDTH" and "GEWOLF_SCREEN_HEIGHT". They are initialized within the "Create Actor" event for the "Screen" canvas. If you reduce them to 320x240 it will function at a playable frame rate. The bottleneck is definately in the "setpen()" and "putpixel()" functions.

Thanks
Jason (KidsCo)

PostPosted: Mon Jan 08, 2007 5:21 pm
by kellyrey
you beat me to it. I was about to post a reply to this effect.

I set the height and width though to the height and width of the actor canvas in the example i am working with as this allowed me to dry different sizes of views simply by resizing the actor in GE.

Question though have you tried sorting pen changes? I am wondering if the pen issue really is a setting issue or a pen change issue? If it is a change issue then we could simply queue up the pens in an array, sort by pen type, and draw the pixels for a pen at once. Would be interesting to see how much if any this speeds the drawing up.

PostPosted: Mon Jan 08, 2007 11:39 pm
by Game A Gogo
AHHHH
this is A-MA-ZING!!!
simply brilliant, if i could fav this demo, I WOULD DO IT 10000 times *goes and check the codes ;)*

FAV ?

PostPosted: Tue Jan 09, 2007 10:38 pm
by mcveighja
Thanks =). How do you "fav" a demo ? What is "fav" ?

Thanks
Jason (KidsCo)

PostPosted: Tue Jan 09, 2007 11:51 pm
by Game A Gogo
Favorite, lol, your name is jason, just like a game ive previously did ^^

Re: FAV ?

PostPosted: Sun Apr 22, 2007 1:22 pm
by Sgt. Sparky
mcveighja wrote:Thanks =). How do you "fav" a demo ? What is "fav" ?

Thanks
Jason (KidsCo)

fav means favorite :D

oh, and AWSOME DEMO JASON!!! :D
(I thought I had allready posted on this :( it must have got deleted :()
EDIT: that was odd, the post by Gogo was not there when I posted this...
yet it says that it was posted in january... xD

PostPosted: Mon Apr 23, 2007 1:25 am
by Game A Gogo
and it is :\

PostPosted: Mon Apr 23, 2007 3:36 am
by Sgt. Sparky
:D
GREAT DEMO, AWSSSOOOMMMEEE! :D

PostPosted: Tue Apr 24, 2007 5:12 pm
by scythe
Man that looks great, but I cannot get the demo to work, do i need to export it? I am running on my Vista partition atm, could that be it?

Scythe

PostPosted: Tue Apr 24, 2007 5:14 pm
by Sgt. Sparky
most likely. :(

PostPosted: Tue Apr 24, 2007 5:27 pm
by makslane
Just open the ged file and go to the game mode.
Don't works?