Author Topic: [PLANTLIFE] Pseudorandom Zen  (Read 1902 times)

0 Members and 1 Guest are viewing this topic.

Offline Motorherp

  • C= 64
  • **
  • Posts: 57
  • Karma: 8
    • View Profile
    • Shmup Dev
[PLANTLIFE] Pseudorandom Zen
« on: July 01, 2008 »


Hiya folks.  This is my first entry to a comp here, I hope you like it.  Unfortunately we've gone into crunch mode at work again, the final push for the last deadline.  So for the next 6 to 10 weeks I'm going to be an overworked caffeine fueled pizza eating zombie with no social life and no time for other projects.  Therefore I might as well post what I have now since I'm not going to be able to do anything more with it before the deadline.

This is a windows xp program written in C++ using DirectX which proceduraly generates bonzi tree meshes.  It's only in wireframe at the moment since I wanted to concentrate on the mesh generation algorithms.  There's a few things missing I wanted to add such as roots and leaves etc, it could use more optimisation, and there's still some problems with it, but all in all I'm quite pleased with the result.  Press space to generate a new tree and escape to exit the program.  Some results are more aesthetically pleasing that others, the generation algorithms could use a bit more tweaking, so you might want to hit space a few times.  And please be patient, it can take a while to load.  Enjoy.
« Last Edit: July 01, 2008 by Motorherp »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16787
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #1 on: July 01, 2008 »
Oh noes! I can't run it and it looks interesting too!
Quote
Application failed to start because the application configuration is incorrect.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #2 on: July 01, 2008 »
Thats what I get too.
Looks amazing in the screenshot, cant wait to try it.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Motorherp

  • C= 64
  • **
  • Posts: 57
  • Karma: 8
    • View Profile
    • Shmup Dev
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #3 on: July 01, 2008 »
Hmm it could be the code generation setting I used to build it.  Could you try this one and let me know if it works.

Edit:  I replaced the file in the original post with the new one and removed this extra one rather than uploading two programs.  Try that if you could.
« Last Edit: July 01, 2008 by Motorherp »

Online hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 960
  • Karma: 394
    • View Profile
    • my stuff
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #4 on: July 01, 2008 »
"enIsoSurface failed to lock mesh vertex buffer"
Challenge Trophies Won:

Offline Motorherp

  • C= 64
  • **
  • Posts: 57
  • Karma: 8
    • View Profile
    • Shmup Dev
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #5 on: July 01, 2008 »
Now that's strange.  That means you got passed the DX mesh creation ok which implies you can run DX stuff.  I cant see why it would fail to lock the vertex buffer for you though if it gets that far, I dont really see how that can be dependant upon someone's machine.  Then again I'm no DX expert.
« Last Edit: July 01, 2008 by Motorherp »

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3052
  • Karma: 174
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #6 on: July 01, 2008 »
Well it runs here anyway :)

Looks cool seein the spinning tree, Loading does take a while but not too long. Nice one Motorherp its a shame you dont have the time to finish it

Challenge Trophies Won:

Offline Motorherp

  • C= 64
  • **
  • Posts: 57
  • Karma: 8
    • View Profile
    • Shmup Dev
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #7 on: July 01, 2008 »
Well I'm glad it works for someone  ;D.  Anyway Hellfire, I've changed the mesh to be dynamic which might fix the issue for you.  I've also changed the error reporting code so it should hopefully now spit out a DX error code if anyone gets any problems with DX stuff like that.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16787
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #8 on: July 01, 2008 »
Ah it works now, takes a while to initialise but it's well worth it :)
Shockwave ^ Codigos
Challenge Trophies Won:

Online hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 960
  • Karma: 394
    • View Profile
    • my stuff
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #9 on: July 01, 2008 »
now it works and looks cool!
(geforce 7600 btw)
Challenge Trophies Won:

Offline Motorherp

  • C= 64
  • **
  • Posts: 57
  • Karma: 8
    • View Profile
    • Shmup Dev
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #10 on: July 01, 2008 »
Sweet, glad it's working for you all.  Yeah it needs some serious optimising.  There's some tricks I could do such as partitioning the space to cull chunks away from the iso surface generator for example.  I'd definately have to spend some time on that if I wanted to include something like this in a full demo.  A nice thing though is that the generation runs in a seperate thread so I could hide the load times with other less intensive stuff in the demo such as the greets.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #11 on: July 01, 2008 »
Says I need d3dx9_36.dll
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Motorherp

  • C= 64
  • **
  • Posts: 57
  • Karma: 8
    • View Profile
    • Shmup Dev
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #12 on: July 01, 2008 »
Says I need d3dx9_36.dll

Try installing the latest version of DirectX 9, hopefully that will help.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #13 on: July 01, 2008 »
Cheers
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #14 on: July 01, 2008 »
Thats really awesome, welldone dude  8)

Cheers and all the very best,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2325
  • Karma: 392
    • View Profile
    • http://www.rbraz.com/
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #15 on: July 02, 2008 »
Works fine here, nice generated model, just need some foliage :)
rbz ^ Codigos
Challenge Trophies Won:

Offline combatking0

  • Flash! Aa-aaah!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 3625
  • Karma: 114
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #16 on: July 02, 2008 »
Groovy - it sort of looks like a wire-frame effect.

This one would also look good in a Halloween competition.
You are NOT our 1000000th visitor.
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #17 on: July 02, 2008 »
After loading screen, screen remains black :-(

However, screeny looks very promising !
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Online hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 960
  • Karma: 394
    • View Profile
    • my stuff
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #18 on: July 02, 2008 »
It behaves a bit strangely on my dual-core at work.
Most of the time it just hangs after "loading", sometimes it crashes, sometimes it works.
Probably some threading-issue?
It would also be great if you could use a bigger rendertarget when resizing the window.
Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1343
  • Karma: 79
    • View Profile
Re: [PLANTLIFE] Pseudorandom Zen
« Reply #19 on: July 02, 2008 »
The Marching Cubes came through quite nicely!

The loading time is understandable considering the complexity of the shape you are creating from scratch.
Challenge Trophies Won: