Interrogation Room: Released "as-is" for now

StratDragonStratDragon Posts: 3,167
edited July 2015 in Freebies

This as far as modeling/texturing and lighting is done. It's optmized for 3Delight and Reality but I had strange results in Iray which I'll be happy to figure out if anyone feels like putting a TitanBlack in my shopping cart.

Either way last time I made a prop from a series of OBJ's I had some problems. Does anyone have a suggestion as to what tools are in DS4.8 to allow me to export this without issue so others can use it? Is there a tutoral on it. Casual had a script but I don't seem to have it any longer and don't know if it works in 4.8

Here's the render in Lux out of DS, it's grainy because it was just in there for a few minutes.

 

[edit] This is the PRE-RELEASE RELEASE, you can download it, I have not worked the kinks with compatibity but the model is complete as you see in the promo

http://www.sharecg.com/v/81616/view/5/3D-Model/Interrogation-Room

 

InRm2.png
1362 x 1009 - 1M
Post edited by StratDragon on

Comments

  • patience55patience55 Posts: 7,006

    This as far as modeling/texturing and lighting is done. It's optmized for 3Delight and Reality but I had strange results in Iray which I'll be happy to figure out if anyone feels like putting a TitanBlack in my shopping cart.

    Either way last time I made a prop from a series of OBJ's I had some problems. Does anyone have a suggestion as to what tools are in DS4.8 to allow me to export this without issue so others can use it? Is there a tutoral on it. Casual had a script but I don't seem to have it any longer and don't know if it works in 4.8

    Here's the render in Lux out of DS, it's grainy because it was just in there for a few minutes.

    Haven't tried that script in 4.8 ... was finding PP12 was having some issue with some of the props it created. However in D/S4.x you can, for D/S users do the File > Save As > prop file ... then share the data and prop folders' subfolders with the content. To get the .obj files, you can export out the .obj file(s) ... use "COLLECT maps" if they are all shares or "no maps" if we're to use our own. These normally load in Poser and any other program I've tried just fine. [not that I own many but anyways ....]

     

  • mCasualmCasual Posts: 4,605
    edited July 2015

    for my props i use Daz Studio 3 and the "PP2 Exporter" by duke533 

    the extra precious link http://puzzlekiraly.hu/lom

    when used in DS4.8 it creates (very) unusable obj files

    ---

    dang it's not there anymore

    but here

    http://puzzlekiraly.hu/lom/PP2 exp 2b.dsa

    you have a non encrypted version, which i will try in DS4.8 right now !

    i load the desk prop which is a 3 parts prop ( mcjDesk3684 )

    i select the root node

    i run the code i copied from the net

    and drum rolls, i load the prop i made and ....

    FAIL

    so i go look in my geometries folder

    here's an excerpt from one of the obj files

    # Exported from DAZ Studio 4.8

    # mcjDesk36.cn3_691
    v 2.22552e+19 -1.43716e+17 0.0469787
    v 2.22472e+19 -1.43504e+17 0.0469799
    v 2.22241e+19 -1.43716e+17 0.0469803
    v 2.22241e+19 -1.43996e+17 0.0469787
    v 2.22552e+19 -1.42883e+17 0.0469803
    v 2.22658e+19 -1.42883e+17 0.0469787
    v -2.22495e+19 -1.42883e+17 0.0469803
    v -2.2237e+19 -1.43504e+17 0.0469799
    v -2.22007e+19 -1.43716e+17 0.0469803
    v -2.22007e+19 -1.42883e+17 0.0469809

    as you can see, the problem is that, the obj export part of this not working with DS4.8

    which explains why i use it or another version in DS3

    -----

    one could try to identify which obj file corresponds to which of the prop parts, and export the .obj files "manually" ( in Poser Units scale )

    but, this script also changes the material names before exporting them, so the prop file ( .pp2) material names

    would not match the material names in the "manually" exported obj files

    BUT, the prop would load

    -------

    since exporting props from DS4.8 would be nice , even if i can do it in DS3 

    lets see if i can fix the script !

    ... after a little snack

    interesting, contrary to my first intuition, the export process is not at fault

    i swapped the code for the code i use in mcjTeleBlender3 and ... same corrupt obj file

    but i see that just before the export, there's a call to a function named "centerNodes();"

    which is where the corruption must happen

    because the geometry in DS4.5+ is extremely different from the one in older Daz Studios

    ...

    the case continues (  )

     

    YES!!!

     

    # Exported from DAZ Studio 4.8
    
    # mcjDesk36.cn2_691
    v 0.282666 0.229426 0.146206
    v 0.282638 0.229381 0.14639
    v 0.282557 0.229426 0.146455
    v 0.282557 0.229485 0.146206
    v 0.282666 0.229251 0.146455
    v 0.282703 0.229251 0.146206
    v 0.126779 0.229251 0.146455
    v 0.126823 0.229381 0.14639
    v 0.12695 0.229426 0.146455

    and we're in luck because the faulty code doesnt involve access to the geometry!

    i disabled the recenter/unrecenter code and the props are not thrown at the edges of the universe anymore

    i just have to reformulate the code they use to re-center the nodes ( and figure why )

    and make it compatible with DS4.5+

     

     

    the bug ->>>>>>>>>>>>>>>>>>>>.  around line 741

    oNode.setWSScale( DzMatrix3() );

    which we will replace by 

    //changes by mCasualJacques July 20 2015 ** begin **
    // oNode.setWSScale( DzMatrix3() );
    oNode.getScaleControl().setValue(1);
    oNode.getXScaleControl().setValue(1);
    oNode.getYScaleControl().setValue(1);
    oNode.getZScaleControl().setValue(1);
    //changes by mCasualJacques July 20 2015 ** end ** 

     

    it worked :)

     

    i'll check if i can locate JWAS or Duke533 and post the fix on my site or on theirs

     

    ok the copyright notice says we can do what we want with the code

     

     

    but the final solution will be slightly different then what i stated and closer to the original in effect 

    ( for parented scaling issues )

     

     

    Post edited by mCasual on
  • mCasualmCasual Posts: 4,605

    ok final analysis

    we will replace

    oNode.setWSScale( DzMatrix3() );

    with

    oNode.setWSScale( DzMatrix3(1,0,0,0,1,0,0,0,1,0,0,0) );

     

  • mCasualmCasual Posts: 4,605
    edited July 2015

    and i'll fix the disappearing buttons issue 

    and there's an error in the props that make their default scale 0 instead of 1,

    so when you "zero" most of my props, they disappear because they get scaled to 0% !

     

    so around line 393

     

    /* mCasualJacques change - important that the default zero scale is 1 not 0 */
    
    //writeLine("initValue 0");
    
    writeLine(String("initValue %1").arg( nVal ));
    
    /* mCasualJacques change - important that the default zero scale is 1 not 0 */

     

     

    Post edited by mCasual on
  • StratDragonStratDragon Posts: 3,167

    hey cas, this is amazing but when I put those .files in my scripts they dont show when I browse to the folder through the app.

    I'm on a mac right now

    any thoughts?

     

     

     

    Screen Shot 2015-07-21 at 9.12.54 AM.png
    697 x 517 - 168K
    Screen Shot 2015-07-21 at 9.14.22 AM.png
    392 x 753 - 93K
  • mCasualmCasual Posts: 4,605

    i dont really know MACs but the icon for the script and the "kind" seem to show that what you placed in that folder is not the files from the zip file, but links or shortcuts to them

     

  • StratDragonStratDragon Posts: 3,167
    mCasual said:

    i dont really know MACs but the icon for the script and the "kind" seem to show that what you placed in that folder is not the files from the zip file, but links or shortcuts to them

     

    Son of a goat! It was right in front of me. No good comes from drinking decaf!

     

     

    Screen Shot 2015-07-21 at 12.55.31 PM.png
    366 x 353 - 59K
  • StratDragonStratDragon Posts: 3,167

    ok, now a new issue. It saves but it names everything "untitled"

     

    Screen Shot 2015-07-21 at 1.03.44 PM.png
    454 x 485 - 89K
  • mCasualmCasual Posts: 4,605

    in the PP2 exporter dialog you can change the base name for the prop and the base name for the objects, and their location

    by default the name of the files is the name of the root node of your prop ( or label but i think it's the name )

    if you want to change the name of the currently selected node to ThatsTheNameIWantthenameiwant

    you could use this script


    var nm = "ThatsTheNameIWantthenameiwant";

    var node = Scene.getPrimarySelection();
    
    if( node )
    
    {
    
    node.setName( nm );
    
    node.setLabel( nm );
    
    }
  • SteveM17SteveM17 Posts: 972

    I like it! Always on the look out for good interiors such as this. Cheers!

Sign In or Register to comment.