Oni Central Forum

A Community-driven Forum discussing Bungie's Oni

You are not logged in.

#1 20/1/11 16:25

Nitr0
Member

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 20/1/11 16:59

Gumby
Moderator

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 20/1/11 17:19

Nitr0
Member

Re: How to change contrails?

I am, at least I think I am big_smile


Ninjabar thin

Offline

#4 21/1/11 12:07

Nitr0
Member

Re: How to change contrails?

Anyone?!


Ninjabar thin

Offline

#5 21/1/11 12:26

Gumby
Moderator

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 21/1/11 17:35

Lithium
Member

Re: How to change contrails?

Uh wrong topic...sorry >.>

Last edited by Lithium (21/1/11 17:36)


Sig2.png
                            Oni IRC

Offline

#7 21/1/11 19:39

Iritscen
Moderator

Re: How to change contrails?

Well, that was a bump, anyway.


byproducts are fine, but where's the beef?

Offline

#8 22/1/11 16:43

paradox-01
Member

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 (23/1/11 4:22)


Muffin button !

Offline

#9 23/1/11 1:59

Gumby
Moderator

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 23/1/11 5:38

Nitr0
Member

Re: How to change contrails?

Thanks Paradox you helped me a lot smile


Ninjabar thin

Offline

#11 25/1/11 7:07

Nitr0
Member

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 (25/1/11 7:12)


Ninjabar thin

Offline

#12 25/1/11 9:04

paradox-01
Member

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.


Muffin button !

Offline

#13 25/1/11 9:35

Nitr0
Member

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 (25/1/11 9:37)


Ninjabar thin

Offline

#14 25/1/11 9:55

paradox-01
Member

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 (25/1/11 9:58)


Muffin button !

Offline

#15 25/1/11 10:05

Nitr0
Member

Re: How to change contrails?

Problem solved big_smile
Thank you very much paradox.


Ninjabar thin

Offline

Board footer

Powered by FluxBB