obj ?

Started by ozijon, February 18, 2007, 05:21:58 AM

Previous topic - Next topic


obj ?    clik on link

                      http://www.electroartshop.com/tg2.html              Thank you


Type the question here please instead of wrapping it up in some flash scroller. I didn't wait for it to finish.


basically he is having problums with some bmp textures on that house there, its imported from poser 5.


The world is round... so you have to use spherical projection.


Yes sorry about the web page just  a pic is worth a thousand words just trying to get the texturs to work im only getting 2 to show up im using a 3ds modle thinggy then exporting them to poser 5 and then turning them to obj but i am working on it i tryed another here    Thank you john


poser 5 as an obj converter. YMMV. :-)

Problem is probably to do with the number and type of materials:

1. Open the obj file in wordpad (or somesuch) and do a find for "usemtl".
   Note the unique names and how many there are in total.  (e.g usemtl metal )
   (These may not be unique in the file. You will need one entry in the default shader for every usemtl in the obj file).
   The number of unique names in the file is an indication of how many discreet materials there are.

2. So now open up the internal network of the object. (r-click on the node)

   To get a quick result - make a power fractal shader (turn off displacement internally) and connect its output to the multishader shader inputs.
   You will need one per usemtl entry. if you don't have enough then it will probably crash.

3. So now you would have a single power fractal and lines from its output to the first N shader inputs on the multishader
(where N is the number of usemtls in the obj file)

Now should render.

If you replace the Power shader with a Default shader and choose images where there are texturemaps, and set other material aspects then you can slowly refine your way to the look you want.

There is a limit - the multishader only takes 16 shader inputs. So you need to stack them if there are more. (link to input)
A better obj converter might make a file with the minimum number of usemtls. I.e. each one appears only once. This will help you to get easier results.

The image below shows the internal network of an object with two materials. But used twice each in the obj file.
One shader is connected to a fractal and the other is connected to a default shader (which internally refers to a texturemap). The second also has a fractal being aded on top of the texure map (in this case adding rust stains)

Oh yeah - once your happy - rclick on the object top level node and save as a tgo. (for next time)


Hi thank you for your notes i now have got my self a obj converter to and i'm working on what you have explaind here still a long way to go thow but at leats I now have a solid house you can view here http://www.electroartshop.com/tg2.html     so now i keep at it thanks again


Blender (free at www.blender.org) and DAZ Studio 3D (free also) both
converts/creates .objs that works well in TG2.

Some times you need to fix the shader but thats all.


oh yeas - Daz is a pretty good poser killer. one to keep an eye on..
Price is just right at this stage :-)

Also they have lots of free content and all in obj :-)