Jump to content

Same prim, different faces, SLPPF


Tattooshop
 Share

You are about to reply to a thread that has been inactive for 1078 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

llSetLinkPrimitiveParamsFast(link_number,
[	PRIM_TEXTURE, face1, texture, <1,1,0>, <0,0,0>, 0.0,
  	PRIM_TEXTURE, face2, texture, <1,1,0>, <0,0,0>, 0.0,
	PRIM_TEXTURE, face3, texture, <1,1,0>, <0,0,0>, 0.0
	//no final ',' << I always forget this so I write this comment at the end of almost every list.
]);

for example? SLPPF is not exactly a one-liner.

The special face number ALL_SIDES does what you would expect, but if you want to set the texture of (for example) faces 1 and 3 but not 2 you need to use the tedious version above.

Edited by Quistessa
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

1 hour ago, Quistessa said:

llSetLinkPrimitiveParamsFast(link_number,
[	PRIM_TEXTURE, face1, texture, <1,1,0>, <0,0,0>, 0.0,
  	PRIM_TEXTURE, face2, texture, <1,1,0>, <0,0,0>, 0.0,
	PRIM_TEXTURE, face3, texture, <1,1,0>, <0,0,0>, 0.0
	//no final ',' << I always forget this so I write this comment at the end of almost every list.
]);

for example? SLPPF is not exactly a one-liner.

The special face number ALL_SIDES does what you would expect, but if you want to set the texture of (for example) faces 1 and 3 but not 2 you need to use the tedious version above.

Thank you so much! This is what I needed! ;)

  • Like 1
Link to comment
Share on other sites

10 hours ago, Quistessa said:

think I learned just today or yesterday about the PRIM_LINK_TARGET variable.

I've also found myself stretching my areas of knowledge, I'd never done raycasting before this week. It's interesting that it isn't just the OP who gains through the forum advice process, those responders who actually get into some research also benefit.

For those who know Anathem, there is an analogous situation described in the early part of the tale, when Erasmus realises that in mentoring Barb he himself is filling in large gaps in his own knowledge where he had skipped topics because they were not in his immediate requirements list or he was in a rush to get something done.

Edited by Profaitchikenz Haiku
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1078 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...