Messages in cipher reflected in the looking glass
[ Yasuhiro Fujitsuki's Weblog ]


http://blogs.sun.com/thaniwa/date/20060731 2006年 7月 31日 月曜日

(EN) trumplayer for lg3d



Flash Movie (3MB) : No Sounds, Low Quality

I commited sources of trumplayer to lg3d-incubator's cvs source trees. Trumplayer is in the latest daily build binary of the lg3d( after 7/29/2006). Latest daily build binary can be download at
https://lg3d-core.dev.java.net/binary-builds.html

Icon menu of the trumplayer is in [Early Prototypes]. But, now Trumplayer cannot play mp3 files in the default environment of lg3d because of JMF issues in lg3d(fobs4jmf and mp3plugin).
Trumplayer and JMF requires mp3plugin.jar to play mp3 files. mp3plugin.jar can be download at
http://java.sun.com/products/java-media/jmf/mp3/download.html
Other issue is a fob4jar, JMF in the lg3d(lg3d-incubator) requires fobs4jmf. lg3d has fobs4jmf.jar(library for Java), but it does not have native library of fobs4jmf.
To use JMF, replace jmf.properties(changing configuration of JMF) is required.

And, current version of trumplayer does not have interfaces to customize playlist informations.
If you want to use your original playlist, please prepare trumplayer.xml in your home directory

Solaris or Linux : /home/${user}/trumplayer.xml
Windows : c:\documents and settings\${user}\trumplayer.xml

trumplayer.xml is as follows.

<?xml version="1.0" encoding="UTF-8"?>

<root>
  <encode>JISAutoDetect</encode>
  <fontname>HGSGothicE</fontname>
  <album>
    <artist>BoA</artist>
    <title>BEST OF SOUL</title>
    <image>/windows/D/mp3/BoA/BEST OF SOUL.jpg</image>
    <m3u>/windows/D/mp3/BoA/BEST OF SOUL.m3u</m3u>
  </album>
  <album>
    <artist>QUEEN</artist>
    <title>JEWELS</title>
    <image>/windows/D/mp3/jewels.jpg</image>
    <m3u>/windows/D/mp3/jewels.m3u</m3u>
  </album>
</root>

http://blogs.sun.com/thaniwa/date/20051112 2005年 11月 12日 土曜日

(EN) Music Player for LG3D prototype, JavaOne Tokyo version

The following picture is a screenshot of music player. I demonstrated it as a sample application of LG3D on JavaOne Tokyo LG3D HoL.



If you want to try it, you can download it by the following link.


Music player requires LG3D, Java Media Framework and Java MP3 PlugIn.


And, music player requires musicplayer.xml file. musicplayer.xml put on the directory that executes lg3d-dev, lg3d-app, lg3d-session command.

Sample musicplayer.xml is as follows.
<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : musicplayer.xml
    Created on : 2005/11/11, 23:15
    Author     : yasuhiro
    Description:
        Purpose of the document follows.
-->

<root>
    <encode>JISAutoDetect</encode>
    <fontname>HGSGothicE</fontname>
    <album>
        <artist>BoA</artist>
        <title>BEST OF SOUL</title>
        <image>/windows/D/mp3/BoA/BEST OF SOUL.jpg</image>
        <m3u>/windows/D/mp3/BoA/BEST OF SOUL.m3u</m3u>
    </album>
    <album>
        <artist>II-MIX Δ</artist>
        <title>dELTA ONE</title>
        <image>/windows/D/mp3/two-mix/dELTA ONE.jpg</image>
        <m3u>/windows/D/mp3/two-mix/dELTA ONE.m3u</m3u>
    </album>
    <album>
        <artist>倉木麻衣</artist>
        <title>FUSE OF LOVE</title>
        <image>/windows/D/mp3/倉木麻衣/FUSE OF LOVE.jpg</image>
        <m3u>/windows/D/mp3/倉木麻衣/FUSE OF LOVE.m3u</m3u>
    </album>
</root>

http://blogs.sun.com/thaniwa/date/20050909 2005年 9月 09日 金曜日

(EN) LG3D on Solaris 10 (SPARC)


I tried to install and run LG3D into Solaris 10 on SPARC machine. Test machine is Sun Blade 1500 with XVR-500.
The following picture is the screen shot of lg3d-dev on SB1500.
Lg3d-dev ran on OpenGL 1.2, which is default component of Solaris 10.
Lg3d-dev cannot run on Solaris 10 with OpenGL 1.3 environment.
I got errors from Java3D. Java3D said that 'cannot get Visual ID'. I did not try to repair, so I do not know how to run lg3d on Solaris 10 with OpenGL 1.3.

http://blogs.sun.com/thaniwa/date/20050905 2005年 9月 05日 月曜日

(EN) short tip : lg3d-app cannot run on Fedora Core 4

lg3d-app cannot run on default environment of Fedora Core 4.
When you want to use lg3d-app, you have to change tcp connection settings of gdm.
Add "DisallowTCP=false" to /etc/X11/gdm/gdm.conf, and reboot PC or gdm.
You can also change parameter with gdmconfig.
Change [Security]->[Always disallow TCP coonections to X server] field of gdmconfig GUI.

http://blogs.sun.com/thaniwa/date/20050901 2005年 9月 01日 木曜日

(EN) LG3D on OpenSolaris

Current OpenSolaris is a kernel only. So, only the output of uname is different from Solaris Express.;-)

