Forum Moderators: Staff
Poser Technical F.A.Q (Last Updated: 2024 Nov 13 12:50 am)
Welcome to the Poser Technical Forum.
Where computer nerds can Pull out their slide rules and not get laughed at. Pocket protectors are not required. ;-)
This is the place you come to ask questions and share new ideas about using the internal file structure of Poser to push the program past it's normal limits.
New users are encouraged to read the FAQ sections here and on the Poser forum before asking questions.
I replaced spotLite.obj with box.obj, suitably renamed - there was an rsr by the way, and a new one was created - the result is shown in the picture.
Unfortunately, the light's characteristics stayed the same. Only the preview shape was altered. As to why changing the reference line doesn't work: you did change both instances, right? It's now after midnight here, so I'll leave that question for someone else to answer.
I repeated your experiment and got the same result - the "substituted" PZ3 still had spotLite.obj visible in it, even though I'd replaced it with box.obj. On re-saving this file, Poser had put spotLite.obj back in. It must be hard coded in; whenever a spotlight is used, it calls that mesh. The reference in the file is essentially useless.
les- "a normal pose file (pz2) can only load channel and mat data, right? I'm not sure. But an lt2 can load a pose and an OBJECT, but only if the object is called "spotLite.obj" ?" pose file can set any attributes of one or more figures or objects, that must already exist in the scene. Apparently, any of the other library files can be edited to load one or more figures or other objects, set to whatever pose each entity had when it was saved to the library. that is, lights could be put in a cr2 or vice versa. My point is, any library file other than pose can "pose" whatever object(s) it is loading... - - - - - - - - - - Re the geometry - I think I've seen .lt2 files that omit the objFileGeom line from a spotlight. Sounds like it is ignored when read in.
"My point is, any library file other than pose can "pose" whatever object(s) it is loading..." Question is can it pose somthing that is already loaded? The golden goose is a file format/syntax that can pose a preloaded object/figure and add an object at the same time. A pose and prop file rolled into one.
Dodger you say, in post #12: "anything can be added from any 2 library file with an add command in the doc{block." Have you tried this with a pz2? or is it just theory? I have tried loading a prop from a pz2 in a number of ways and it does not work for me. I am aware that a figure must be loaded and selected for any pz2 to work, and have done this. I have tried renaming a pp2 to a pz2, and that does not work. As a pp2 contains a "doc" element this should work according to your theory, yes? If you have succeeded in loading a prop from a pz2, I would be very interested in the syntax, perhaps you could post an example file, as I have been trying to achieve this for a long time.
Thought I'd make one more comment on the "what is the obj line for": There are MANY places in the Poser file formats, where what is spit out is clearly a straight dump of the data format that the programmer (Larry) uses in memory. This is a dubious way to invent a file format, leading to redundant information, or ignored information. But, hey, it was a quick and dirty solution for Poser 1. "obj reference in spotlight" is simply another case of this Poser coding style. Hypothesis: Larry had a data format that has an obj field, because most entities need an obj. Silly for spotlight, which is hard-wired, but it is often easier for a programmer to use a common data structure for all objects. Dumping that raw data format out as the file format isn't exactly a "professional" solution, by today's standards. But it can be made to work. And it wasn't written by a cushy programming team, today. It was hacked out in pre-history by a lone programmer. And Thank God he did - as demonstrated by the fact that we're still using Poser many years later, despite all its deep flaws. Nothing better has come along yet (DAZ Studio still embryonic as I write this).
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Does anyone know what the objFile in a spotlight is for?
i.e.
Beforer any random speculation occurs, let me explain what I've already done investigating this:
I've created two new objects and tried them. I tried a bullseye-lantern shape and a wide open o-ring. I was thinking that it might be possible to make a geometry that would allow me to create an omnidirectional light in Poser, because that would just be really cool.
If there is no difference in effect, why, in fact, does it point to an objFile at all? There doesn't seem to be any reason I can see, and it doesn't use the objFile to create the lights (I haven't tried replacing the objFile directly to see if there is a change that way, but that would be an unwieldy way to work as you would have to replace the objFile each time you wanted to make a new light, and since RSRs lock, you could not use more than one in a scene (or even Poser session).
So, does anyone know more about this mystery than I?