The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
Code Snippets / 3D Pixel effect

Go to the first page of this board Return to the Forum Menu Post Message
10 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
Turoid

User


Joined: Sat Nov 1st 2003
Location: The Netherlands
Posted: 21st Jan 2005 21:10     Edited: 21st Jan 2005 21:12     | link | toggle

hi all,

I made this inspired by the 'glow effect' in this topic too. It picks colors from 3D and redraws them with 2D commands in diffrent colors and tints. It is very slow, because of the 2D commands.

You can use it in a specified way though. If you want to make a nightvision you can use it. Just give it a green tint .

+ Code Snippet
pixalize(0,128,0,5)


Or black and white:
+ Code Snippet
pixalize(128,128,128,5)


It is distorted already by itself, just play with it !

Back to top
Click to view the attached source code in a new windowReport this message as abusive
dj chainz

User


Joined: Sat Sep 25th 2004
Location: England
Posted: 21st Jan 2005 21:24           | link | toggle

Nice!

Reminds me of in the original Half-life, when going underwater caused the screen to go all mosaic-ed like this.

I am the lead programmer at red spark studios
I also have a blog on how to make a game engine
http://www.dbgame.blogspot.com
Back to top
red spark studios website
Report this message as abusive
TEH_CODERER

User


Joined: Wed Nov 12th 2003
Location: Right behind you!
Posted: 21st Jan 2005 22:41           | link | toggle

Cool.
I've been working on some effects slightly similar but with loads of extras in the hope of creating my own photoshop.
So far I have:
-Pixellate
-Tint
-Blur
-Smudge
-Negative
-Lightning
-Black+white
-Ripples(nearly)

Back to top
Report this message as abusive
French gui

User


Joined: Tue May 11th 2004
Location: France
Posted: 22nd Jan 2005 08:38           | link | toggle

Awesome!!!!!!!

Sorry for my English...
Back to top
FFG
Report this message as abusive
Phaelax

User


Joined: Wed Apr 16th 2003
Location: Ohio
Posted: 22nd Jan 2005 16:09           | link | toggle

If you want night vision, just lock a plane in front of you're view, ghost it and color it green. Now everything has a green tint.

"eureka" - Archimedes
Back to top
Zimnox Find user on ICQ Send AIM user a message
Report this message as abusive
Google Ad
Back to top
 
TEH_CODERER

User


Joined: Wed Nov 12th 2003
Location: Right behind you!
Posted: 22nd Jan 2005 16:20           | link | toggle

Yeah. I suppose that would work but it doesn't look as good.

Back to top
Report this message as abusive
Turoid

User


Joined: Sat Nov 1st 2003
Location: The Netherlands
Posted: 22nd Jan 2005 18:18           | link | toggle

Thanks for the comments

Quote: "just lock a plane in front of you're view"

You won't be able to make your screen black and white using this method.

Back to top
Report this message as abusive
TEH_CODERER

User


Joined: Wed Nov 12th 2003
Location: Right behind you!
Posted: 23rd Jan 2005 20:26           | link | toggle

I think Phaelax realised. It was just a suggestion for nightvision.
+ Code Snippet
make matrix 1,1000,1000,35,35

for o=1 to 100
make object box o,50,50,50
position object o,rnd(1000),0,rnd(1000)
color object o,rgb(rnd(255),rnd(255),rnd(255))
next o

make object plain 101,100,100
color object 101,rgb(0,200,0)
set alpha mapping on 101,50
yrotate object 101,180
position object 101,0,0,10
position camera 0,0,0
rotate camera 0,0,0
lock object on 101
disable object zdepth 101

sync on
sync rate 0

do

if spacekey()=1
show object 101
color backdrop rgb(0,0,25)
else
hide object 101
color backdrop rgb(0,0,100)
endif

if mouseclick()=1
x#=newxvalue(x#,ang#,1)
z#=newzvalue(z#,ang#,1)
endif

ang#=ang#+mousemovex()

position camera x#,20,z#
rotate camera 0,ang#,0

sync

loop


Back to top
Report this message as abusive
Turoid

User


Joined: Sat Nov 1st 2003
Location: The Netherlands
Posted: 30th Jan 2005 19:16           | link | toggle

woooa I'm in the newsletter!

Back to top
Report this message as abusive
TEH_CODERER

User


Joined: Wed Nov 12th 2003
Location: Right behind you!
Posted: 30th Jan 2005 19:42           | link | toggle

You're famous!
It is some good code though so well done.

Back to top
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
10 Messages - Page   of 1   
Search the Forum

Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Dark Game Studio
Privacy Policy AUP Top of Page