LG3D can run on OpenSolaris and Solaris Express Environment. (I tested on x86 platform only.) The way to setup is same as Solaris 10 x86 environment.
When you want to use LG3D, you need x86 pc with NVIDIA graphics card. And you need NVIDIA's driver. ( http://www.nvidia.com/object/unix.html ) You can see the way to setup NVIDIA's driver to NVIDIA GeForce FX environment on my old content.

On OpenSolaris environment, lg3d-dev runs good, but lg3d-app sometimes freeze on my environment.
My PC : Xeon 2.8GHz x2 and i875 (PC-DL Deluxe) and GeForce FX 5200.

http://blogs.sun.com/thaniwa/date/20050701 2005年 7月 01日 金曜日

(EN) Installation Support Script

Installation Support Script for LG3D published in my blog.
You can see description in the following page.

In my environment, I built and use RPM binary packages of JDK, JAI, Java3D for LG3D. So, I put on these nosrc.rpm is this page. These packages is not binary packages, so if you want to use RPM binary packages, You have to build RPM binary packages from these nosrc.rpm packages. These nosrc.rpm packages has no original binarry packages, so you have to prepare original binary packages.

These nosrc.rpm packages are not official packages of lg3d-core.dev.java.net.

http://blogs.sun.com/thaniwa/date/20050608 2005年 6月 08日 水曜日

(EN) lg3d 0.7.0 on Solaris x86

One of the feature of Project Looking Glass 0.7.0 is Solaris 10 x86 environment support.
Now, lg3d 0.7.0 pre binary for Solaris x86 can download at http://lg3d-core.dev.java.net/ . ( Click "Documents" menu of left side frame. After that, select "stable-builds-solx86" of right side frame. And you can find pre build binary for Solaris 10 x86. )

To use lg3d on Solaris x86, you have to prepare a PC with nVidia graphics card and nVidia graphics driver from http://www.nvidia.com/.
NVidia Solaris x86 driver supports "AllowGLXWithComposite" option, so lg3d session mode (lg3d-session) run correctly on Solaris x86.

Required softwares and Installation of lg3d are similar to linux. Install Java(JDK or JRE), JAI and Java3D 1.4 beta before run lg3d.

http://blogs.sun.com/thaniwa/date/20050604 2005年 6月 04日 土曜日

(EN) LG3D App Mode

