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 / Spark Particles: Cloud Demo with infinite scroll in every direction.

Author
Message
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 8th Jun 2012 04:27
I am having trouble getting my demo to look more like the particles are fading in rather then popping in. I tried adjusting the camera range so they appear outside of the range and come into range when you move around. I've tweaked it for quite a while trying to get the right thickness, Particle Count, and moving the particles that are to far away.

Here is the code:


Anyone have any ideas on how to get my fog to appear more realistic and to fix the popping in particles?

Thanks,

DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.

Attachments

Login to view attachments
Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 8th Jun 2012 05:07
looks pretty good mate!

I got rid of the particles appearing by making a plane, coloring it dark grey and placing it (fog distance=150) away from the camera and keeping it there in the main loop.

dunno if that is practical for you but it hides the new particles and is completely obscured by the fog.



maybe try some spinning of the particles to create fog swirl but otherwise it looks great. good work

Sometimes I like to use words out of contents
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 8th Jun 2012 05:13 Edited at: 8th Jun 2012 05:13
@Kezzla - Nice idea. Works great. Just one small glitch. See picture below:


There is a small line I think it is created from the plain.

I did make this change and zoom around for a bit:


DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.

Attachments

Login to view attachments
Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 8th Jun 2012 05:30
hmmm, i cant get the line to appear. I tried placing control camera using arrowkeys both before and after the plane move. it still works the same.

here's my revision with the control camera command added in

do you still get the line with this one?


The laptop im testing this on is an average hp notebook with a 1gig radeon graphics card, 2 gig ram. not crap but not great either
oh yeah, I'm compiling with dbpro v.1.0761
what version are you using?

the thing i find strange is that the plane obscures the new particles even though i am not rotating it to face the camera. which is odd.


Sometimes I like to use words out of contents
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 8th Jun 2012 05:39
@Kezzla - It may be that sideways I don't have that spawning in front of problem. I can fix the plain so it is always positioned in front of it. I think that may be why I am seeing that line.

I have the most recent of everything so I know i'm good.

DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 8th Jun 2012 06:49
Here is the demo completed!:


Thanks for the help. Enjoy the code

DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Jun 2012 13:44 Edited at: 8th Jun 2012 13:57
Ace! This is what I have been working on as well, but using textures.

Login to post a reply

Server time is: 2024-04-19 11:31:50
Your offset time is: 2024-04-19 11:31:50