Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Terrain won't show... but no errors given...

Author
Message
Gadget
14
Years of Service
User Offline
Joined: 18th Jun 2010
Location:
Posted: 29th Jun 2010 11:52 Edited at: 29th Jun 2010 11:54
Hello again everyone,

I have started playing with putting objects into my code to start learning that aspect. I have a code that was copied and pasted from a previous post http://forum.thegamecreators.com/?m=forum_view&t=171926&b=1 that worked ok until I upgraded to the latest version of DBPro. Now I can get my tank to show but the terrain does not show. When it did show on the old version the camera started out below the terrain which was fine since I'm sure there is a way to move the camera's starting location. Can somone please tell me why I can not see the terrain when I try to run it? I have given my terrain, tank and the accompanying textures for you to help me out. Thanks a ton.



Gadget
edit because I forgot to insert my code;

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 29th Jun 2010 17:38
Hi Gadget,

I'm a little surprised you posted this here. Anyway, this code will at least get you to where you can see the terrain and tank. It comes out looking pretty dark. Also, your Terrain Test.bmp is 65 X 65. You want maps to be multiples of 2. I resized it to 256 X 256 (file attached). The tank is huge, so I scaled it down a bit. I really didn't have time to comment on the code too much.



LMB moves the tank forward (the camera follows), RMB moves it back. Mousemove rotates it on the Y axis.

It's not perfect, in that you really would have to look at the terrain height on the four corners of the tank and calculate the proper angle it should be, but it hopefully will be of help to you.


Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 13:50:58
Your offset time is: 2024-11-24 13:50:58