Got a smoke?

It runs…but i got this exception continues :frowning:

[quote]base -> TaskDispatcher[grp=0]:0 -> Task.exec() [Task [com.eyeriv.game.client.Wor
ldRenderer$1@85af80] threw exception]
java.lang.NullPointerException
at com.eyeriv.game.client.WorldRenderer.rayHits(WorldRenderer.java:329)
at com.eyeriv.game.client.WorldRenderer.selfShadow(WorldRenderer.java:30
3)
at com.eyeriv.game.client.WorldRenderer.raytrace(WorldRenderer.java:274)

    at com.eyeriv.game.client.WorldRenderer.access$3(WorldRenderer.java:216)

    at com.eyeriv.game.client.WorldRenderer$1.run(WorldRenderer.java:533)
    at com.eyeriv.util.Task.exec(Task.java:68)
    at com.eyeriv.util.TaskExecuter.run(TaskDispatcher.java:373)
    at java.lang.Thread.run(Unknown Source)

raytracing on 2 cores took 70ms
[/quote]

Pretty cool. I had it going at about 10fps on my work computer which has a Radeon 9800 Pro with 128MB.

But why does the app grab the mouse? Does the mouse do anything?

Thanks for your feedback!

The mouse is grabbed for absolutely no reason at all :slight_smile:

As for the lack of updates, I’m still working on newer versions the few hours I enjoy to have spare. So progress is slow.

Some screeeenz:

[url=http://www.songprojector.com/temp/smoke_demo_5.png]

http://www.songprojector.com/temp/smoke_demo_5.png
[/url]

[url=http://www.songprojector.com/temp/smoke_demo_6.png]

http://www.songprojector.com/temp/smoke_demo_6.png
[/url]

[url=http://www.songprojector.com/temp/smoke_demo_7.png]

http://www.songprojector.com/temp/smoke_demo_7.png
[/url]

dying to try this on linux via webstart :slight_smile:

Arrrise zombie thread!

This guy posted a non-realtime photo of a cloud on gamedev.net and everyone was impressed. So naturally I wanted to link to this to show em “THE AWSOME POWER OF JAVA”, but the latest zip keeps throwing NPE exceptions and the smoke flickers.

Any chance for a fix?

DP

For some mysterious reasons I can’t reply to this thread with my own account, so - I had this vision to create a new account ::slight_smile:

To answer your question: the posted version is so optimized I really can’t change it anymore.
More officially: the product has reached it EOL phase for support. :wink:
… but read on!

Here are some or the latest (yet months old) screenies:

http://www.songprojector.com/temp/cloud_versions.png

http://www.songprojector.com/temp/smoke_demo_9.png

http://www.songprojector.com/temp/smoke_demo_10.png

I got stuck in this project, as performance never got into the acceptable range. Remember I’m only rendering 1 cloud here, and it takes 425ms. Rendering a sky full of clouds would take forever, and require an incredible amount of RAM (this cloud uses 32MB for the volumegrid).

I am however in the process of designing (not coding) a new way to get this effects done in realtime.

You’ll see it when I’m done, but my study is taking slightly too much time from me to put the ideas into code.

:o

And now - after months - I can reply again with my own account in this thread ;D

Well, I tried out your demo on a 2.16ghz core duo (which I didn’t have when you first posted this)… and there’s both good and bad news. Good news is I get between 33-45 fps, which is pretty awesome. Bad news is it seems to flicker like crazy. Parts of the clouds alternate between black and white constantly (not entire black/white, I mean dark/light kinda). And every half a second or so it seems like it’s stuttering for some reason.

From your console output it looks like you’re recognizing 2 cores. Do you have some specific code for multiple processors that would make it function differently?

Nope, it doesn’t (AFAIK) utilize more than one core. Maybe though… it’s a while ago, and I remember I did all funny things with threading at the time… Doing things in parallel (which is very easily done with the algorithm) on your computer might cause the flickering… I think, if I didn’t sync it properly to the rendering-thread… Anyway, I might give this project another try rather soon, as I’m always motivated by people that actually try to run my stuff :slight_smile:

Hmm I ran the program again on my slower computer… I’m not sure but it might just look flickery because it’s running faster. If I adjust the settings so the “contrast” of the clouds is lower, it doesn’t look so bad. Also the faster computer is throwing those

base -> TaskDispatcher[grp=0]:0 -> TaskExecuter.run() [Task [com.eyeriv.game.client.WorldRenderer$1@cfec48] threw exception]
java.lang.NullPointerException
        at com.eyeriv.game.client.WorldRenderer.rayHits(WorldRenderer.java:329)
        at com.eyeriv.game.client.WorldRenderer.selfShadow(WorldRenderer.java:303)
        at com.eyeriv.game.client.WorldRenderer.raytrace(WorldRenderer.java:273)
        at com.eyeriv.game.client.WorldRenderer.access$3(WorldRenderer.java:216)
        at com.eyeriv.game.client.WorldRenderer$1.run(WorldRenderer.java:533)
        at com.eyeriv.util.Task.exec(Task.java:68)
        at com.eyeriv.util.TaskExecuter.run(TaskDispatcher.java:373)
        at java.lang.Thread.run(Unknown Source)

errors (while the slower one doesn’t), which might be causing the lagging.