Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 12 11:30 pm)
I'm not exactly sure what you are asking here but here's what I have: - A .obj file in Geometries. - A .pp2 file in the Props library. - A .pz2 file in the Pose library (which contains ONLY material code copied from the Props file, but with a different .jpg for the texture and transparency). The .pp2 file loads just fine with all materials set as specified in the coding. However, when I double-click the pose file, Poser just rudely beeps at me and does nothing.
Curious... parented, it now it no longer beeps at me, yet it still refuses to change color. For those who are gluttons for punishment, here's the actual code as it stands right not: ------------------------------------- Prop File: ------------------------------------- { version { number 4.2 } prop f1side1UVM { storageOffset 0 0.3487 0 objFileGeom 0 0 "C:Program FilesMetaCreationsPoser 4RuntimeGeometriesFeathersf1side1UVM.obj" } prop f1side1UVM { name f1side1UVM on bend 1 dynamicsLock 1 hidden 0 addToMenu 1 castsShadow 1 includeInDepthCue 1 parent UNIVERSE channels { xOffsetA OriginX { name GetStringRes(1028,44) initValue 0 hidden 1 forceLimits 0 min -100000 max 100000 trackingScale 0.004 keys { static 1 k 0 0 } interpStyleLocked 0 staticValue 0 } yOffsetA OriginY { name GetStringRes(1028,45) initValue 0 hidden 1 forceLimits 0 min -100000 max 100000 trackingScale 0.004 keys { static 1 k 0 0 } interpStyleLocked 0 staticValue 0 } zOffsetA OriginZ { name GetStringRes(1028,46) initValue 0 hidden 1 forceLimits 0 min -100000 max 100000 trackingScale 0.004 keys { static 1 k 0 0 } interpStyleLocked 0 staticValue 0 } rotateY yRotate { name yrot initValue 0 hidden 0 forceLimits 0 min -100000 max 100000 trackingScale 1 keys { static 0 k 0 0 } interpStyleLocked 0 } rotateX xRotate { name xrot initValue 0 hidden 0 forceLimits 0 min -100000 max 100000 trackingScale 1 keys { static 0 k 0 0 } interpStyleLocked 0 } rotateZ zRotate { name zrot initValue 0 hidden 0 forceLimits 0 min -100000 max 100000 trackingScale 1 keys { static 0 k 0 0 } interpStyleLocked 0 } scale Scale { name GetStringRes(1028,5) initValue 1 hidden 0 forceLimits 0 min 0.001 max 100000 trackingScale 0.004 keys { static 0 k 0 1 } interpStyleLocked 0 } scaleX xScale { name GetStringRes(1028,6) initValue 1 hidden 0 forceLimits 0 min 0.001 max 100000 trackingScale 0.004 keys { static 0 k 0 1 } interpStyleLocked 0 } scaleY yScale { name GetStringRes(1028,7) initValue 1 hidden 0 forceLimits 0 min 0.001 max 100000 trackingScale 0.004 keys { static 0 k 0 1 } interpStyleLocked 0 } scaleZ zScale { name GetStringRes(1028,8) initValue 1 hidden 0 forceLimits 0 min 0.001 max 100000 trackingScale 0.004 keys { static 0 k 0 1 } interpStyleLocked 0 } translateX xTran { name GetStringRes(1028,12) initValue 0 hidden 0 forceLimits 0 min -100000 max 100000 trackingScale 0.001 keys { static 0 k 0 0 } interpStyleLocked 0 } translateY yTran { name GetStringRes(1028,13) initValue 0 hidden 0 forceLimits 0 min -100000 max 100000 trackingScale 0.001 keys { static 0 k 0 0.36 } interpStyleLocked 0 } translateZ zTran { name GetStringRes(1028,14) initValue 0 hidden 0 forceLimits 0 min -100000 max 100000 trackingScale 0.001 keys { static 0 k 0 0 } interpStyleLocked 0 } xOffsetB xOffB { name xOffB initValue 0 hidden 1 forceLimits 0 min -100000 max 100000 trackingScale 0.004 keys { static 1 k 0 0 } interpStyleLocked 0 staticValue 0 } yOffsetB yOffB { name yOffB initValue 0 hidden 1 forceLimits 0 min -100000 max 100000 trackingScale 0.004 keys { static 1 k 0 0 } interpStyleLocked 0 staticValue 0 } zOffsetB zOffB { name zOffB initValue 0 hidden 1 forceLimits 0 min -100000 max 100000 trackingScale 0.004 keys { static 1 k 0 0 } interpStyleLocked 0 staticValue 0 } } endPoint 0 0.0225 0 origin 0 0 0 orientation 0 0 0 displayOrigin 0 displayMode USEPARENT customMaterial 1 material FeatherMAT { KdColor 1 1 1 1 KaColor 0 0 0 1 KsColor 0 0 0 1 TextureColor 0.8 0.8 0.8 1 NsExponent 10 tMin 1 tMax 1 tExpo 0 bumpStrength 1 ksIgnoreTexture 0 reflectThruLights 0 reflectThruKd 0 textureMap "D:a My LightWave StuffFeathersFlightFlightWhite1.jpg" 0 0 bumpMap NO_MAP reflectionMap NO_MAP transparencyMap "D:a My LightWave StuffFeathersFlightFlightWhite1Trans.jpg" 0 0 ReflectionColor 1 1 1 1 reflectionStrength 0 } material Preview { KdColor 0.387829 0.327433 0.817896 1 KaColor 0 0 0 1 KsColor 0.025428 0.0464064 0.0391675 1 TextureColor 1 1 1 1 NsExponent 30 tMin 0 tMax 0 tExpo 0.6 bumpStrength 1 ksIgnoreTexture 0 reflectThruLights 1 reflectThruKd 0 textureMap NO_MAP bumpMap NO_MAP reflectionMap NO_MAP transparencyMap NO_MAP ReflectionColor 1 1 1 1 reflectionStrength 1 } locked 0 } doc { addActor f1side1UVM } } ------------------------------------- Pose File: ------------------------------------- { version { number 4.2 } prop f1side1UVM:1 { material FeatherMAT { KdColor 1 1 1 1 KaColor 0 0 0 1 KsColor 0 0 0 1 TextureColor 0.8 0.8 0.8 1 NsExponent 10 tMin 1 tMax 1 tExpo 0 bumpStrength 1 ksIgnoreTexture 0 reflectThruLights 0 reflectThruKd 0 textureMap "D:a My LightWave StuffFeathersFlightFlightGreen1.jpg" 0 0 bumpMap NO_MAP reflectionMap NO_MAP transparencyMap "D:a My LightWave StuffFeathersFlightFlightGreen1Trans.jpg" 0 0 ReflectionColor 1 1 1 1 reflectionStrength 0 } locked 0 } doc { addActor f1side1UVM:1 } } -------------------------------------
My guess: Pose files seem to be aimed at CR2's not PP2's. Your MAT looks like it has wrong info at the beginning. Parent the prop to a figure (a small figure might be quicker) and save the CR2. Look at the header into the section where the materials are defined. For a figure MAT it is: figure { material ##### It may be "prop" but it should be generic, the MAT must first tell which section of the CR2 it is addressing.
I did as you said, Jaager, and here's what the parented, saved figure looks like: --------------------- { version { number 4.2 } figureResFile :Runtime:Geometries:REIN:REINZ.OBJ <--- snip ---> actor BODY:1 <--- snip ---> actor Top:1 <--- snip ---> prop f1side1UVM_1:1 { name f1side1UVM_1 on bend 1 dynamicsLock 1 hidden 0 addToMenu 1 castsShadow 1 includeInDepthCue 1 parent Top:1 channels { xOffsetA OriginX <--- snip ---> endPoint 0 0.0225 0 origin 0 0 0 orientation 0 0 0 displayOrigin 0 displayMode USEPARENT customMaterial 1 material FeatherMAT { KdColor 1 1 1 1 KaColor 0 0 0 1 KsColor 0 0 0 1 TextureColor 0.8 0.8 0.8 1 NsExponent 10 tMin 1 tMax 1 tExpo 0 bumpStrength 1 ksIgnoreTexture 0 reflectThruLights 0 reflectThruKd 0 textureMap "D:a My LightWave StuffFeathersFlightFlightWhite1.jpg" 0 0 bumpMap NO_MAP reflectionMap NO_MAP transparencyMap "D:a My LightWave StuffFeathersFlightFlightWhite1Trans.jpg" 0 0 ReflectionColor 1 1 1 1 reflectionStrength 0 } material Preview { KdColor 0.387829 0.327433 0.817896 1 KaColor 0 0 0 1 KsColor 0.025428 0.0464064 0.0391675 1 TextureColor 1 1 1 1 NsExponent 30 tMin 0 tMax 0 tExpo 0.6 bumpStrength 1 ksIgnoreTexture 0 reflectThruLights 1 reflectThruKd 0 textureMap NO_MAP bumpMap NO_MAP reflectionMap NO_MAP transparencyMap NO_MAP ReflectionColor 1 1 1 1 reflectionStrength 1 } locked 0 } figure { name Figure 2 root BODY:1 addChild Top:1 BODY:1 addChild Rhand:1 Top:1 <--- snip ---> <--- end of file ---> Again, I have the Curt hairstyle from DAZ which is a prop and it has many MAT's in the pose library that work just fine. I have tried using that as a model for what I am doing, but without success.
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.
I'm having a problem with assigning materials in Poser to an object I created in Lightwave. Now this object can't get any simpler! It's just a 2 dimensional rectangular plane! I used UVMapper to create the template. I also made sure to save the new obj from Mapper. I imported the new obj into Poser, set the materials (a texture and transparency) and saved it as a prop. So far, so good. I then edited the pp2 file so that it gets the obj file from Geometries rather then from within the pp2 file. Again, so far, so good. However, I want to use pose files (pz2) to change the materials. I copied the prop file and stripped all code except the relevant materials code. This is where my problems began. It just won't work. I have tried ump-teen ga-jillion variations of this and can't get it to function. Poser just beeps at me. I have compared the code line by line (pp2 and pz2) with props that do the same thing and are working but can't find where my code is going astray. I've done this in the past but it was for an already existing model, not one that I created myself. I was wondering if perhaps this might have anything to do with the fact that my object does not have any VNormals. I noticed that the functioning onjects did have these. LW is still new to me and I'm not sure how to go about assigning VNormals to my object, if indeed this is my problem in the first place. I'm at my wit's end here - help!