Game Development Community

2D Sprites in 3D surroundings?

by Byron Johnson · in Torque Game Engine · 04/22/2008 (9:01 am) · 8 replies

I had taken a break, but decided to get back into torque.

Anyway, I was wanting to have 2D sprites in 3D Scenery, as seen in games like The Legend of Heroes for PSP, and Ys 3 and 6, as well as Ragnarok Online. So far I'm at a bit of a loss as how to do this. I'd like the camera to function like Ragnarok's, and I think I would do that by simply changing the X Rotation for the camera as needed. I think I'd need the player to move relative to the camera orientation(e.g. as the camera moves, even if it now faces south instead of north, pressing UP arrow, even though you appear to be moving north, you are actually moving south, if that made any sense.)

Really the first thing I need to do is just get the Sprites to display, probably using Billboarding, but I am unknowing of what exactly I need to do to do that. Animation would come too, but later.

I intend to use RO's camera control style, which locks the Y axis, allows rotation on the X axis, and zooming in and out to an extent on the Z axis.



That'd be the beginning, after which I would need to stumble my way through.

As a side thought, isn't it possible to integrate things from TGB into TGE? if so, I might drop the $250 for TGB pro and save myself some initial trouble.

#1
04/22/2008 (10:15 am)
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5474
This resource works very well for me for moving independant of the camera view. basically, no matter how the camera is rotated, pushing up on the controller will have the player move up on the screen and so forth. I'd recommend using the other camera functions this guy has written over that silly advanced camera resource.


I don't know how to do sprites with TGE though.
#2
04/23/2008 (1:54 pm)
One down! That one is really helpful. I'll be getting alot of use out of it.

Now for the Sprites. might I use the GUI or something else?
#3
04/29/2008 (11:19 am)
Hmmm. still looking for help, but I think this should be moved to the Engine Area. I had anticipated this being the correct forum, but I might be wrong.
#4
04/29/2008 (12:36 pm)
I think many dts exporters support an automatic billboard lod.
#6
04/29/2008 (2:59 pm)
You'd have to do some fancy skin swapping or IFL animations to get anything decent to mimic sprites.
#7
04/29/2008 (4:29 pm)
One important thing I'd need for the IFL is to be able to set the frame. if I can do that, I might manage.
#8
07/18/2008 (10:00 am)
Maybe you can buy the TGB Pro and use the sprites source code...