• Welcome to Dark Bit Factory & Gravity.
 

[PLANTLIFE] Pseudorandom Zen

Started by Motorherp, July 01, 2008

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Motorherp

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.

Shockwave

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:

Clyde

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:

Motorherp

#3
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.

hellfire

"enIsoSurface failed to lock mesh vertex buffer"
Challenge Trophies Won:

Motorherp

#5
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.

rain_storm

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:

Motorherp

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.

Shockwave

Ah it works now, takes a while to initialise but it's well worth it :)
Shockwave ^ Codigos
Challenge Trophies Won:

hellfire

now it works and looks cool!
(geforce 7600 btw)
Challenge Trophies Won:

Motorherp

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.

Clyde

Says I need d3dx9_36.dll
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Motorherp

Quote from: Clyde on July 01, 2008
Says I need d3dx9_36.dll

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

Clyde

Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Clyde

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:

Rbz

Works fine here, nice generated model, just need some foliage :)
Challenge Trophies Won:

combatking0

Groovy - it sort of looks like a wire-frame effect.

This one would also look good in a Halloween competition.
You are our 9001st visitor.
Challenge Trophies Won:

benny!

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:

hellfire

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:

Pixel_Outlaw

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: