Re: Spotlight textures

New Message Reply Date view Thread view Subject view Author view

Dirk Luesebrink (crux++at++artcom.de)
Wed, 27 Aug 1997 05:10:14 -0400


try using CLAMP and put a one pixel wide neutral border in your texture.
for example white. than only this borders gets clamped over the rest of
the surface. remind when mipmaping the border must be wider maybe
because of automaitcally generated lower resolution versions of you
original texture. that would blur some photo pixels into the border.

dirk.

thats a workaround.

gthomas++at++icaen.uiowa.edu wrote:
>
> I'm trying to project a single image as a spotlight texture onto a surface,
> but can't seem to get the image from repeating or cropping. I've tried a
> variety of tricks, particularly focusing on:
>
> pfTexRepeat(myTexture, TX_WRAP, PFTEX_SELECT);
>
> followed by:
>
> pfLSourceAttr(myLightSource, PFLS_PROJ_TEX, myTexture);
>
> but can't get the projection to end at the boundary of the photo. Either it
> wraps or clamps, depending on what else I've been fooling with.
>
> Could it be my hardware? hinv gives:
>
> Video: MVP unit 0 version 1.2
> AV: AV1 Card version 1, O2Cam type 1 version 0 connected.
> FLASH PROM version 4.0
> On-board serial ports: 2
> On-board EPP/ECP parallel port
> 1 180 MHZ IP32 Processor
> FPU: MIPS R5000 Floating Point Coprocessor Revision: 1.0
> CPU: MIPS R5000 Processor Chip Revision: 2.1
> Data cache size: 32 Kbytes
> Instruction cache size: 32 Kbytes
> Secondary unified instruction/data cache size: 512 Kbytes on Processor 0
> Main memory size: 64 Mbytes
> Iris Audio Processor: version A3 revision 0
> Integral Ethernet: ec0, version 1
> Tape drive: unit 7 on SCSI controller 1: DAT
> Disk drive / removable media: unit 3 on SCSI controller 1
> CDROM: unit 4 on SCSI controller 0
> Disk drive: unit 1 on SCSI controller 0
> CRM graphics installed
> Integral SCSI controller 1: Version ADAPTEC 7880
> Integral SCSI controller 0: Version ADAPTEC 7880
> Vice: DX
>
> Thanks for the help.
>
> - Geb
>
> --
> Dr. Geb Thomas The GROK Lab
> Industrial Engineering (o) (319) 335-5936
> The University of Iowa (f) (319) 335-5424
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:47 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.