lg3d app mode on JDS R3 New mode, called "lg3d app mode", is available now. "lg3d app mode" is like "lg3d dev mode", but "lg3d app mode" can display and use X11 application in the lg3d window.
Current "lg3d session mode(Full Screen)" can run on PC with nVidia graphic card environment, so ATI graphic card user cannot use "lg3d session mode" now.

If your card is ATI, try "lg3d app mode" !!
You can use "lg3d app mode" with lg3d/bin/lg3d-app command in the lg3d release directory.
If you want to use "lg3d app mode" as full screen like "lg3d session mode", change lg3d/etc/lg3d/displayconfig/j3d1x1 as follows,
(ScreenAttribute center WindowSize NoBorderFullScreen)

A screenshot of right side is a "lg3d app mode" screenshot run on JDS R3 beta version.
And, StarSuite 8 and xterm run on "lg3d app mode".
Click the screenshot, you can see 640x480 size of the screenshot.

http://blogs.sun.com/thaniwa/date/20050509 2005年 5月 09日 月曜日

(EN) LG3D rpm build Part2

LG3D rpm install binaries into /opt/lg3d directory
Files in /opt/lg3d are same as tar.gz release of LG3D.
And, /usr/bin/lg3d-dev, /usr/bin/lg3d-session, /usr/bin/lg3d-setup is installed when LG3D rpm is installed.
These files is in rpm version only.

Rpm can include informations of package/file dependencies, but current lg3d rpm do not include dependencies, JDK/JRE 1.5, JAI, and Java3D,
so LG3D rpm can install when linux has no JDK/JRE 1.5 or JAI or Java3D.

/usr/sbin/lg3d-setup is a bash script to make /usr/bin/lg3d-dev and /usr/bin/lg3d-session. /usr/sbin/lg3d-setup find directory under /usr/java, which has java command(JDK/JRE 1.5) with Java3D and JAI.
/usr/sbin/lg3d-setup also make /usr/bin/lg3d-dev and /usr/bin/lg3d-session, and write JAVA_HOME environment into these files.
When /usr/sbin/lg3d-setup found no JDK/JRE with JAI and Java3D, /usr/sbin/lg3d-setup do not write JAVA_HOME environment to /usr/bin/lg3d-dev and /usr/bin/lg3d-session.
Search directory of /usr/sbin/lg3d-setup is under /usr/java only. So, /usr/sbin/lg3d-setup cannot find JDK/JRE in other directory.(e.g. JDK on home directory)
In this case, set JAVA_HOME environment before run /usr/sbin/lg3d-setup. /usr/sbin/lg3d-setup search $JAVA_HOME directory instead of /usr/java directory.

When you download source codes via cvs, you can find lg3d-core/rpm/SOURCES/lg3d-setup script, this script and /usr/sbin/lg3d-setup in LG3D rpm are same files.
So, you can use/refers lg3d-setup without rpm version.

http://blogs.sun.com/thaniwa/date/20050507 2005年 5月 07日 土曜日

(EN) lg3d rpm build

From LG3D dev-0-7-0, rpm build function support.

Rpm build function is into lg3d-core/build.xml, so you can make rpm binary package with 'ant rpm' after the source code is downloaded.

Rpm binary package file is in lg3d-core/rpm/RPMS/{i386,i586} directory.
Rpm file name is like lg3d-0.7.0_dev-[build time].rpm, so you can use 'rpm -Uhv' to update binary to latest binary.

http://blogs.sun.com/thaniwa/date/20050419 2005年 4月 19日 火曜日

(EN) LG3D install support script

lg3d_installer.sh on this blog comment is too old. Please check http://blogs.sun.com/roller/page/thaniwa/lg3den .

LG3D installation to Linux environment is very easy for developers.
But, some people, who just want to run/see LG3D, perhaps think that LG3D installation is very difficult. Because, LG3D need Java3D, JAI, JRE, and 3D acceleration setting.

