Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 01/20/11 16:01

Nitr0
Member
From: Croatia
Registered: 11/26/10

How to change contrails?

Can someone explain me how to adjust color of the contrails...
If someone has some time, can he do a little tutorial please?


Ninjabar thin

Offline

#2 01/20/11 16:01

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: How to change contrails?

Are you prepared to edit particles? smile


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#3 01/20/11 17:01

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: How to change contrails?

I am, at least I think I am big_smile


Ninjabar thin

Offline

#4 01/21/11 12:01

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: How to change contrails?

Anyone?!


Ninjabar thin

Offline

#5 01/21/11 12:01

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: How to change contrails?

I've been busy. If nobody else helps and I don't get around to it, bump this topic tonight.


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#6 01/21/11 17:01

Lithium
Member
From: Colorado
Registered: 10/17/08

Re: How to change contrails?

Uh wrong topic...sorry >.>

Last edited by Lithium (01/21/11 17:01)


Oni IRC | Kumite! Kumite! Kumite!

Offline

#7 01/21/11 19:01

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: How to change contrails?

Well, that was a bump, anyway.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#8 01/22/11 16:01

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: How to change contrails?

Nitr0, if you are still interested there's a page about how adding contrails.
Then, for changing the color, you need to create a new particle: copy the existing one, e.g. "h2h_murtrail_e01" (complete file name "BINA3RAPh2h_murtrail_e01.oni"), convert it to xml, and change the file name and the color. "<Tint>51 178 255 0</Tint>" (First value is the transparency, i think.)

Edit: Ah, i forgot: the emitter ("_e01") links to the ("_p01") 'actual' particle file which holds the content we are interested in.  (So you need both files.) The tint tag has the variable "color", so it's about that code:

                <ColorInterpolate>
                    <Target>color</Target>
                    <Color0>255 0 0</Color0>
                    <Color1>0 0 77</Color1>
                    <Amount>blend</Amount>
                </ColorInterpolate>

(Color0 is the start color, the tag stores the color values this way: red, green, blue. Hence 255 0 0 is red.)

In the end you should have 3 or 4 new files: ONCC, _e particle, and _p particle. (make sure _e links to the new _p), and  TRAM if you have a "contrail_2".

Last edited by paradox-01 (01/23/11 04:01)

Offline

#9 01/23/11 01:01

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: How to change contrails?

For just changing the color of one character you should just need to edit the _p particle.


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#10 01/23/11 05:01

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: How to change contrails?

Thanks Paradox you helped me a lot smile


Ninjabar thin

Offline

#11 01/25/11 07:01

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: How to change contrails?

Hmmm...
I added particle to the foot of "TRAMTCTCOMcomb_k_k_k" animation and when I tried to export it back to .oni file I got this problem:
particleproblem.png

Last edited by Nitr0 (01/25/11 07:01)


Ninjabar thin

Offline

#12 01/25/11 09:01

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: How to change contrails?

OniSplit says that there is a mistake in line 45, it couldn't find the <start> tag. See if you can discover the mistake.

Offline

#13 01/25/11 09:01

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: How to change contrails?

This is what I have:

 
<Particles>
        <Particle>
               <StartFrame>0</StartFrame>
               <EndFrame>12</EndFrame>
               <Bone>LeftFist</Bone>
               <Name>contrail</Name>
            </Particle>
</Particles> 

This is the 45th line: <StartFrame>0</StartFrame>
What do I need to change or add?

Last edited by Nitr0 (01/25/11 09:01)


Ninjabar thin

Offline

#14 01/25/11 09:01

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: How to change contrails?

Try this:

        <Particles>
            <Particle>
                <Start>0</Start>
                <End>12</End>
                <Bone>LeftFist</Bone>
                <Name>contrail</Name>
            </Particle>
        </Particles>

You are probably using a more recent OniSplit in which the start and end tag was changed.

Last edited by paradox-01 (01/25/11 09:01)

Offline

#15 01/25/11 10:01

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: How to change contrails?

Problem solved big_smile
Thank you very much paradox.


Ninjabar thin

Offline

Board footer

Powered by FluxBB