Path: chuka.playstation.co.uk!news From: gerboa@hotmail.com (Robert Swan) Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: 3d sprites solved! Date: Tue, 01 Dec 1998 23:21:14 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 16 Message-ID: <36647950.24798766@www.netyaroze-europe.com> References: <36619C02.1961@mdx.ac.uk> NNTP-Posting-Host: p32s14a01.client.global.net.uk X-Newsreader: Forte Free Agent 1.11/32.235 On Sun, 29 Nov 1998 19:09:54 +0000, "Harvey.C" wrote: > // Scales the tree - 16777216=4096<<12 is a constant (works for me) > sprite->scalex=sprite->scaley=16777216/transformedPosition.vz; Im guessing that the reason the value 16777216 works is because a) this value will depend on the size of the sprite to begin with, but more importantly b) is wher you 'scale' the sprite in order to give a comparable scale to the 3D objects in the scene. There is no point having your sprite to be the equivalent of 3 world units in size when your road is something like 2000, or vica versa. Guessing that 16777216 makes it just the right magnitude for your scene. Only reason I point this out is in case people start asking why their sprites dont come out the right size :) Rob