So, I made a support script for lg3d installations.
This script support JRE, Java3D, JAI, LG3D installations, not support to 3D acceleration setting.


Installation with this script is as follows,

  1. Do 3D acceleration setting of your linux(XFree86 or Xorg) enviornments.
    If pc's graphic card is made by NVIDIA, get driver from http://www.nvidia.com/ and install.
    If pc's graphic card is ATI's, get driver from http://www.ati.com and install it.
  2. Download this script and following packages.
    Put all files into the same directory.
  3. Run script as " bash lg3d_installer.sh".
    Script hears installation directory ($prefix), so please input this And, script will install lg3d semi-automatically.
  4. run $prefix/lg3d/lg3d-dev.
    If you get a trouble to run LG3D, please check /var/tmp/lgserver.log

http://blogs.sun.com/thaniwa/date/20050407 2005年 4月 07日 木曜日

(EN) HomePod

Photograph of HomePod
HomePod is a network music player with operating interface that looks like iPod. HomePod can play MP3 files of servers, which runs HomePod server software, on LAN.
To use HomePod, we have to prepare Windows/Mac/Linux PC for HomePod Server.

Please look at the following URL when you want to know details of HomePod.
http://www.macsense.com/product/homepod/
I bought HomePod at JavaOne S.F. on June 2004.

HomePod has a speaker, but I use HomePod with external speakers because quality of HomePod's speaker is not good.

Most parts of HomePod's software is based on Java, and HomePod's software run on Linux.
HomePod's firmware/software is developed by GLOOLABS
GLOO LABS : http://developer.gloolabs.com/index.php

And, we can download source code of HomePod.
My HomePod has improved as follows.
(Source code which I wrote can download from forum of developer.gloolabs.com.)

  • (Server-side) Original cannot read SJIS when server environment is EUC-JP.
    So, I rewrite ID3Tag reader class to use JISAutoDetect.
  • (Server-side) Added directory search and play mode.
  • (HomePod) Added play music in the background.
    Original stop play music when user push menu button and move music selection menu.

ID3Tag issue is a very important on Japanese environment.
I have Windows environment and Linux environment, and general mp3 h/w player support SJIS only. So, I have to use ID3Tag with SJIS on linux environment.
Directory search mode is very useful when user has 1000+ mp3 files...

Updating Java code on HomePod is easy. Get jar file with ftp after login HomePod with telnet. Jar files of HomePod are in under /misple directory.

http://blogs.sun.com/thaniwa/date/20050321 2005年 3月 21日 月曜日

(EN) LG3D 0.6.1 Full Screen

Screen Shot : LG3D 0.6.1 Full Screen

Photograph of right side is a screen shot of full screen mode of LG3D opensource 0.61 version, I used on Project Looking Glass(LG3D) session of Java Computing 2005 at Roppongi, Tokyo Japan.

When you use LG3D opensource version on Linux environment, you have desktop/laptop pc with ATI Radeon chip or NVidia GeForce/GoForce chip, because LG3D opensource version need 24bit color and 3D(DRI) function.
And now, when you want to use full screen mode of LG3D, your PC need NVidia graphic chip, because current ATI's driver do not support Composite extension with DRI.
You can use full screen mode without Composite extension on ATI's graphic chip. But, in this environment, LG3D cannot display 2D window application...

LG3D full screen mode is works good. LG3D can display slide-show mode(full screen) of StarOffice(OpenOffice.org). But now, when you want to do it, it is good that your PC has over 1GB memory, because, current LG3D and StarOffice need large size memory.
And, Full Screen mode of Some Application like a Acrobat Reader cannot use on LG3D.

This screen shot is LG3D 0.6.1 full screen mode on Sun Java Workstation W1100z, which has NVidia Quadro 280 graphic chip on the system. In this screen shot, I ran xterm, mozilla, gimp, and acrobat reader on LG3D full screen mode, and I took the screen shot with gimp 2.0 screen capture function.