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.

3 Dimensional Chat / Newbie to 3d - general info please

Author
Message
Killer Wolf
21
Years of Service
User Offline
Joined: 7th Sep 2004
Location:
Posted: 5th Oct 2004 19:17
Hi,

been talking about doing a board game on the 2D forum, but i'm looking at doing it now as a 3D type, in an isometric view rather than a top-down overhead thing. i thought i could do the moving-sprites-about thing ok, but i've got a couple questions about 3D objects, if one of you more experienced people could help me please :-
1) if i draw the board then position it at an angle by placing the camera correctly, when i move the pieces (think chess-type things) up and down the board, will they scale correctly?
2) the pieces are going to be thin vertical boxes textured w/ a bitmap showing the front and back of the piece (so it looks right when the camera position changes from end to end as each player takes their turn) on a transparent background : will that mean that the rear view might show from the front, depending on the camera angle, and if so is there any way to avoid this?
3) someone suggested i could use the "Pick Object" command to select a piece w/ the mouse - i've been through my DBPro booklet and i can't find this command listed - could someone gimme a brief run down of it, including the syntax it uses?

thanks in advance..
KW
//\oo/\\
The Big Babou
23
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 5th Oct 2004 20:00
1) If you mean that they scale correctly to get a 3 dimensional look, they do. Because it is in 3D.

2) Polygons, that face away from the camera aren't rendered. Although you can turn it on and off by using set object cull. Default is on. But why don't you model them? It would look much better, you could do better camera movement and modeling those wouldn't be too hard.

3)
Quote: "PICK OBJECT
This command will return the Object Number of the closest object at the specified screen coordinates. The objects that are tested against the 2D coordinate are only those within the Object Start and Object End range in order to speed up specific tests. If no object exists at the coordinate, a value of zero is returned. If an object number is returned, additional data will be generated and stored internally. This extra data can be retrieved using the GET PICK VECTOR and GET PICK DISTANCE commands.

SYNTAX
Return Integer=PICK OBJECT(Screen X, Screen Y, Object Start, Object End)
"


From the help files. Basicly it checks whether you clicked an Object, whose number is between Object Start and Object End.

... they call it a royale with cheese ...
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 6th Oct 2004 01:58
1) Just a little follow up. DBP only supports a perspective camera. So, there's no orthographic mode to totally eliminate distortion. But, there are ways to drastically reduce it. Pull the camera back and narrow the field of view (FOV) of the camera, this is the effect that is used into fake sniper scopes in many games. The zoomed in view is flatter than close up perspectives.

2) One of the advantages of a 3D scene and characters is that you can go from 3rd person, to overhead, to an iso perspective simply by moving the camera. You're also free to rotate the camera around the scene if you want to create an orbiting camera effect. Similarly, it is easy to zoom in and out. Check out the set camera to follow command, in conjunction with point camera, you can get a lot of mileage out of that combination.

3) The range parameters of the pick object command are very powerful if you plan in advance. You can tell the pick camera command to only select players, monsters, walkable terrain, items, etc. by carefully group your object IDs to match the function of an item.

psuedo code in your main loop...

a = pick object(mousex(),mousey(),monsterFirst, monsterLast)
if a > 0
` display the combat icon
` if the mouse button is pressed, attack with HtH or ranged
` weapons depending on distance
end if

a = pick object(mousex(),mousey(),itemFirst, itemLast)
if a > 0
` display the use object icon
` if the mouse button is pressed, pick up the object
` if the object is too far away, try to move to the object first
end if

Using the pick vector commands and offsetting from your camera position, you can even select points in world space (3D coordinates) so you can walk on .X terrain meshes.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
FROST Blade
21
Years of Service
User Offline
Joined: 2nd Oct 2004
Location:
Posted: 6th Oct 2004 12:56
sounds confusing to me
Killer Wolf
21
Years of Service
User Offline
Joined: 7th Sep 2004
Location:
Posted: 7th Oct 2004 21:16
Thanks for the info people

Why don't i model them - cos i suck at 3D modelly stuff. i can string a few pixels together in PShop and that's about it. since the game is a stylised war game type thing it would mean modelling people, and i just ain't got the time.

some cool ideas there, Zircher, thanks. since the board's going to be 24x24 squares it'll probbly have to be fairly large to get any decent amount of detail showing so moving the camera etc will probbly have to come into play somehow.

KW
//\oo/\\
Peter H
22
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 8th Oct 2004 00:16
@zircher- how would you go about being able to "click and drag" a box on the screen then check each object(well the ones you are worried about anyway) to see if it's "in the box"??

it seems to me like this would require vectors(which i understand thanks to philips handy dandy tut)

what i really don't want to do is cycle through each pixel

"We make the worst games in the universe."

Killer Wolf
21
Years of Service
User Offline
Joined: 7th Sep 2004
Location:
Posted: 9th Nov 2004 21:12
another quick question - sure i've seen this somewhere but i'll be buggered if i can find it...

objects - how many can you create in DBPro?

TIA
KW
//\oo/\\
Snaz
22
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Romania, Galatz
Posted: 9th Nov 2004 21:21
about 65000
Lascerus
22
Years of Service
User Offline
Joined: 14th Feb 2004
Location: spaced out
Posted: 10th Nov 2004 03:15
Quote: "would mean modelling people, and i just ain't got the time."

I'm sure i saw a war model pack, somewhere on this website...if you feel like it give it a shot....i'm sure there were free vehicles on the deled site... http://www.delgine.com
dark coder
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 10th Nov 2004 07:31
no its more than 3 million objects you can create, just why would you need so many


Killer Wolf
21
Years of Service
User Offline
Joined: 7th Sep 2004
Location:
Posted: 10th Nov 2004 20:35
3 million?! damn!

i only need about 200 so that's cool.

ta for the info.
KW
//\oo/\\

Login to post a reply

Server time is: 2026-07-10 14:31:05
Your offset time is: 2026-07-10 14:31:05