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.

DarkBASIC Professional Discussion / What I am missing here?

Author
Message
Gadget
16
Years of Service
User Offline
Joined: 18th Jun 2010
Location:
Posted: 30th Jun 2010 02:55
Hello,

I am playing with how to implement terrain and am following some examples I have gotten but can not figure out the nuances of it.

The code:



The error I get when I run it is just a blank error box so I don't know what is going wrong. If anyone can help me I would appreciate it. Thanks.

Gadget
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Jun 2010 08:21
I think you've missed a lot of advanced terrain setup stuff:



And without it, I think it's trying to use the older terrain system. That's not a good example, you should be able to get a decent example of advanced terrain, just showing you the AT setup stuff so you know what to look for.


Health, Ammo, and bacon and eggs!
Gadget
16
Years of Service
User Offline
Joined: 18th Jun 2010
Location:
Posted: 30th Jun 2010 09:36
Thanks, I am able to get my terrain working now but have run into subsiquent issues. The texture I am assigning to my terrain is stretching to the full terrain size instead of tiling. Any idea why? I am using 3DWS to create and texture the terrain. Secondly is there any documentation on Advance terrain usage and commands? Most of the commands you used are not in the help files and the boards are sparse actual help info. Thanks again.

Gadget
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Jun 2010 12:17
I'm confused, are you using 3DWS or advanced terrain? Maybe you need two threads?

Quote: "The texture I am assigning to my terrain is stretching to the full terrain size instead of tiling"

If you are using an imported object you could try using "Scale Object Texture", if it's advanced terrain that's just how it sets it up and the scale object texture command might still work (never tried it on terrain.

Quote: "Secondly is there any documentation on Advance terrain usage and commands? Most of the commands you used are not in the help files and the boards are sparse actual help info."

That's my biggest complaint about DBP. For most native commands and plugins the help files are far from adequate! I spent a lot of time experimenting with terrain to get the results I wanted and found that the best examples were the ones I found on Evolved's website:
http://www.evolved-software.com/shaders/advlighting
(you may need firefox to click his menu links)

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Jun 2010 13:01
Sorry, have no real experience with 3DWS - the chances are though that someone else has had the same issues. Advanced Terrain is a plugin, that kinda got abandoned, so it's not too well documented but fairly useful and easy to use at the same time.

But if your already making your terrains in 3DWS, I would suggest looking into multi-texturing, like using a shader to blend 4 detail textures over your terrain. So it would have the light map, plus really nice texture blending. If you send me a test object, like a terrain as an .X file, then I could have a look, see if it works with a blend shader.


Health, Ammo, and bacon and eggs!
Madscientist
16
Years of Service
User Offline
Joined: 23rd Aug 2009
Location: Between a rock and a hard place
Posted: 30th Jun 2010 19:42
Here's the help files. I had the same question a while ago.

If it hasn't exploded yet, I haven't touched it.
Gadget
16
Years of Service
User Offline
Joined: 18th Jun 2010
Location:
Posted: 30th Jun 2010 19:59
So by asking why I am using both advanced terrain commands and 3dws am I too assumes that 3dws can do more than just make and paint the terrain? I'm still very new to this and the way they make all the extra pieces not connect to each other is very confusing. Thanks for the help and your patience.

Gadget
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Jul 2010 10:43
Quote: "So by asking why I am using both advanced terrain commands and 3dws am I too assumes that 3dws can do more than just make and paint the terrain?"

No, sorry I have 3DWS but it hasn't worked for ages (at least for me!) and I haven't used it for making terrain but I was assuming it makes a "dbo" you import into your game in which case you would not be making a terrain just importing an object.

Login to post a reply

Server time is: 2026-07-25 08:13:19
Your offset time is: 2026-07-25 08:13:19