PDA

View Full Version : Help needed for landscape generation


Mike Halliday
10-09-2007, 10:45 PM
Hiya,

Can someone please, please, please!!! have a look at the attached code?

I have been scratching my head so much over this I got splinters! :(

It should produce a nice landscape every time the screen is refreshed, and eventually reduce down to sea level.

My problem is that I dont seem to be able to get the height projection right. :(

The dots view kinda looks ok, but the line view it totally pants. :(

I'm so close yet so far.

This is code converted from QBASIC for dos - I know the basic code works as I have run it side by side (Using VMWARE and a DOS VM) - it looks sweet in Qbasic and really rubbish in PPL!

If you can tell me where I'm going wrong I have more of a chance of learning and understanding PPL and graphics coding in general. Reading books and notes gives me a headache! lmao.

I'm on VISTA too so can't use the debugger - It throws up an access violation error before I can debug any code! :(

Cheers guys

Thanks for all your help!

(If you don't ask, you never get!)[br]1191966308_671_FT0_3dlanscapegenerator.zip

PointOfLight
10-10-2007, 08:52 PM
Any chance you could post the QBasic code?* I'm not much of a 3D programmer, so it would help to see the original source.

kornalius
10-10-2007, 09:12 PM
Mike, please elaborate on the Vista debugger bug? Never heard about it.

Mike Halliday
10-10-2007, 09:16 PM
Vista Debug issue: I had a breakpoint set then ran using F5 - I added some user variable in the watch box, and I got an access violation error.

I will try and duplicate it and post a screen shot.