HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
The domain www.kitopen.com will expire on 2018-08-17. Update your bookmarks to point at http://kito.forumotion.com/
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Asserting/Illegal numbers in .particle files

Go down 
AuthorMessage
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2584
Join date : 2011-07-24
Age : 31

PostSubject: Asserting/Illegal numbers in .particle files   Tue Jul 26, 2011 6:43 am

This is probably due to the particle system in Ogre got updated.
In .particle files such as water.particle is a particle system such as WaterSplash
Code:
particle_system WaterSplash
{
    material WaterSplash
    particle_width 0.7
    particle_height 0.7
    cull_each false
    quota 2100

    emitter Ring
    {
        angle 35
        emission_rate 700
        time_to_live 2
        direction 0 1 0
        velocity_min 50
        velocity_max 60
   colour_range_start 1 1 1
       colour_range_end 0.9 0.95 1
   width 4
   height 4
   depth 0.5
   inner_width 3
   inner_height 3
    }

    affector LinearForce
    {
        force_vector 0 -150 0
        force_application add
    }
    affector ColourFader
    {
        red -0.7
        green -0.7
        blue -0.7
    }
}

And the parameters
Code:
   inner_width 3
   inner_height 3
Results in Assert errors. This is from the code OgreRingEmutter.cpp@112 in the plugin ParticleFX
Code:
assert(x > 0 && x < 1.0);

In this case should 3 be changed to inner_height/height; so 3/4 or 0.75
Back to top Go down
skyejelly



Female Posts : 16
Join date : 2011-10-10
Age : 21
Location : Canada

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 7:40 pm

I'm confused about the color code, is it Molscript?
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2584
Join date : 2011-07-24
Age : 31

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 8:55 pm

No, its RGB from 0 to 1.

________________________________
Retired
Back to top Go down
skyejelly



Female Posts : 16
Join date : 2011-10-10
Age : 21
Location : Canada

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 9:20 pm

I don't understand that code. Is there a converter somewhere?
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2584
Join date : 2011-07-24
Age : 31

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 9:38 pm

What preference do you have to writing color?

________________________________
Retired
Back to top Go down
skyejelly



Female Posts : 16
Join date : 2011-10-10
Age : 21
Location : Canada

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 9:41 pm

I like RGB, but my goal is to make a dark blue shard with the ends having a lighter blue. I'm having trouble with recoding it. To get the colours right.
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2584
Join date : 2011-07-24
Age : 31

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 10:00 pm

RGB k, Which range? 0-255, 00-FF, 0-1?
iirc then FeralHeart and IT uses 0-1 as well when you create a character, so you should know it

________________________________
Retired
Back to top Go down
skyejelly



Female Posts : 16
Join date : 2011-10-10
Age : 21
Location : Canada

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 10:08 pm

I know the RGB 0-255 codes, I'm more familiar with it, and IT uses 0-255 when creating a character o_o. Atleast I think...?
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2584
Join date : 2011-07-24
Age : 31

PostSubject: Re: Asserting/Illegal numbers in .particle files   Tue Jan 03, 2012 10:42 pm

Hmm, maybe 0-1 was from previous versions of IT or FH.
Anyways: x*1/255
Replace x with any number between 0 and 255 and you'll get a number between 0-1

________________________________
Retired
Back to top Go down
skyejelly



Female Posts : 16
Join date : 2011-10-10
Age : 21
Location : Canada

PostSubject: Re: Asserting/Illegal numbers in .particle files   Wed Jan 04, 2012 1:25 am

It seems to work yes, but like, you know Razmir's shadowshard, how it was a quite dark purple? I'm trying to get that effect but with blue. It's hard to get it dark blue because the dark doesn't get very dark. xD
Back to top Go down
Classique

avatar

Female Posts : 104
Join date : 2011-10-10
Age : 27

PostSubject: Re: Asserting/Illegal numbers in .particle files   Wed Jan 11, 2012 4:09 pm

Do you have any chart or idea on how to know what you're inputing when you use the colorfader2? I'm redoing soul shards and I know their color is based off of that but I am not sure....how to know what color I'm inputting.
Back to top Go down
Sponsored content




PostSubject: Re: Asserting/Illegal numbers in .particle files   

Back to top Go down
 
Asserting/Illegal numbers in .particle files
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: START HERE :: KITO's IT Source Code :: Guides & FAQs-
Jump to: