Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Newton Cradle demo...

  1. #1

    Newton Cradle demo...

    Not content with getting 2nd Place in the PGD competition, over on DelphiGL.de, Sascha Willems has announced a new Newton demo, based on a well known office toy.

    <center></center>

    You can download this interactive demo
    here.

    He has also recently updated the NewtonPlayGround so that it now uses the current version of the Newton SDK (1.32).
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  2. #2

    Newton Cradle demo...

    That's really cool! You just need some sound now =D

    It's amazing that you can actually interact with it like the real thing. I managed to get a few to swing over, and some to swing through the harness of the one next to it.

    Was it easy to implement the newton engine?
    http://www.c5software.co.uk (site is being developed at the moment)

  3. #3

    Newton Cradle demo...

    Yes, it was very easy to do this with Newton. It only takes about two dozen lines of code to build the physics for the cradle.

  4. #4

    Newton Cradle demo...

    After some complaints over on the Newtonforums, I updated the demo (link is the same). List of fixes :
    • Shadows now work on NVidia-cards
    • No more need for GDIPlus.dll (only W98/Me/2k)
    • More realistic light position and therefore more realistic casting shadows

  5. #5

    Newton Cradle demo...

    Hi Sascha,
    Any chance of the environment map on the balls being updated in real-time?

    Unless this has something to do with my graphics card.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  6. #6

    Newton Cradle demo...

    I could implement that, but it would kill performance. Cause for each ball you need to render six different views to get a cubemap and this would have need to be done every frame for all the balls. Although one then normally renders the cubemap in a much lower resolution (maybe 128x128 would be enough for each cubemap face) it would still mean that you have to render the scene thirty times (5 balls and 6 textures) either each single frame or at least all 5 (or more) frames and together with the stencil shadows that would kill performance.

    But when I find the time I'll implement it and see how much it impacts on performance.

  7. #7

    Newton Cradle demo...

    I couldn't resist :

    (Click for 800x600)


    I added water refractions using glSlang-shaders and as you can also see I added dynamic (updated every frame) reflections for all the balls using cubemapping. The reflections do really reflect everything, even the already reflection balls.

    But the bad thing : It's painfully slow. My good'ol Radeon 9700 won't get more than 10 fps, but on the other hand it has a lot of work to do. Not only does it need to render 30 different views (for the reflection cubemap) it also has some shaderwork to do with the water and the balls itself, as I also apply sheen-lighting and details to the balls via a glSlang-shader.

    So I hope those screenshots are enough, as I don't plan to release that version to the public.

  8. #8

    Newton Cradle demo...

    It looks very sweet indeed. Why not release a binary with these changes, but have it as a switch that can be turned on or off, so that those with the hardware can see it in all it's glory, while those without can still play with it in real-time.
    And you definately need to get some of these images up on www.flipcode.com/iotd, which would also be good PR for your excellent site.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  9. #9

    Newton Cradle demo...

    @ Newton's cradle :
    You're right. I think I'll just check for the extension on starting and then enable what the card can do, this way users of better graphics cards get all the eye-candy. I already optimized some stuff last evening and now get around 30 fps.

    @ ITOD :
    I already had in IOTD there fore one of my games some years back. But I don't want too much exposure for my page, especially as feedback (except from forums) is almost non-existant.

  10. #10

    Newton Cradle demo...

    wouldnt updating the reflection map every other frame work?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •