Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Blitz3d for a FPS?
Goto page Previous  1, 2, 3, 4, 5  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Indie Subsims
View previous topic :: View next topic  
Author Message
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Sun Nov 30, 2003 12:35 am    Post subject: Reply with quote

Yep, it worked Smile Had to adjust the position of them (when put in engine they were upside down so in model program had to flip) but I got it and it's looking good.


I'm trying to scale them now, make them look more adjusted. Also, using your basic feature and changing the depth, I'm trying to add tree's and stuff.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Sun Nov 30, 2003 2:30 am    Post subject: Reply with quote

Cool

What do you want next ?
Back to top
View user's profile Send private message Visit poster's website
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Sun Nov 30, 2003 2:59 am    Post subject: Reply with quote

Quick question, is there a way to make like a road?

Just like a dirt road going down the middle, straight road of course, and then like have tree's on both sides of it.

BTW:
What is the max polygonal rate for a model?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Sun Nov 30, 2003 6:40 am    Post subject: Reply with quote

U-421 wrote:
Quick question, is there a way to make like a road?

Just like a dirt road going down the middle, straight road of course, and then like have tree's on both sides of it.


Nope.Not as easy as create a plane.Ther is a way to define a polygon within the code and give it a color or texture and then you have your road.For the trees,you know the drill how to load and place objects ?.You can of course write an algorythm that places as mutch trees along the road as you like and here's where the fun in programming starts.

Did you ever looked in to the help files ? all the functions are described there and there are examples of course for everything you need.I help you to understand the basics but then you should be able to procced alone with the help files and examples(you can always ask me of course).Did you readed the introduction to the syntax ? the keywords,how to declare variables and functions,the different loop typs and stuff ?

Quote:

BTW:
What is the max polygonal rate for a model?


Max polygonal rate ? you mean polycount ?

You mean the highest polygon count for a model in Blitz3D ?

If so then there is no limit.The only limit is your system spec.


Deamon
Back to top
View user's profile Send private message Visit poster's website
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Sun Nov 30, 2003 3:30 pm    Post subject: Reply with quote

Yeah you got it, I'm kinda term illeterate.

I did look over the help files but ya know, first starting out it's all words jumbled together. Just takes time to understand it all Smile
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Mon Dec 01, 2003 12:05 am    Post subject: Reply with quote

U-421 wrote:
Yeah you got it, I'm kinda term illeterate.


Don't worry.That's normal at the beginning.If i think back as a tryed it back then in my early youth with the 3D Construktion Kit on the Amiga.I had to give it up couse i was to stupid to understand the language.But now slowly i become Obi Van Kinobi Smile

Quote:

I did look over the help files but ya know, first starting out it's all words jumbled together. Just takes time to understand it all Smile


Well we can still continue here.Now it's time to implement camera movements via keys or what ?


Deamon
Back to top
View user's profile Send private message Visit poster's website
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Mon Dec 01, 2003 8:04 pm    Post subject: Reply with quote

Yeah, camera movements with these keys..

forward = up arrow (key arrangement below delete, end, etc)
back = back arrow
strafe left = left arrow
strafe right = right arrow

Thats about all I need for now, some of the models have to be elevevated above ground to show the whole thing, and so to get it just right I might as well do it know through this.


Also, I'm having some skinning problems.
I have the textures and groups assigned to the right parts and stuff, and everythings how it should be, but when I load the .bb the textures don't show up on the model, (but on the other ones so I know I'm doing it right) any advice, or redo the model.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Mon Dec 01, 2003 9:50 pm    Post subject: Reply with quote

U-421 wrote:
Yeah, camera movements with these keys..

forward = up arrow (key arrangement below delete, end, etc)
back = back arrow
strafe left = left arrow
strafe right = right arrow

Thats about all I need for now, some of the models have to be elevevated above ground to show the whole thing, and so to get it just right I might as well do it know through this.


Ok,the new code with camera movements.I just copy and pasted the one i have used in the past.Fit it to your needs:

;===========================


;------------ Data Declarations ----------------------

Global vx#,vz#,vxr#,vyr#,vzr# ; Variables to store camer coordinates

Const up%=200,down%=208,links%=203,rechts%=205 ; This are scancodes for keys
Const rightStr%=157,rightShift%=54,pageUp%=201,ende%=207 ; More scancodes


;------------ Set grafics mode ---------------------

Graphics3D 1024,768,16,1
SetBuffer BackBuffer()

