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 23, 2003 11:09 pm    Post subject: Reply with quote

Yeah, that worked Yep

I'm gonna have to get the license or whatever for Christmas, I looked at my funds and I've only got $25 Sad
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Mike 'Red Ocktober' Hense



Joined: 21 Sep 2001
Posts: 1262
Location: NY USA

PostPosted: Mon Nov 24, 2003 11:38 am    Post subject: Reply with quote

sorry guys I've been missing this...

seems as if you got everything squared away though... good Smile

I am a lil busy, but I will make a point to browse this thread and try to answer any questions (the ones that I can) about Blitz, or at least point you to someone who can.

Good Luck
--Mike
Back to top
View user's profile Send private message Visit poster's website
Deamon



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Mon Nov 24, 2003 2:54 pm    Post subject: Reply with quote

U-421 wrote:
Yeah, that worked Yep


Nice Smile So the problem seems to be the texture or something around it,we should take a closer look at it now.What is your spec ? and how big is your texture ?

Quote:

I'm gonna have to get the license or whatever for Christmas, I looked at my funds and I've only got $25 Sad


How old are you fellow ?


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 Nov 24, 2003 7:46 pm    Post subject: Reply with quote

oo boy..

specs:
2.4 GHZ
80GB Hard Disk Drive
512 MB Ram
Radeon 9000
Win-XP

Texture size:
66kb 256x256

And how old I am.. well, legally enough to drive, young enough to still be in school Embarassed
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 Nov 24, 2003 8:22 pm    Post subject: Reply with quote

Ok lets figure out what is wrong here:

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

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

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

;----------------------------


First try uncomment the above code and try to change the parameters in this line:

ScaleTexture OceanTexture,20,20

for example:

ScaleTexture OceanTexture,6,6

Does it work now ?

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 Nov 25, 2003 12:48 am    Post subject: Reply with quote

Yep, both work, except the grass.bmp texture isn't showing up. It's all blue background.
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: Tue Nov 25, 2003 2:00 am    Post subject: Reply with quote

U-421 wrote:
Yep, both work, except the grass.bmp texture isn't showing up. It's all blue background.


You mean the previous code that produced an error works too now ?

Try to play around with different values and report me the result.


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 Nov 25, 2003 7:02 pm    Post subject: Reply with quote

Code:
;------------ Create a plane ---------------

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

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

;----------------------------


Works, and I changed some stuff in it, the only thing is, is that the grass.bmp doesn't load up.. It's in the folder and everything, just nothing shows up, no errors either.
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: Tue Nov 25, 2003 8:44 pm    Post subject: Reply with quote

Copy and paste the code below:

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

;------------ 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

;------------ 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

UpdateWorld
RenderWorld
Flip

Until KeyHit(1)
;===========================

Do the texture show up ?

If not then replace the code line below:

PositionEntity View1,0,180,0

with this one:

PositionEntity View1,0,-180,0

Does it work ?

What you can also do is try to make some more textures in different sizes also open the grass.bmp with paint and check that everything is ok with it.

BTW:How many starts are left ?

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



Joined: 14 Sep 2002
Posts: 139

PostPosted: Fri Nov 28, 2003 1:17 pm    Post subject: Reply with quote

That works but it must be like a really high resolution or something because the ground is really far down, but yeah I see the texture.

Also, I have 23 starts left, a lot more than I thought I had.

Whats next Smile ?

And thanks for your patience and everything Deamon..
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: Fri Nov 28, 2003 1:40 pm    Post subject: Reply with quote

Sorry, but I just made a model (err rather a couple) of some dragon's teeth, or anti-tank concrete barricades that are located along the Siegfred line, do you think we could put these in somewhere?

Render of the Dragon's teeth with texture.

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: Fri Nov 28, 2003 9:17 pm    Post subject: Reply with quote

U-421 wrote:
That works but it must be like a really high resolution or something because the ground is really far down, but yeah I see the texture.

Also, I have 23 starts left, a lot more than I thought I had.

Whats next Smile ?

And thanks for your patience and everything Deamon..


NP

Can you specifie the circumstances under whitch it did work mroe ditailed ?


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



Joined: 30 Apr 2002
Posts: 2302
Location: Germany

PostPosted: Fri Nov 28, 2003 9:37 pm    Post subject: Reply with quote

U-421 wrote:
Sorry, but I just made a model (err rather a couple) of some dragon's teeth, or anti-tank concrete barricades that are located along the Siegfred line, do you think we could put these in somewhere?

Render of the Dragon's teeth with texture.


I first need to know why the plane texture show up this time.

But else concerns the dragonteeth well you can save one of them and put them one by one in to the scene or save the whole field and then put them as a field in to the game.What would you preffer ?

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



Joined: 14 Sep 2002
Posts: 139

PostPosted: Fri Nov 28, 2003 10:07 pm    Post subject: Reply with quote

Well, copied and pasted the last thing you gave me.

Here it is if you can't remember..


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

;------------ 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

;------------ 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

UpdateWorld
RenderWorld
Flip

Until KeyHit(1)
;===========================


This works, and I played with some of the code a lil bit but always changed it back. So I have exactly whats above.

I'd prefer to put them in as a field, as that's what it is. Just several boxes modified to make the shape and then duplicated and moved to create the model.

I've also made it so then it's uneven sides so I can add on.

For example, I hope this works.. It's currently like this

- - - -
- - - -

Now if I wanted to put it in and make it longer instead of modifying the model I could just add the model again, if you can do this. - is the original dragon tooth, = is the new dragon tooth composed of the second 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: Fri Nov 28, 2003 11:22 pm    Post subject: Reply with quote

U-421 wrote:
Well, copied and pasted the last thing you gave me.

Here it is if you can't remember..


I can remember but i showed you several ways and you didn't specified the one that worked.

You must know that the plane don't show up as soon as you go below it with the camera.It's what is called backface culling,the reverse site of the face is beig cutted out.I have suspected that the camera was mybe placed to low and the plane disapeared.Thats why i have increased the altitude of the camera in the last code.

PositionEntity View1,breadth,hight,deapth

But anyway lets move along.

Quote:

I'd prefer to put them in as a field, as that's what it is. Just several boxes modified to make the shape and then duplicated and moved to create the model.

I've also made it so then it's uneven sides so I can add on.

For example, I hope this works.. It's currently like this

- - - -
- - - -

Now if I wanted to put it in and make it longer instead of modifying the model I could just add the model again, if you can do this. - is the original dragon tooth, = is the new dragon tooth composed of the second model.

- - - - = = = =
- - - - = = = =



What is the width of one dteeth field ?

Lets load first just one field.Ok,here's the full new code:

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

;------------ 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

UpdateWorld
RenderWorld
Flip

Until KeyHit(1)
;===========================

Is everything fine ?
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 3 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