No subject
Tue Jun 17 12:42:36 EDT 2003
one can map to an object. Does that include backdrops as well? For
instance, if I wanted a background that's 1024x768, would that work
without causing pixelation? I understand that the images need to be a
power of 2 (2,4,8,16,32,64,128,256,512,1024). Since 768 is not part of
that list, I'm assuming I'd have to do something special to get a
seemless backdrop at 1024x768.
For instance, I've presently got a 1024x768 bitmap image as a cast
member, and I've got these calls to create the backdrop:
t1 = member("panels").newtexture("Aqua", #fromCastMember,
member("Aqua"))
sprite(1).camera.addBackdrop(t1, point(0,0),0)
Right now, it's drawing, but it's quite blocky.
If the limitation is 512x512, then it's sounding like I may need to
break this backdrop down into 4 quadrants. Am I thinking along the
right lines?
------=_NextPart_000_0011_01C2A6EA.15E76700
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D200140522-18122002><FONT face=3DArial color=3D#0000ff =
size=3D2>The=20
biggest size for a texture is hardware depending. You can get the =
maxTexture=20
size by quering\</FONT></SPAN></DIV>
<DIV><SPAN class=3D200140522-18122002><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D200140522-18122002><FONT face=3DArial color=3D#0000ff =
size=3D2>put=20
getRendererServices().getHardwareInfo</FONT></SPAN></DIV>
<DIV><SPAN class=3D200140522-18122002><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D200140522-18122002><FONT face=3DArial color=3D#0000ff =
size=3D2>Look=20
for maxTextureSize.</FONT></SPAN></DIV>
<DIV><SPAN class=3D200140522-18122002><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D200140522-18122002><FONT face=3DArial color=3D#0000ff =
size=3D2>C.</FONT></SPAN></DIV>
<DIV><SPAN class=3D200140522-18122002></SPAN> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
dir3d-l-admin at nuttybar.drama.uga.edu=20
[mailto:dir3d-l-admin at nuttybar.drama.uga.edu] <B>On Behalf Of=20
</B>RGouldDL at aol.com<BR><B>Sent:</B> Wednesday, December 18, 2002 =
10:59=20
PM<BR><B>To:</B> dir3d-l at nuttybar.drama.uga.edu<BR><B>Subject:</B> =
[Dir3d-l]=20
The rules about background sizing<BR><BR></FONT></DIV><FONT=20
face=3Darial,helvetica><FONT face=3DGeneva color=3D#000000 size=3D2=20
FAMILY=3D"SANSSERIF">I'm curious to know how large a backdrop image I =
can make=20
when using the Director 3D backdrop calls, while keeping the texture=20
non-scaled/pixelated.<BR><BR>From what I've read, it appears that =
512x512 is=20
the maximum size texture one can map to an object. Does that =
include=20
backdrops as well? For instance, if I wanted a background that's =
1024x768, would that work without causing pixelation? I =
understand that=20
the images need to be a power of 2 =
(2,4,8,16,32,64,128,256,512,1024). =20
Since 768 is not part of that list, I'm assuming I'd have to do =
something=20
special to get a seemless backdrop at 1024x768.<BR><BR>For instance, =
I've=20
presently got a 1024x768 bitmap image as a cast member, and I've got =
these=20
calls to create the backdrop:<BR><BR>t1 =3D =
member("panels").newtexture("Aqua",=20
#fromCastMember, member("Aqua"))<BR>sprite(1).camera.addBackdrop(t1,=20
point(0,0),0)<BR><BR>Right now, it's drawing, but it's quite =
blocky.<BR><BR>If=20
the limitation is 512x512, then it's sounding like I may need to break =
this=20
backdrop down into 4 quadrants. Am I thinking along the right=20
lines?</FONT><FONT face=3DGeneva color=3D#000000 size=3D2 =
FAMILY=3D"SANSSERIF"></FONT>=20
</FONT></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0011_01C2A6EA.15E76700--
More information about the Dir3d-l
mailing list