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.

DarkBASIC Professional Discussion / smoke, mist, clouds?

Author
Message
Game Prog Dreamer
15
Years of Service
User Offline
Joined: 9th Aug 2010
Location:
Posted: 9th Aug 2010 16:22
Hi everybody,

I'm new on this forum, ans english is not my mother tongue so I will surely do a lot of mistakes,
I hope you will understand me.


In this forum people seems to know a lot of things about shaders and graphical effects so I have a question about DarkbasicPro,
Does somebody know how to do some real-time smoke, clouds, or mist in Darkbasicpro?


I'm a programmer for a Team that want to do a game based on mist:
http://equilibrume.xooit.com/t34-Paysag ... m?start=15

The mist have to be everywhere over the ground and react to all the actions of the player.
(20-30cm)
and react also with some object of the map
There will also be mist-waterfall. (mistfall?)
But I don't have any idea how to do that.
If you have idea for doing one of these things please say it to me.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 9th Aug 2010 16:52
A while ago there was a shader around, that could add fogging at a specific height - so you might have that at a certain height on your terrain, it worked a lot like standard fog.

But for a more organic effect, I would add in a particle system - get some fog textures and apply them to plains, then have the plains move and rotate very slowly - and fade out depending on distance to the player if you like. With lots of fog plains, you can move them any way you like, even have them react to collision so they stay outside. The main thing though is to use alpha transparent fog images - then when you have a bunch of them together, moving and rolling along, it looks superb.
I only did this once before, ages ago, with a rain effect (little splat textured plains positioned randomly, so they do look like splashes of rain). Anyhoo, when the varying transparency levels overlap, it gives a really organic effect - almost hypnotic in the eyes of the creator.

DBPro is a great platform for these sorts of games though, lots of shader effects, especially if you get DarkShader - and it's real easy to add in object clicking, like you can click on an object and find out what it is - ideal for a point and click adventure.

I would suggest that if you get DarkShader, let your artist guys deal with that - texturing and effects can get complex, and you could get very bogged down if you try and tackle it all yourself - better to have art people who know the 'rules', because that way you would just have to load the shader right in, and they can already have set it up how they want.

Health, Ammo, and bacon and eggs!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Aug 2010 16:54
This kind of effect can be achieved in a number of different ways using DBP but this sounds a little too much like a team request. I'm willing to help you with any code you post but I doubt you'll be allowed to make a request for help in the way you have worded it.

Perhaps this is purely a language issue.

Welcome to the forums by the way, there are lots of people who will help I'm sure!

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 9th Aug 2010 17:03
baxslash, he says he's the programmer of a team, so i'm assuming it's an already existing team.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Aug 2010 17:08
You are right, just being over-cautious sorry! The language problem was me not reading it properly I guess.

HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 9th Aug 2010 21:10
have a look here might get you going.

http://forum.thegamecreators.com/?m=forum_view&t=86152&b=1

Dark Physics makes any hot drink go cold.
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 9th Aug 2010 21:32 Edited at: 9th Aug 2010 21:35
If you're looking for a shader, maybe this will help
a dynamic mist, fog or smoke shader demo for DBP


Otherwise you could probably do it with textured plains (plains textured with a smoke texture) via the MAKE OBJECT PLAIN command. You could then use POINT OBJECT to point them at the camera. This hides the "2D-ness" of the plain.


Guns, cinematics, stealth, items and more!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Aug 2010 02:41
Interesting. That shader demo of mine crashes on my present PC. I'll have to look into that.

Login to post a reply

Server time is: 2026-07-24 20:35:43
Your offset time is: 2026-07-24 20:35:43