Importing OBJ Into TG2

Started by ares2101, January 12, 2012, 02:13:21 PM

Previous topic - Next topic

ares2101

I first noticed this awhile ago but it's come up a lot recently, so I'm wondering if there's a way around this.  When I use the OBJ Reader to import items from Xfrog, TG2 prompts for a compatibility thing and I say yes.  Here's my problem, the opacity image and alpha channels on leaves are not loaded by default and I have to go in and change that and the "Source in cm" box is checked, which makes the models very small and I have to undo that.

Is there a way to change the way TG2 handles the OBJ reader so this stuff is done by default, or if not, a way to export in Xfrog so it loads right in TG2?  It gets annoying having to do this manually, especially for multiple models at a time.

Matt

#1
When you say "Yes" to that query, a few of the settings are changed from their defaults. A few changes are made to the translucency settings on materials with certain key names, and "source in cm" is enabled (actually this setting doesn't work as described, it uses a scale factor of 0.1 which isn't a cm). We chose those settings so that they gave the results we wanted for most of the models in the XfrogPlants library when we converted them from OBJ to TGO, so that only minimal tweaking needed to be done on some models.

Those XfrogPlants OBJs had already gone through some other conversion software so they might be quite different from the models you are making now. If you are modeling your own plants, have you tried saying "No" to this query? You might have fewer tweaks to make afterwards. I'm not sure it will solve the opacity/alpha setup though. I think we have something that works for the OBJs in the XfrogPlants library but I know that it doesn't work with all possible ways of assigning alpha maps. Can you show us an example .MTL file that doesn't get assigned correct opacity maps in TG? The MTL files are saved alongside the OBJs that you save.

Matt
Just because milk is white doesn't mean that clouds are made of milk.

Dune

If you say 'no', the opacity won't be taken over either, but the object will be banked 90 degrees. What I usually do with new trees is import, measure its height and if necessary change accordingly in XFrog, then import the right size again, change internal settings to my needs, and save as tgo or obj or tgc for future use. Needs to be done only once per tree.

ratfugel

My problem is importing items like ships OBJ's into T2.  Done the cut and paste thing, but still doesn't show.  Are they there and if so, where are they? 

Dune

Maybe it's too small to see. Some objects use different sizes and it might turn out to be a 1mm ship. Look around the 0/0/0 area with a magnifying glass  ;) Or enlarge the object 10x or 100x or 1000x and see if it turns up.

Walli

yes, depending on the modeling application used and the export settings - and obj offers many - chances are high that the object is simply very small