xith.org updates

Caught the Swing Itegration bit just a little too later, I’d just gone through it, but looks like a really useful resource!

Is re-calling setRoot() on a UIWindow still the only way to mark the component as completely dirty? It just didn’t feel like the final solution.

Kev

[quote]Is re-calling setRoot() on a UIWindow still the only way to mark the component as completely dirty? It just didn’t feel like the final solution.
[/quote]
It’s good you mention this. I noticed this, when I wrote SwingFPSCounter, but forgot to write about it in the forum. Currently I don’t know a better way to mark the component as completely dirty. If no one else knows, I’ll submit this as an issue.

Regarding the window-resizing: I found out that adding

canvas.get3DPeer().getComponent().setFocusable(true);

solves the problem. However I don’t know if that’s obvious. What do you think?

The swing section looks good Jens, sorry for the delayed comments.

Cheers,

Eric

The best way to mark it dirty is to call repaint() on the root component. Basically all this does anyway is add a dirty rectangle to the manager.

Ah ha, I was hoping this would catch your eye, I couldn’t find the old post.

repaint() refuses to work for me, the small FPS counter in the top of the alien demo has setRoot() called since repaint() refused to do anything.

Kev

[quote]The best way to mark it dirty is to call repaint() on the root component. Basically all this does anyway is add a dirty rectangle to the manager.
[/quote]
That’s what I tried first, but it didn’t work. If you want a testcase, replace window.setRoot(panel); by panel.repaint(); in SwingFPSCounter.nextFrame().

What do you think about the focus thing? Is it alright?

[quote]I hope no comments means everything is fine.
[/quote]
Yes, I too think so. :slight_smile: I like your tutorium.
The Swing/Awt to Xith3d relation is interesting: not only the usage of Swing components (painted via Jogl) inside Xith3d Canvas3d, but also when Awt/Swing components sits next to a Xith3d Canvas3d. For example if your game/whatever runs in a window and you hit some Swing buttons in order to open JTable data editors or that like…

GSG update: Introduction

[quote]GSG update: Introduction
[/quote]
Thanks Jens.
When I download the PDF however both Ghostscript and Acroreader say they can’t read the document…

[quote]When I download the PDF however both Ghostscript and Acroreader say they can’t read the document…
[/quote]
Looks like something went wrong when uploading the PDF. Try again now.

Works fine now. Thanks.

Minor update: The texture section now contains a paragraph about the performance of MipMaps and a benchmark by oNyx.

JWS resources updated to include new demos (and the current version of Xith3D).

http://xith.org/demo/

Will.

Two new JWS demos added to the demo page:

Jens’ http://xith.org/jws/jws-com.xith3d.test.Xith3DOggLoaderJarTest.jnlp

and

Yuri’s http://xith.org/jws/jws-com.xith3d.test.Xith3DMorphPyramid2CubeTest.jnlp

Will.

I can proudly announce two updates of the Getting Started Guide:

Will has written an introduction how to use TransformGroup Trees with the ASE Loader. It explains the improvements Will made to the ASE Loader recently and includes a nice demo of course.

Hawkwind added another part to his section More Fun with Textures. He explains TextureAttributes and shows moving textures.

Have fun reading this! :slight_smile: Btw. the PDF version now has 75 pages.

Added a small paragraph to the picking tutorial (at the bottom of the page), because of problems mentioned in this thread.

Just not to forget: there are some new (and old) demos that can be placed on the test demos page:

David’s Xith3DCollisionDropTest
Yuri’s Xith3DColorComponentWriteTest
Yuri’s Xith3DPolygonOffsetTest
Yuri’s Xith3DSphereMotionLightingTest
Yuri’s Xith3DTransparencyAlphaTestLight

Yuri

ok, I’ll add them tonight

Will.

[quote]Just not to forget: there are some new (and old) demos that can be placed on the test demos page:

David’s Xith3DCollisionDropTest
Yuri’s Xith3DColorComponentWriteTest
Yuri’s Xith3DPolygonOffsetTest
Yuri’s Xith3DSphereMotionLightingTest
Yuri’s Xith3DTransparencyAlphaTestLight

Yuri
[/quote]
Ok, there all in and appear to be working :slight_smile:

Will.

Another section of Hawkwind’s texture tutorial has made it in the GSG. This time he explains how to create a simple animated river combining layers of textures.