문제

I'm looking for a way to reproduce this foggy-sphere-glowing effect using Java3D.

http://bzflag.org/screenshots/bzfi0021.jpg http://bzflag.org/screenshots/bzfi0019.jpg http://bzflag.org/screenshots/bzfi0022.jpg

I'm creating a transform group with a point light source and an emissive-material-sphere, but I can't reproduce the foggyness.

Ideas?

Thanks!

============ SOLUTION (Thanks to Ricket) ===========

    try
    {
        TextureLoader myLoader = new TextureLoader( new File("./data/grad.png").toURI().toURL(), this );

        ImageComponent2D myImage = myLoader.getImage( );

        Raster raster = new Raster( );
        raster.setPosition( new Point3f( 0.0f, 0.0f, 0.0f ) );
        raster.setType( Raster.RASTER_COLOR );
        raster.setSize( 50, 50);
        raster.setImage( myImage );

        TransparencyAttributes ta =  new TransparencyAttributes( TransparencyAttributes.BLENDED, 0.0f );
        Appearance app = new Appearance();
        app.setTransparencyAttributes( ta );

        objScale.addChild( new OrientedShape3D(raster, app, OrientedShape3D.ROTATE_ABOUT_POINT, new Point3f( 0.0f, 0.0f, 0.0f )));


    }
    catch (MalformedURLException e) { throw new RuntimeException(); }
도움이 되었습니까?

해결책

I'm pretty sure the "sphere" is actually a 2D sprite drawn in 3D space as a billboard, and then a matching color light also 'drawn' at its position. The fogginess is just a 2D gradient of the image.

This is just my best guess from having played the game though, I haven't looked at the source.

다른 팁

문서 세트는 SharePoint 2010에서 새로 구현되었으며 제한 사항 그래서 폴더 기능을 제거 할 수 없었습니다. Document Sets의 구현에 가장 영향을주는 단일 한계는 기록 센터의 레코드로만 선언 할 수있는 문서 세트만을 선언 할 수 없었습니다. 또한 SharePoint 2010에서는 폴더를 중첩 할 수 없습니다 (로버트 린게렌이 지적했듯이).

폴더가 SharePoint에 존재하는 이유는 무엇입니까?

  1. 이전에 사용 된 구조를 유지함으로써 파일 공유에서 전환을 완화시킵니다.
  2. 목록 제한을 방지 오류를 방지합니다.
  3. 각 폴더에 대한 기본 메타 데이터 값을 설정할 수 있습니다.
  4. 는 상속을 끊을 경향이 있지만 항목 수준으로 가고 싶지는 않지만 폴더 수준 보안을 허용합니다.
  5. . 폴더는 반드시 악하지 않습니다.

    문서 세트 기능이 각 SharePoint 버전으로 성숙되면 폴더를 대체 할 수 있지만 SharePoint 2010에서는 메타 데이터 태깅이 문서 세트보다 폴더 기능을 대체 할 수 있음을 주장합니다. 폴더를 사용하면 부과 된 파일 구조를 알 수 있습니다. 뷰와 결합 된 메타 데이터 태깅은 태그 지정 및 원근법을 찾는 것에서 더 많은 유연성을 제공합니다.

You might try looking at the code. They even have a guide.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top