Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Particles isn't showing up!; This is stupid!
Topic Started: Sep 26 2007, 04:23 PM (297 Views)
Ogeon
Member Avatar
Member
[ *  * ]
Ok. I want to make some kind of explotion effect with particles and I have tried to make it with different methods and they don't want to show up!

I have this code in create event for the particle object:
Code:
 

LoadTexture('gfx/pixel.PNG',3,1,1);
texture=3;
CreateParticleSystem(100,200,500);
SetParticleLifetime(100,50);
SetParticleOrigin(16, 0, 0, 0, 10, 10, 10);
SetParticleVelocity(0, 0, 10, 360, 360, 20);
SetInitialCenterRepulsion(2, 2, 2);
SetInitialParticleColor(200, 50, 0, 100, 255, 255, 0, 200);
SetFinalParticleColor(200, 50, 0, 200, 255, 255, 0, 200);
SetParticleSize(10, 10, 20, 20);
ParticleSystemStep(1);


This one in step event:
Code:
 


ParticleSystemStep(1);



And this in destroy event:
Code:
 


Destroy();



So, what's wrong? This is driving me crazy!
Do you expect a signature? Forget it!
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Try putting 0 or nothing for both of the last two parameters in LoadTexture().
Offline Profile Quote Post Goto Top
 
Ogeon
Member Avatar
Member
[ *  * ]
Empty like a desert. They are still invisible.
Do you expect a signature? Forget it!
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
Adding SetParticleCount(...) might help ;).

Despellanion
Sep 26 2007, 04:46 PM
Try putting 0 or nothing for both of the last two parameters in LoadTexture().

And it's true that these parameters don't really set the in-game size of the texture; they will always be scaled up to the next power of 2, relative to what you pass for them in LoadTexture(...). So in your case, they would be 2x2 if you set both Width & Height to 1.
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
MysteriXYZ
Sep 26 2007, 03:56 PM
Adding SetParticleCount(...) might help ;).

Oh, why didn't I see that :lol:
Offline Profile Quote Post Goto Top
 
Ogeon
Member Avatar
Member
[ *  * ]
HAHA! Now I see! X'D This is kind of funny! I mixed up CreateParticleSystem() and SetParticleCount()! How stupid!
Do you expect a signature? Forget it!
Offline Profile Quote Post Goto Top
 
Ogeon
Member Avatar
Member
[ *  * ]
MysteriXYZ
Sep 26 2007, 02:56 PM

Despellanion
Sep 26 2007, 04:46 PM
Try putting 0 or nothing for both of the last two parameters in LoadTexture().

And it's true that these parameters don't really set the in-game size of the texture; they will always be scaled up to the next power of 2, relative to what you pass for them in LoadTexture(...). So in your case, they would be 2x2 if you set both Width & Height to 1.

Ok. Now they are like big squares flying around. have any idea how to scale them down?
Do you expect a signature? Forget it!
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
Ogeon
Sep 26 2007, 05:19 PM
Ok. Now they are like big squares flying around. have any idea how to scale them down?

Wouldn't passing smaller values to SetParticleSize(...) help?
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
Ogeon
Member Avatar
Member
[ *  * ]
MysteriXYZ
Sep 26 2007, 03:24 PM
Wouldn't passing smaller values to SetParticleSize(...) help?

Ok. This was the last question. Now I'm satisfied. ^^ Thank you.

Some times, I'm not thinking. :P
Do you expect a signature? Forget it!
Offline Profile Quote Post Goto Top
 
Ogeon
Member Avatar
Member
[ *  * ]
Oh.. This is weird! Now I have changed the pixels into smoth dots and at first it's ok, but almost at the end of the explotion they turn into pixels again!

I think it's just lag, because it's hapening when the botom bar disappears in fullscreen.
Do you expect a signature? Forget it!
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
Ogeon
Sep 26 2007, 05:53 PM
I think it's just lag, because it's hapening when the botom bar disappears in fullscreen.

What do you mean by "bottom bar" :huh: ? The Windows task bar?

Ogeon
Sep 26 2007, 05:27 PM
Some times, I'm not thinking. :P

When I suggested that 1 isn't a power of 2, I wasn't thinking either :lol:! Every number raised to the power 0 equals 1 ^_^.
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
Ogeon
Member Avatar
Member
[ *  * ]
MysteriXYZ
Sep 26 2007, 04:31 PM
Ogeon
Sep 26 2007, 05:53 PM
I think it's just lag, because it's hapening when the botom bar disappears in fullscreen.

What do you mean by "bottom bar" :huh: ? The Windows task bar?

Yes. I forgot the english name. Btw, now I see that It's hapening a little now and then.

Quote:
 

Ogeon
Sep 26 2007, 05:27 PM
Some times, I'm not thinking. :P

When I suggested that 1 isn't a power of 2, I wasn't thinking either :lol:! Every number raised to the power 0 equals 1 ^_^.

I didn't thought about that either. :P
Do you expect a signature? Forget it!
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply