Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / plasma old school

Author
Message
Jukuma
17
Years of Service
User Offline
Joined: 18th Nov 2003
Location: Germany
Posted: 2nd Oct 2005 03:00 Edited at: 4th Oct 2005 00:39
i hope this code is not to often showed
in this version

bitmap part



image part



demo part

Zotoaster
16
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 3rd Oct 2005 15:12
wow! Thats pretty cool looking! Well done


Torrey
16
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 3rd Oct 2005 18:29
Old school plasma is still the best, great code!

The best audio plugin for DarkBASIC Pro!
Plays Ogg Vorbis,MP3,FLAC,uncompressed WAV,AIFF,MOD,S3M,XM,and IT files.
Specters
15
Years of Service
User Offline
Joined: 30th Sep 2005
Location: idaho
Posted: 6th Oct 2005 23:24
Haven't checked yet but the code seems cool, so it probably will look cool. Keep up the great work.

Current Project : Legend of Lantis
Richard Davey
Retired Moderator
18
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 10th Oct 2005 21:29
Hey that's VERY nice indeed With some proper colour tables (for a more demo-style effect rather than a straight RGB mix) it would look even more lovely. Nice work!

People don't quit playing because they grow old.
They grow old because they quit playing.
BatVink
Moderator
17
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Oct 2005 22:51
Nice.

Why do the cameras have to be continually deleted and recreated? I made them permanent and got flickering spheres which eventually became totally white. What is causing that?

Angry kreyon
15
Years of Service
User Offline
Joined: 19th Aug 2005
Location:
Posted: 11th Oct 2005 17:01
@Jukuma - I have not seen a plasma effect in this code yet, I have tried all 3 peices (in DBP) and the first gets me a cube in the upper corner that does nothing, the second peice gives me a red spinning cube in the center of the screen that does nothing but spin, and the third gives me 3 sets of spheres circling an invisable cube, the spheres are white and the backdrop is red, but nothign else happens and I am not getting the color cycling that I was expecting for the plasma effect.( I have a snippet of plasma that is cool here-->:http://forum.thegamecreators.com/?m=forum_view&t=60900&b=6 --

-- But however I think that the Music section in the third snippet is awsome! I will deffinately play with that and try to make some cool music happen, I was not aware that that could even be done until I saw this post!. perhaps you could make a snippet with Just the music code and how to use it(like a tutorial)

anyway if you have ideas why the rest did not work in Pro, let me know.
blanky
16
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 11th Oct 2005 18:03
Does your graphics card support vertex and pixel shaders, Angry kreyon?

Part of the 'Emergency Response Noob Shooting Team' :: Feel free to add me to MSN, but don't expect any big favours.
I AM _NOT_ A MOD, I AM ONLY HUMAN (although I fly in my spare time).
Angry kreyon
15
Years of Service
User Offline
Joined: 19th Aug 2005
Location:
Posted: 13th Oct 2005 14:59
@Blanky - Not sure if it does or not, it's a great video card and I have not had any trouble with any other graphics, but I can't say for sure either way. ( it's an intel(R)82865G graphics controller. ) - I found some info on my Card from Intels website, it is as follows:

IntelĀ® Extreme Graphics 2 Specifications

Enhanced 2D

256-bit internal path

8/16/32bpp

DirectDraw*, GDI, GDI+

Anti-aliased text support

Alpha blending

Alphas stretch blitter

Hardware alpha blended RGB cursor

Color space conversion

5x2 overlay support

Rotate, scale and translate operations


High-performance 3D

256-bit internal path

32bpp/ 24ZorW/ 8 Stencil

DX7*/DX8*/OGL*1.1

DXTn texture compression

Up to 4 textures / pixel on a single pass

Cubic reflection map

Embossed/DOT3 bump mapping

Multi-texture

DOT3 bump-mapping

Point sprites

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

thats all I Can find on it, so I am still not sure but it looks like I should be able to.
Sven B
16
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 13th Oct 2005 21:05
Gr8 M8!!!

Immunity and Annihalation makes Immunihalation...
Raven
15
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 14th Oct 2005 01:57
Nice effect, that would work really well as Water.

Jukuma
17
Years of Service
User Offline
Joined: 18th Nov 2003
Location: Germany
Posted: 14th Oct 2005 12:49 Edited at: 14th Oct 2005 22:40
thx to all!

@angry kreyon
i think your graphics card work in a 16 bit or 24bit mode.
change to 32 bit mode and the code would have to run. otherwise i
don't understood this problem.

@raven
nice idea! i work on it, with a realtime bump mapping, but it's
still really slowly at present.
Zotoaster
16
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Oct 2005 19:15
I like how you made a tune!


darkdomy
17
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 31st Oct 2005 20:31
Hello all

Good Samples, Very Easy Source

It compliments of new, and an optimal source very structured, and easy to understand

By Italy User.

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
The Darthster
18
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 31st Oct 2005 22:09
That's pretty awesome

Once I was but the learner, now, I am the Master.
See my site for amazing games and demos!
MikeS
Retired Moderator
18
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 31st Oct 2005 22:39
This is excellent, very nice job.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Diablos
15
Years of Service
User Offline
Joined: 15th Oct 2005
Location: meh?
Posted: 1st Nov 2005 20:14
amazing code

however is there any way of getting rid of those ugly lines going through the middle?

im a noob at this and can barely get my text games to work however, so ignore me if its a stupid question.

-Pain is temporary, pride is forever.
Jukuma
17
Years of Service
User Offline
Joined: 18th Nov 2003
Location: Germany
Posted: 2nd Nov 2005 22:11
thanks all!

@diablo
can't see ugly lines in the middle

Quote: "Why do the cameras have to be continually deleted and recreated?"


to save frames for the realtime reflection on the spheres.
the cam's for the cube map shifted to the next sphere every frame,
so the all updated in a period of 3 frames.
Freddy 007
16
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 6th Nov 2005 21:05 Edited at: 6th Nov 2005 21:07
Can someone post a screenshot? I get some strange memblock error when compiling.

Strange! I just tried compiling again(on the same PC and everything), and no error!

It looks very awesome! What's your secret!?

Ryan
15
Years of Service
User Offline
Joined: 29th Nov 2005
Location:
Posted: 30th Nov 2005 22:28
Diablo,

Try to upgrade your video driver.

I had similar problems with the vertex shaders and the upgrade solved most of my problems.

Good Luck, Ryan

Login to post a reply

Server time is: 2021-03-05 10:06:05
Your offset time is: 2021-03-05 10:06:05