Path: chuka.playstation.co.uk!chuka.playstation.co.uk!chuka.playstation.co.uk!not-for-mail From: Lewis_Evans@Playstation.sony.com Newsgroups: scee.yaroze.programming.2d_graphics Subject: 2D sprites in 3D scenes? Date: 9 Mar 1998 12:21:37 -0000 Organization: Sony Computer Entertainment Europe - 119.SS5 Lines: 38 Sender: news@chuka.playstation.co.uk Message-ID: <6e0msh$j4a1@emeka.playstation.co.uk> Reply-To: Lewis_Evans@Playstation.sony.com NNTP-Posting-Host: emeka.playstation.co.uk From: Lewis_Evans@Playstation.sony.com To: news@playstation.co.uk It's definitely possible to combine 2d and 3d in this way. Try making the display of the 2 3d models toggle-able at runtime by controller buttons, just using a DrawModel1Flag to control whether to use GsSortObject4. If the sprite appears when both are not drawn and doesn't when they are, this will help to narrow it down, eg the sprite might be being unexpectedly hidden by something. Also, if the ordering table is short, the model polygons may appear at position 0 in the OT. To scale a model, just use ScaleMatrix on the matrix of the coordinate system which GsDOBJ2->coord points to. Lewis Hi all. Have come up against a prob whilst attempting to put a 2D image into a 3D scene. Basically, I want a shadow underneath a flying craft, and I figured it would be more effiecient to use a sprite that followed the craft (3D model) on the ground (also a 3D model). I can display, scale and move a sprite on its own, but when I put the code into the 3D program, the sprite is not displayed, although the 3D models appear and move about as normal. I have tried sending the sprite to the ordering table first, last and in between the two models, but to no avail. The sprites priority is set to 0, which I thought would make it on the top layer. All the loading of the image and the sprite attribute set up functions seem to be working fine, its just that nothing appears on the screen. Does anyone know if it is possible to combine 2D and 3D in this way? Or failing this, if I have to resort to a 3D shadow, if its possible to scale a model (not very relevent to 2D, I know). Cheers, Anna.