Overgrowth 3D Reference Guide (Alpha)

DillonBarba
Posts: 24
Joined: Fri Jun 03, 2011 4:19 pm

Re: Overgrowth 3D Reference Guide (Alpha)

Post by DillonBarba » Sat Jun 11, 2011 6:33 pm

i dont know what i did wrong.

Image

Code: Select all

  <?xml version="1.0" ?> 
- <object>
  <Model>Data/Custom/funwith/overgrowthlogo.obj</Model> 
  <ColorMap>Data/Custom/Markuss/Examples/Textures/SimpleObject_Color.tga</ColorMap> 
  <NormalMap>Data/Custom/Markuss/Examples/Textures/Blank_Norm.tga</NormalMap> 
  <ShaderName>cubemap</ShaderName> 
  <MaterialPath>Data/Materials/default.xml</MaterialPath> 
  </object>
I've double checked the locations and theyre all fine.

User avatar
last
Posts: 2154
Joined: Fri Jan 07, 2011 7:02 am
Location: Estonia

Re: Overgrowth 3D Reference Guide (Alpha)

Post by last » Sun Jun 12, 2011 12:34 pm

i think u need just to delete that "-" before <object> and its god to go.

your line - <object>
should be <object>

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: Overgrowth 3D Reference Guide (Alpha)

Post by Endoperez » Sun Aug 07, 2011 1:46 pm

I had trouble getting my objects shading properly, and I finally found why the normal maps weren't working. The main problem was that the normal maps were baked with different rotation than the mesh was exported at. Since Object-space normals are aligned to the axes, rotating the object 90 degrees screws them up.