;------------ Create a plane ---------------

OceanTexture=LoadTexture("grass.bmp")
ScaleTexture OceanTexture,20,20

Ocean=CreatePlane()
EntityTexture Ocean,OceanTexture
PositionEntity Ocean,0,0,0

;------------ Load 3D Model ---------------------

dteeth=LoadMesh("dteeth.3ds")
PositionEntity dteeth,0,0,200

;------------ Create a view -----------------

View1=CreateCamera()

PositionEntity View1,0,180,0
CameraClsColor View1,38,88,155
CameraRange View1,1,1000

;------------ Create light ------------------------


Sun=CreateLight(1)
PositionEntity Sun,0,1000,0
LightRange Sun,2000


Repeat

ProcessInput()
UpdateWorld
RenderWorld
Flip

Until KeyHit(1)



;------------ Process user input for the View1 --------------

Function ProcessInput()


MovePlayerView()
TurnPlayerView()


End Function


;------------ Move player view -----------------


Function MovePlayerView()

If KeyDown(pageUp)
vx#=-8
MoveEntity View1,-8,0,0
Else If KeyDown(ende)
vx#=+8
MoveEntity View1,+8,0,0

End If

If KeyDown(rightShift)
vz#=-8
MoveEntity View1,0,0,-8
Else If KeyDown(rightStr)
vz#=+8
MoveEntity View1,0,0,+8

End If

End Function


;------------ Turn player view -----------------


Function TurnPlayerView()

;Up 200
;Down 208
;Left 203
;Right 205

If KeyDown(up)
vxr#=vxr#-8
RotateEntity View1,vxr#,vyr#,vzr#
Else If KeyDown(down)
vxr#=vxr#+8
RotateEntity View1,vxr#,vyr#,vzr#
End If

If KeyDown(links)
vyr#=vyr#+8
RotateEntity View1,vxr#,vyr#,vzr#
Else If KeyDown(rechts)
vyr#=vyr#-8
RotateEntity View1,vxr#,vyr#,vzr#
EndIf

End Function


;===========================



Quote:

Also, I'm having some skinning problems.
I have the textures and groups assigned to the right parts and stuff, and everythings how it should be, but when I load the .bb the textures don't show up on the model, (but on the other ones so I know I'm doing it right) any advice, or redo the model.


I don't understand what you mean with loading the .bb .bb is the texformat of the code you save in B3D.


Deamon
Back to top
View user's profile Send private message Visit poster's website
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Mon Dec 01, 2003 10:10 pm    Post subject: Reply with quote

Ok, fixed the texture problem Smile

New problem, an error.

It loads but when I press one of the arrow buttons (dont know if I should have fixed anyting) I get this error:

Entity does not exist

and this line highlighted

RotateEntity View1,vxr#,vyr#,vzr#


Was there anything I needed to change?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Mon Dec 01, 2003 10:56 pm    Post subject: Reply with quote

Here's what I have to help clear things up, I still can't figure it out. So I've just stuck with what I have and am continuing to place models (hehe)

Code:
;===========================

;------------ Set grafics mode ---------------------

;------------ Data Declarations ----------------------
Global vx#,vz#,vxr#,vyr#,vzr# ; Variables to store camer coordinates
Const up%=200,down%=208,links%=203,rechts%=205 ; This are scancodes for keys
Const rightStr%=157,rightShift%=54,pageUp%=201,ende%=207 ; More scancodes

Graphics3D 1024,768,16,1
SetBuffer BackBuffer()

;------------ Create a plane ---------------

OceanTexture=LoadTexture("grass.bmp")
ScaleTexture OceanTexture,20,20

Ocean=CreatePlane()
EntityTexture Ocean,OceanTexture
PositionEntity Ocean,0,0,0

;------------ Load 3D Model ---------------------

dteeth=LoadMesh("dteeth.3ds")
PositionEntity dteeth,0,0,200

dteeth2=LoadMesh("dteeth.3ds")
PositionEntity dteeth2,-50,0,200

shermantank=LoadMesh("shermantank.3ds")
PositionEntity shermantank,20,3,155

tree=LoadMesh("tree.3ds")
PositionEntity tree,-50,10,320

tree2=LoadMesh("tree.3ds")
PositionEntity tree2,-120,10,320

tree3=LoadMesh("tree.3ds")
PositionEntity tree3,20,10,320

