disable-z-write="Y"/"N"
<material name="chess.png">
<particles base="smoke.xml" condition="skid" />
</material>
<material name="snow.png" max-speed="0.4" slowdown-time="0.8">
<particles base="smoke.xml" condition="skid drive" />
</material>
No ProblemAuria {l Wrote}:I recently added a new option to disable writing to the Z buffer.
Hmm. Another nested structure (like sfx). That requires changes to the track exporter.Auria {l Wrote}:And we have another larger change : STK now supports particles when driving and when skidding (which replaces the old "graphical-effect" property).
I have something better: Make it a file picker (type_URL, e.g. the property "music"), so you won't even need to type the name of the XML file...Auria {l Wrote}:So each material would need a way to specify a type of particles (if any), which could be a simple text box where you type the name of the XML file.
Hmm. Picklists are programmed to be mutually exclusive... I'll have to ponder some more.Auria {l Wrote}:Then there is also the "condition" property that says when particles are emitted; the current allowed values are "skid" and "drive" (and combinations of the two).
Auria {l Wrote}:Do you think this would be possible?
STKRudy85 {l Wrote}:What is the advantage of this script :
Making tracks easily ? so in which points
Reading more easily track already made ?
how can we use it ?
I really want to use it as soon as possible
Auria {l Wrote}:I also found another minor bug : when you open the browser, if fog is enabled, the fog options don't appear, you need to disable fog then enable it back.
asciimonster {l Wrote}:Hmm. Another nested structure (like sfx). That requires changes to the track exporter.Auria {l Wrote}:And we have another larger change : STK now supports particles when driving and when skidding (which replaces the old "graphical-effect" property).
asciimonster {l Wrote}:I'm not quite sure what you exactly mean by "opening the browser". And as such, I am not able to replay this bug. Could you give me some more details to work with?
Auria {l Wrote}:By "opening the browser", I just mean clicking on "STK Browser" in the "Help" menu after opening the track in blender
asciimonster {l Wrote}:Auria {l Wrote}:By "opening the browser", I just mean clicking on "STK Browser" in the "Help" menu after opening the track in blender
My guess is that you opened an "old" file, in which the fog variable is/was defined as zero/non-zero. Could you check by opening that file in its original state and look at the value of "fog" with the ID Property browser?
<material name="...">
<sfx .../>
<particles ... />
<zipper ../>
</material>
<?xml version="1.0"?>
<materials>
<material name="..." compositing="..." clamp="..." light="..." sphere="..." anisotropic="..." backface-culling="..." max-speed="..." slowdown-time="..." ignore="..." reset="..." disable-z-write="..." graphical-effect="..." reset="..." zipper="..." zipper-duration="..." zipper-max-speed-increase="..." zipper-fade-out-time="..." zipper-speed-gain="...">
<sfx filename="..." name="..." rolloff="..." min-speed="..." max-speed="..." min-pitch="..." max-pitch="..." positional="..."/>
<particles base="..." condition="..."/>
</material>
</materials>
<?xml version="1.0"?>
<materials>
<material name="..." compositing="..." clamp="..." light="..." sphere="..." anisotropic="..." backface-culling="..." max-speed="..." slowdown-time="..." ignore="..." reset="..." disable-z-write="..." graphical-effect="..." reset="...">
<sfx filename="..." name="..." rolloff="..." min-speed="..." max-speed="..." min-pitch="..." max-pitch="..." positional="..."/>
<particles base="..." condition="..."/>
<zipper duration="..." max-speed-increase="..." fade-out-time="..." speed-gain="...">
</material>
</materials>
<materials>
<material>
<name>...</name>
<compositing>...</compositing>
<clamp>...</clamp>
<light>...</light>
<sphere>...</sphere>
<anisotropic>...</anisotropic>
<backface-culling>...</backface-culling>
<max-speed>...</max-speed>
<slowdown-time>...</slowdown-time>
<ignore>...</ignore>
<reset>...</reset>
<disable-z-write>...</disable-z-write>
<graphical-effect>...</graphical-effect>
<reset>...</reset>
<sfx>
<filename>...</filename>
<name>...</name>
<rolloff>...</rolloff>
<min-speed>...</min-speed>
<max-speed>...</max-speed>
<min-pitch>...</min-pitch>
<max-pitch>...</max-pitch>
<positional>...</positional>
</sfx>
<particles>
<base>...</base>
<condition>...</condition>
</particles>
<zipper>
<duration>...</duration>
<max-speed-increase>...</max-speed-increase>
<fade-out-time>...</fade-out-time>
<speed-gain>...</speed-gain>
</zipper>
</material>
Auria {l Wrote}:Moving "zipper" to an attribute is sure possible and desirable
Auria {l Wrote}:Regarding using more of <attribute>...</attribute> format, the issue is that our current XML-reading class is not very friendly with that format, so for now, to save us time, I'd prefer to keep the attributes as they are
asciimonster {l Wrote}:Auria {l Wrote}:Moving "zipper" to an attribute is sure possible and desirable
Blink and it is done. I could never say no to a lady.
hiker {l Wrote}:The fog folor is written as floating point values; while STK expected [0-255]. Is there an advantage of FP numbers? Otherwise I'd suggest to change the track exporter to write the old format, but we could fix this in stk as well (though then we would more work to stay backwards compatible).
hiker {l Wrote}:I am not sure if the weather effect (rain) can be specified in the browser. If so, I didn't realise how to do this.
hiker {l Wrote}:One additional question: should we perhaps combine the browser and track exporter into one script (or at least add a button to the browser to run the exporter)? One file would be a bit big, but would have the advantage that it's easier to run this while testing and debugging (if they need to be installed in blender .script directory, we would have to restart blender).
hiker {l Wrote}:Thanks a lot for the improvements!
Auria {l Wrote}:for weather effects (...) an XML file describing weather particles.
(...) I'm experimenting with a new camera-relative technique that should be easier to export as well as easier on the CPU/GPU.
asciimonster {l Wrote}:Since the sourceforge SVN server still does not allow commits, I'm posting my changes here.
Users browsing this forum: No registered users and 1 guest