Blender's Object-space normals also seem to be different from Overgrowth's (or I'm doing something wrong), but that's easy to fix by inverting the Green channel.

KiiNGz
Posts: 19
Joined: Wed Jan 26, 2011 7:31 pm

Re: Overgrowth 3D Reference Guide (Alpha)

Post by KiiNGz » Thu Oct 20, 2011 8:02 pm

I keep getting a error that says "Aborting load: generic type not recognized" what have I done wrong please help?

EDIT: I know what cause the error :D

Code: Select all

<?xml version="1.0" ?>
<Object>
        <Model>Data/Custom/kiingz/object/object.obj</Model>
        <ColorMap>Data/Custom/kiingz/object/object_texture.png</ColorMap>
        <NormalMap>Data/Custom/kiingz/object/object_normalmap.png</NormalMap>
         ADD CODE FOR SHADER PATH HERE
        <ShaderName>cubemap</ShaderName>
</Object>
You need to put the Shader path "<ShaderPath>Data/GLSL/cubemap</ShaderPath>" to tell this piece of code ---> "<ShaderName>cubemap</ShaderName>" where the cubemap can be found.So just add this

Code: Select all

<ShaderPath>Data/GLSL/cubemap</ShaderPath>
in-between <Normalmap> and <Shadername> so it should look like this

Code: Select all

<NormalMap>Data/Custom/kiingz/object/object_normalmap.png</NormalMap>
<ShaderPath>Data/GLSL/cubemap</ShaderPath>
<ShaderName>cubemap</ShaderName>
But now I have a new problem... when spawn the model it freezes for a 1 second and quits... im guessing it is something to do with the model but hmm..
Last edited by KiiNGz on Sat Oct 22, 2011 2:53 am, edited 5 times in total.

User avatar
last
Posts: 2154
Joined: Fri Jan 07, 2011 7:02 am
Location: Estonia

Re: Overgrowth 3D Reference Guide (Alpha)

Post by last » Fri Oct 21, 2011 4:24 am

I use block.xml for my example what you did wrong
Here is original xml file

Code: Select all

<?xml version="1.0" ?>
<Object>
	<Model></Model>
	<ColorMap></ColorMap>
	<NormalMap></NormalMap>
	<ShaderPath></ShaderPath>
	<ShaderName></ShaderName>
</Object>
and here is your version of xml file
Notice the lover and upper cases (there is big differences if you are typing colourmap or ColorMap)
Also there is better vesion of object xml file look for arena objects or hex create objects

Code: Select all

<?xml version="1.0" ?>
<object>
	<model></model>
	<colourmap></colourmap>
	<normalmap></normalmap>
	<shadername></shadername>
	<materialpath></materialpath>
</object>
OK i add that newer version xml file format also here

Code: Select all

<?xml version="1.0" ?>
<Object>


<Model></Model>


	<ColorMap></ColorMap>
	<NormalMap></NormalMap>
	<WeightMap></WeightMap>
    <DetailMaps>
	<DetailMap colorpath=".tga" normalpath=".tga" materialpath=".xml" />	
	<DetailMap colorpath=".tga" normalpath=".tga" materialpath=.xml" />
	<DetailMap colorpath=".tga" normalpath=".tga" materialpath=".xml" />
	<DetailMap colorpath=".tga" normalpath=".tga" materialpath=".xml" />
    </DetailMaps>
	<ShaderName>detailmap4</ShaderName>
    <flags
        double_sided = "true"
        no_collision = "true"
        bush_collision = "true"
    />
</Object>
Edit: added <flags tag or whatever you call that but they are optional this means you don't have to use all of them when you don't need them.
Last edited by last on Mon Apr 02, 2012 3:55 pm, edited 1 time in total.

User avatar
Markuss
Posts: 193
Joined: Sun Apr 04, 2010 1:52 pm

Re: Overgrowth 3D Reference Guide (Alpha)

Post by Markuss » Sun Oct 30, 2011 8:31 pm

KiiNGz wrote:You need to put the Shader path "<ShaderPath>Data/GLSL/cubemap</ShaderPath>" to tell this piece of code ---> "<ShaderName>cubemap</ShaderName>" where the cubemap can be found.
u sure about that? i thourght "ShaderPath" was replaced by "ShaderName" and there is no need to include "ShaderPath" anymore.

User avatar
last
Posts: 2154
Joined: Fri Jan 07, 2011 7:02 am
Location: Estonia

Re: Overgrowth 3D Reference Guide (Alpha)

Post by last » Mon Oct 31, 2011 3:20 am

Markuss wrote:
KiiNGz wrote:You need to put the Shader path "<ShaderPath>Data/GLSL/cubemap</ShaderPath>" to tell this piece of code ---> "<ShaderName>cubemap</ShaderName>" where the cubemap can be found.
u sure about that? i thourght "ShaderPath" was replaced by "ShaderName" and there is no need to include "ShaderPath" anymore.
Yes you are right. maybe you missed my last example where i had final version of object xml file and there was allready <ShaderName>detailmap4</ShaderName>

this first example was maybe "bad" because this object is so old and nobody have'nt updated it, but it still works

User avatar
Markuss
Posts: 193
Joined: Sun Apr 04, 2010 1:52 pm

Re: Overgrowth 3D Reference Guide (Alpha)

Post by Markuss » Tue Nov 22, 2011 2:15 am

last wrote:Yes you are right. maybe you missed my last example where i had final version of object xml file and there was allready <ShaderName>detailmap4</ShaderName>

this first example was maybe "bad" because this object is so old and nobody have'nt updated it, but it still works
cool, just checking that i hadn't written some wrong info in the guide.

User avatar
Andrige
Posts: 175
Joined: Wed Jan 06, 2010 2:09 pm
Location: Sweden
Contact:

Re: Overgrowth 3D Reference Guide (Alpha)

Post by Andrige » Sun Feb 12, 2012 6:28 am

Thought I should share the settings that will work right out of the box when generating object-space normal maps for Overgrowth with xNormal.


Update: Typed out the information in case the image goes missing in the future.
---

Code: Select all

Model must face toward Z+ (direction could vary with program, I use Autodesk Maya)


xNormal normal bake settings:
X+ , Z- , Y+,
Set it to Object Space


Normal map colour channels:
Red channel = X+
Green channel = Z-
Blue channel = Y+
Attachments
mdl_overgrowth_bear-01_anim_screenshot_32.png
Last edited by Andrige on Mon Oct 01, 2012 5:25 am, edited 1 time in total.

User avatar
last
Posts: 2154
Joined: Fri Jan 07, 2011 7:02 am
Location: Estonia

Re: Overgrowth 3D Reference Guide (Alpha)

Post by last » Mon Apr 02, 2012 4:26 pm

Don't remember when they added <flags tag into object .xml file but i think that it should be explained here.
So
double_sided = "true" - means object is textured inside and outside with same texture and normals map even when the object is originally 1 sided
no_collision = "true" You can walk trough that object without any resistance.
bush_collision = "true" There is some resistance when you collide with this object (some of the bushes has that feature like cypress_branch_large/small)
/>
</Object>[/code]
<flags tag ends with /> so here is an example.

Code: Select all

<?xml version="1.0" ?>
<Object>
    <Model>Data/.obj</Model>
    <ColorMap>Data/.tga</ColorMap>
    <NormalMap>Data/.tga</NormalMap>
    <TranslucencyMap>Data/.tga</TranslucencyMap>
    <WindMap>Data/.tga</WindMap>
    <ShaderName>plant</ShaderName>
    <flags
        double_sided = "true"
        no_collision = "true"
        bush_collision = "true"
    />
</Object>
Warning there may be some errors or game crashes when trying that feature with different shaders that may not support flags tag. Tried that with plant shader, cubemap shader and detailmap4 shader. With last one my game crashed.

MishoM
Posts: 47
Joined: Tue Oct 30, 2012 4:19 am

Re: Overgrowth 3D Reference Guide (Alpha)

Post by MishoM » Mon Feb 04, 2013 4:31 am

Johannes wrote:excellent work, you should put this on the wiki as well:
http://wiki.wolfire.com/index.php/Portal:Overgrowth
+1

Really great, and just when I needed it :)

User avatar
akazi
Posts: 1935
Joined: Fri Dec 30, 2011 3:14 pm
Location: Montgomery, Alabama

Re: Overgrowth 3D Reference Guide (Alpha)

Post by akazi » Tue Jul 01, 2014 12:52 pm

<MaterialPath>ENTERPATHHERE<MaterialPath/> seems like it hasn't been working for a while.

generalcrusher
Posts: 29
Joined: Wed Dec 18, 2013 11:38 am

Re: Overgrowth 3D Reference Guide (Alpha)

Post by generalcrusher » Wed Aug 20, 2014 3:12 pm

You say that the textures should not be powers of two, but when I load my object it says that they should be powers of two. :?

User avatar
akazi
Posts: 1935
Joined: Fri Dec 30, 2011 3:14 pm
Location: Montgomery, Alabama

Re: Overgrowth 3D Reference Guide (Alpha)

Post by akazi » Wed Aug 20, 2014 4:02 pm

generalcrusher wrote:You say that the textures should not be powers of two, but when I load my object it says that they should be powers of two. :?
They do need to be, I think you might have misread.

generalcrusher
Posts: 29
Joined: Wed Dec 18, 2013 11:38 am

Re: Overgrowth 3D Reference Guide (Alpha)

Post by generalcrusher » Thu Aug 21, 2014 11:02 am

do I have to use object space normal maps or do tangent space normal maps work as well?

Post Reply