Particle System (BIS)

FOr some reason the color settings don’t seem to work. Did I just get the wrong version? The color always seems to be a mix of purple and yellow regardless of the settings.

You have to update your Xith3D.jar :wink:
I was the one who discovered that bug in setColors with the previous builds, but it’s been fixed with November the 13th release :slight_smile:

WHere do we get the new xith3d.jar
I’ve been checking out xith3d from cvs so I assumed I would have the newest stuff all the time but I just checked and my xith3d.jar is from october 11th.

I’m connecting to cvs through the server

cvs.dev.java.net/cvs as a guest

then I go to the xith3d folder and check it out as a project.

Am I going to the wrong cvs??

Also,

could you explain to me briefly what the updateMatrix() method does in ParticlesManager.java. What is it used for? All the variables and such just make no sense to me and it’s a pretty long method.

If you use CVS you need to build xith3d.jar yourself. This requires Apache Ant. If you already have it, just type “ant” in the Xith3D base directory.

Java Cool Dude probably downloaded the release here.

I’m pretty new to ant would any of you know what this error means.


Buildfile: C:\Program Files\eclipse\workspace\xith3d\build.xml

clean:
        [echo] cleaning ./classes

recompile:

setup:

compile:
        [echo] compiling source files
        [echo] javaexe: C:\Program Files\Java\j2re1.4.2_02/bin/javac
       [javac] Compiling 350 source files to C:\Program Files\eclipse\workspace\xith3d\classes
       [javac] javac: invalid flag: C:\Program
       [javac] Usage: javac <options> <source files>
       [javac] where possible options include:
       [javac]   -g                        Generate all debugging info
       [javac]   -g:none                   Generate no debugging info
       [javac]   -g:{lines,vars,source}    Generate only some debugging info
       [javac]   -nowarn                   Generate no warnings
       [javac]   -verbose                  Output messages about what the compiler is doing
       [javac]   -deprecation              Output source locations where deprecated APIs are used
       [javac]   -classpath <path>         Specify where to find user class files
       [javac]   -sourcepath <path>        Specify where to find input source files
       [javac]   -bootclasspath <path>     Override location of bootstrap class files
       [javac]   -extdirs <dirs>           Override location of installed extensions
       [javac]   -d <directory>            Specify where to place generated class files
       [javac]   -encoding <encoding>      Specify character encoding used by source files
       [javac]   -source <release>         Provide source compatibility with specified release
       [javac]   -target <release>         Generate class files for specific VM version
       [javac]   -help                     Print a synopsis of standard options
BUILD FAILED: file:C:/Program Files/eclipse/workspace/xith3d/build.xml:68: Compile failed; see the compiler error output for details.
Total time: 1 second

Is it getting confused cause I’m on windows and there is a space in the directory path (c:\program files)?

could you explain to me briefly what the updateMatrix() method does in ParticlesManager.java. What is it used for? All the variables and such just make no sense to me and it’s a pretty long method.

Ooops looks like I have to change the variable names in that method, the way they are now reflect how much trouble I went through to set it up and get it all working :P.
What it does basically is rotating the up vector (0,1,0) so that it’s aligned with the emission direction.
I could have skipped that part and implemented a method where you have to input the x,y and z angles of rotations to get the emitter shooting in a certain direction, but that would make it a bit harder for my coworkers to implement it in our current project.
Especially the case where particles have to come from a volcano on a non-flat planet (sphere).

[quote]Is it getting confused cause I’m on windows and there is a space in the directory path (c:\program files)?
[/quote]
Yes, exactly.

Check the value of JAVA_HOME environment variable and set it to JDK 1.4.2 home (say, on Windows machine I have

JAVA_HOME=C:\j2sdk1.4.2_01\

Then it should work [again, hopefully].

Yuri

why microsoft uses spaces in important system directories I will never know.

Will.

First attempt at WS:
Does this work?
Pretty much done with this demo, time to move on to something else :slight_smile:

Fraid not, looks like your webserver isn’t configured with the correct MIME type mappings. Either get your admin to modify the apache/iis settings or use a PHP/Perl/JSP frig to modify the MIME type dynamically

<ego_plug>
This might help if you haven’t seen it before:

http://www.cokeandcode.com/info/webstart-howto.html
</ego_plug>

Kev

You rock ;D
Fixed

Ok, now you need to change your href to be “particles.php” instead of “particles.jnlp” cause you changed the name :slight_smile:

Kev

Java3D executable jar
Xith3D executable jar

Few changes:
Load/Save configuration
Random Factor slider
Help Button
Better flame and smoke effects.

Probably one of the very last updates if not the last.