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.

Newcomers DBPro Corner / code problems

Author
Message
nugen
17
Years of Service
User Offline
Joined: 27th Oct 2006
Location:
Posted: 31st Oct 2006 10:39
i used the terrain commands from the advanced terrain thread but its not working

i used geoscape 3d for hieghtmap

` create the terrain object
make object terrain 1
` set the heightmap
set terrain heightmap 1, "map.bmp"
` set the scale
set terrain scale 1, 3, 0.6, 3
` split value by 16 * 16
set terrain split 1, 16
` detail map tiling
set terrain tiling 1, 4
` light - xdir, ydir, zdir, red, green, blue, intensity
set terrain light 1, 1, -0.25, 0, 1, 1, 0.78, 0.5
` base and detail texture
set terrain texture 1, 1, 2
` finally build the terrain
build terrain 1

if ur wondering why i didnt post in that thread its because usually new threads get more attention

choose words and actions wisely
as their effects will ripple through all life
life is unforgiving
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 1st Nov 2006 03:43
Did you remember to use update terrain in your display code?

Also, not working encompasses many, many things.

Hope that helps.
nugen
17
Years of Service
User Offline
Joined: 27th Oct 2006
Location:
Posted: 1st Nov 2006 16:38
can someone plz give the code/help for

1) saving in games
2) how to tell the program to use an explosion from exgen upon collision(filetype .avi)
3) types of files supported by dbpro4
4) i created animation for a guy running if i press upkey i want to guy to run like that animation
5) help with skeleton in maya6/gamespace1.5 and some modeling in maya would be helpful

choose words and actions wisely
as their effects will ripple through all life
life is unforgiving
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 1st Nov 2006 19:13
That is a tall order.
1-4 I could help you with, but...I don't use Maya. You have a legal copy of Maya? If not, don't expect too much help here.

I am out of time until tonight. There are lots of samples that can show you 1-4...you should really research more. It seems to me that you are pressured to produce something...and that makes me curious...tell me about your application.
nugen
17
Years of Service
User Offline
Joined: 27th Oct 2006
Location:
Posted: 2nd Nov 2006 07:49
yes i have a legal copy of maya6

im not pressurized i just want to make a game

u can find the story of the game in 'a friendly challenge' thread

i need help cause im determined to make it no matter what

plz help me

choose words and actions wisely
as their effects will ripple through all life
life is unforgiving
nugen
17
Years of Service
User Offline
Joined: 27th Oct 2006
Location:
Posted: 2nd Nov 2006 08:11
some help with terrain

everytime i try to create terrain an error comes '''could not determine parameter type of terrain 1 at line x'''


Make Object Terrain 1
Set Terrain Heightmap 1,"Heightmap.bmp"
Set Terrain Texture 1,1,2
Set Terrain Tiling 1,2
Set Terrain Scale 1,30,1,30
Set Terrain Split 1,16
Set Terrain Light 1,800,10000,200,.8,.8,.2,.05
Build Terrain 1
If File Exist("Terrain1.dbo") Then Delete File "Terrain1.dbo"
Save Terrain "Terrain1.dbo",1
Delete Object 1
Sync On:Sync Rate 60:Autocam OFf
Load Terrain "Terrain1.dbo",1
Position Camera 50,0,50

Do
Move Camera (Upkey()-DownKey())*.5
Turn Camera Right (RightKey()-LeftKey())
e#=Get Terrain Ground Height(1,Camera Position X(),Camera Position Z())+7.0
Position Camera Camera Position X(),e#,Camera Position Z()
Sync
Loop
End

choose words and actions wisely
as their effects will ripple through all life
life is unforgiving

Login to post a reply

Server time is: 2024-09-25 11:29:15
Your offset time is: 2024-09-25 11:29:15