tree4=LoadMesh("tree.3ds")
PositionEntity tree4,95,10,320

gi=LoadMesh("GIWW2.3ds")
PositionEntity gi,0,5,150

fort=LoadMesh("fort.3ds")
PositionEntity fort,0,5,150
;------------ Create a view -----------------

View1=CreateCamera()

PositionEntity View1,0,30,0
CameraClsColor View1,38,88,155
CameraRange View1,1,1000

;------------ Create light ------------------------

Sun=CreateLight(1)
PositionEntity Sun,0,1000,0
LightRange Sun,2000


Repeat

ProcessInput()
UpdateWorld
RenderWorld
Flip

Until KeyHit(1)

;------------ Process user input for the View1 --------------

Function ProcessInput()


MovePlayerView()
TurnPlayerView()


End Function


;------------ Move player view -----------------
Function MovePlayerView()
If KeyDown(pageUp)
vx#=-8
MoveEntity View1,-8,0,0
Else If KeyDown(ende)
vx#=+8
MoveEntity View1,+8,0,0
End If
If KeyDown(rightShift)
vz#=-8
MoveEntity View1,0,0,-8
Else If KeyDown(rightStr)
vz#=+8
MoveEntity View1,0,0,+8
End If
End Function
;------------ Turn player view -----------------
Function TurnPlayerView()
;Up 200
;Down 208
;Left 203
;Right 205
If KeyDown(up)
vxr#=vxr#-8
RotateEntity View1,vxr#,vyr#,vzr#
Else If KeyDown(down)
vxr#=vxr#+8
RotateEntity View1,vxr#,vyr#,vzr#
End If
If KeyDown(links)
vyr#=vyr#+8
RotateEntity View1,vxr#,vyr#,vzr#
Else If KeyDown(rechts)
vyr#=vyr#-8
RotateEntity View1,vxr#,vyr#,vzr#
EndIf
End Function
;===========================
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Mon Dec 01, 2003 11:19 pm    Post subject: Reply with quote

U-421 wrote:
Ok, fixed the texture problem Smile

New problem, an error.

It loads but when I press one of the arrow buttons (dont know if I should have fixed anyting) I get this error:

Entity does not exist

and this line highlighted

RotateEntity View1,vxr#,vyr#,vzr#


Was there anything I needed to change?


Ah,damn it.Change this line:

Global vx#,vz#,vxr#,vyr#,vzr# ; Variables to store camera coordinates

to:

Global View1,vx#,vz#,vxr#,vyr#,vzr# ; Variables to store camera coordinates


Does it work ?


Deamon
Back to top
View user's profile Send private message Visit poster's website
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Tue Dec 02, 2003 8:13 pm    Post subject: Reply with quote

Yeah, that works,nice and pretty too Smile

Thanks!

I'm still having trouble trying to make a road, do I need a texture for this? And I just want it to go straight down the middle of the map, no curves or anything. Is there something in the help file(s) or something?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Wed Dec 03, 2003 4:22 am    Post subject: Reply with quote

U-421 wrote:
Yeah, that works,nice and pretty too Smile

Thanks!

I'm still having trouble trying to make a road, do I need a texture for this? And I just want it to go straight down the middle of the map, no curves or anything. Is there something in the help file(s) or something?



Did you ever looked in to the various samples for roads ? I can't remeber whether there were roads or not.You can of course put a long rectangle and use it as a road for now or align a series of rectangles.Once you get more experianced you can utilize some better methods.Else you would have to put a real 3d terrain with road textures if you want roads or you can use the dynamic mesh creation functions in B3D,run the trone sample and you will see what i mean.If you want's to use it then look closely to this sample and try to replecate this function for your road purpuose.



Deamon
Back to top
View user's profile Send private message Visit poster's website
U-421



Joined: 14 Sep 2002
Posts: 139

PostPosted: Wed Dec 03, 2003 9:40 pm    Post subject: Reply with quote

Is there a way to change from one ground texture to the next?

For instance, from sand to grass to a rocky texture (just bmp's) and back to grass?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Thu Dec 04, 2003 4:48 am    Post subject: Reply with quote

I assume you talk about the plane,if so then no.I mean the plane you can use it for water but i do not recommanded to use it for land.If you want to make a shooter or anything else that plays on the ground then you should make a real 3D model of the terrain texture it properly and load it.

Did you found a solution for the roads ?

Deamon
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Indie Subsims All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group