Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post How the hell is that an...
Yesterday 06:19 PM
by Fewmitz
Last post by Kyo
Today 04:13 AM
30 Replies, 191 Views
Go to first new post I'm gonna go fucking...
Today 12:26 AM
Last post by Bex
Today 04:12 AM
4 Replies, 24 Views
Go to first new post YUM.
Yesterday 04:45 PM
Last post by Kyo
Today 04:09 AM
16 Replies, 83 Views
Go to first new post Formal Dresses
Today 04:08 AM
by Bex
Last post by Bex
Today 04:08 AM
0 Replies, 5 Views
Go to first new post Should guys shave their...
04-05-2007 05:22 AM
by Noodle
Last post by nightkitty
Today 04:03 AM
399 Replies, 5,429 Views
Reply
 
LinkBack Thread Tools Display Modes

 [VB6] 3D Game Engine
Old 06-17-2007, 10:54 AM   #1 (permalink)
Underground

Bobo is offline
 
Join Date: Jun 2007
Posts: 119
iTrader: 0 / 0%
Bobo Is gaining popularity
Rep Power: 5
[VB6] 3D Game Engine

You could consider this a tutorial or sorts. There is no easy way to design a 3D game. However, the people from 3DState have made the gaming world alot more easy for us. You can download a free trial of the 3D game engine to use in VB6 at www.3dstate.com

3DState has already programmed most of the stuff for you. Now you can use their commands to make the world and effects you want, such as...

Private Sub LoadPlayer()
Dim lngSkin As Long
lngPlayer = STATE_object_create_from_file(App.Path & "\..\..\Worlds\Models\player.md2")
If lngPlayer = 0 Then ExitOnError "Error loading player"

lngSkin = STATE_bitmap_load(App.Path & "\..\..\Worlds\Models\skin.bmp", -1)
If lngSkin = 0 Then ExitOnError "Error loading player skin"
STATE_object_set_bitmap lngPlayer, lngSkin

'Get player dimensions...
Dim dblBoundingBox(6) As Double
STATE_object_get_bounding_box lngPlayer, dblBoundingBox(0)
dblPlayerDepth = dblBoundingBox(3) - dblBoundingBox(0)
dblPlayerWidth = dblBoundingBox(4) - dblBoundingBox(1)
dblPlayerHeight = dblBoundingBox(5) - dblBoundingBox(2)

'Move player model to a starting point in the world
STATE_object_move lngPlayer, OBJECT_SPACE, -200, -100, 10000

'Set the starting direction. Default would be 0 degrees in the world.
STATE_object_rotate_z lngPlayer, 130, WORLD_SPACE
End Sub

That is one of the subs from the sample programs that come with the 3D state package. Hope this would help some other people out, it had done wonders for my life in 3D Game Design.
  Reply With Quote

 
Old 06-18-2007, 10:35 AM   #2 (permalink)
gôt hacks?

{Nasadaws} is offline
 
{Nasadaws}'s Avatar
 
Join Date: Mar 2007
Location: winnipeg
Age: 13
Posts: 1,375
iTrader: 0 / 0%
{Nasadaws} Is gaining popularity
Rep Power: 6
Good tuts i will use this later.
__________________
Need account leveling?
Go here http://www.gaminggutter.com/ariels-r...ce-t25773.html
Very trust worthy!





Thanks to Sejiru for the great sig!



  Reply With Quote

 
Old 07-16-2007, 08:51 PM   #3 (permalink)
Underground

Ricardandroy is offline
 
Ricardandroy's Avatar
 
Join Date: Jun 2007
Posts: 98
iTrader: 0 / 0%
Ricardandroy Is gaining popularity
Rep Power: 4
tha's great, i don't know 3D game engine can be made by vb, cool, how about the speed
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 04:49 AM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.15151906 seconds (100.00% PHP - 0% MySQL) with 19 queries