Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1] 2
  Print  
Author Topic: TVActor error  (Read 1229 times)
adeebm
Community Member
*
Posts: 21


« on: April 13, 2008, 09:33:05 PM »

Hi everyone!

This is my first post so forgive me if i do something wrong Smiley
I've been using truevision for a while, but this is my first time using actors. I have an animated .x file which I load in my program. When i load it as a mesh, it appears fine, but when I load it as an actor, the texture disappears. When I load it in the TV Model Viewer, it works fine as an actor or mesh. There doesn't seem to be any sample code on how to load actors.

Heres my code:
UnitActor = Globals.scene.CreateActor(UnitName + GameUnit.sUnitNo);
UnitActor.LoadXFile(Globals.path + MeshPath, true, true);
UnitActor.SetScale(Scale, Scale, Scale);
Globals.texturefactory.LoadTexture(Globals.path + ImagePath, UnitName, -1, -1, CONST_TV_COLORKEY.TV_COLORKEY_NO);
UnitActor.SetColor(Globals.globals.RGBA(1f, 1f, 1f, 1f), false);
UnitActor.SetTexture(Globals.globals.GetTex(UnitName));
UnitActor.SetActorMode(CONST_TV_ACTORMODE.TV_ACTORMODE_SHADER);
UnitActor.SetCullMode(CONST_TV_CULLING.TV_BACK_CULL);
UnitActor.SetMatrix(BindToLand(BindMatrix, new TV_3DVECTOR(Scale, Scale, Scale), mPosition));
It is the exact same code I use to load it as a mesh, only its an actor this time.
I would greatly appreciate some help.
Thanks
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4436


WWW
« Reply #1 on: April 15, 2008, 12:28:32 PM »

Well some things to check:

1) Try to call SetActorMode before LoadXFile, actor mode is actually used in LoadXfile to generate the good type of data, so it's a good thing to call it before.
2) Try To call SetMaterial 0
3) If you use SetMaterial or SetColor, you have to set Lightingmode to managed or normal, else it won't be used.
4) If you are already scaling the actor in the BindToLand, you shouldn't have to do it with SetScale.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
adeebm
Community Member
*
Posts: 21


« Reply #2 on: April 15, 2008, 02:57:51 PM »

Heres my new code, but it still doesn't work:

mUnitActor = Globals.scene.CreateActor(Name + GameUnit.sUnitNo);
mUnitActor.SetActorMode(CONST_TV_ACTORMODE.TV_ACTORMODE_SHADER);
mUnitActor.LoadXFile(Globals.path + MeshPath, true, true);
if (ImagePath != "")
{
Globals.texturefactory.LoadTexture(Globals.path + ImagePath, Name, -1, -1, CONST_TV_COLORKEY.TV_COLORKEY_NO);
mUnitActor.SetColor(Globals.globals.RGBA(1f, 1f, 1f, 1f), false);
mUnitActor.SetMaterial(0);
mUnitActor.SetTexture(Globals.globals.GetTex(Name));
}
mUnitActor.SetShadowCast(true, true);
mUnitActor.SetLightingMode(CONST_TV_LIGHTINGMODE.TV_LIGHTING_NORMAL);
mUnitActor.Update();
mUnitActor.Enable(true);
mUnitActor.SetCullMode(CONST_TV_CULLING.TV_BACK_CULL);
mUnitActor.GetBoundingSphere(ref Rand, ref Radius, false);
height = Radius * 2;
Globals.mathlibrary.TVMatrixRotationYawPitchRoll(ref BindMatrix, 0, 0, 0);
mUnitActor.SetMatrix(BindToLand(BindMatrix, new TV_3DVECTOR(Scale, Scale, Scale), mPosition));

also, even when I set the lighting mode it does not seem to be managed. (The lighting works fine with my meshes)
Logged
DarkFact
Community Member
*
Posts: 183

3dsMax Artist


WWW
« Reply #3 on: April 16, 2008, 05:41:00 PM »

How about just keeping it simple until you get it to render properly. Then add in the rest of the code until you find the culprit?

mUnitActor = Globals.scene.CreateActor(Name + GameUnit.sUnitNo);
mUnitActor.LoadXFile(Globals.path + MeshPath, true, true);
mUnitActor.SetMaterial(0);
mUnitActor.SetLightingMode(CONST_TV_LIGHTINGMODE.TV_LIGHTING_MANAGED);

Now add a light and render it. Is it there?
Logged

adeebm
Community Member
*
Posts: 21


« Reply #4 on: April 16, 2008, 07:13:25 PM »

Still no texture. There already is a light, but the actor does not get lighted...
Logged
DarkFact
Community Member
*
Posts: 183

3dsMax Artist


WWW
« Reply #5 on: April 16, 2008, 07:14:45 PM »

Can you post your render loop code?
Logged

adeebm
Community Member
*
Posts: 21


« Reply #6 on: April 17, 2008, 09:57:27 PM »

Render Loop:

System.Windows.Forms.Application.DoEvents();
Check_Input();
Check_Movement();
Globals.mGameTerrain.water.Update();
Globals.atmosphere.Atmosphere_Render();
Globals.landscape.Render();
Globals.scene.RenderAll(true);
if (Shadows)
   Globals.scene.FinalizeShadows();
//Extra stuff and GUI
Globals.tv.RenderToScreen();
Logged
DarkFact
Community Member
*
Posts: 183

3dsMax Artist


WWW
« Reply #7 on: April 17, 2008, 10:03:44 PM »

For troubleshooting, I'd suggest rendering your scene elements individually and putting your Actor after FinalizeShadows and Atmosphere render.
Logged

adeebm
Community Member
*
Posts: 21


« Reply #8 on: April 21, 2008, 09:24:43 PM »

Do you mean render the actor thats causing the problem separately or all of the items? Why would that make a difference?
Logged
DarkFact
Community Member
*
Posts: 183

3dsMax Artist


WWW
« Reply #9 on: April 21, 2008, 09:31:49 PM »

Instead of using Globals.scene.RenderAll(true); render each element separately, including actor.Render().

This is following standard troubleshooting practice. You goal is to narrow down the one thing that is causing your issue. By separating all rendered elements, you can omit and add them one at a time and re-arrange the render order until you find out what is going on.

You cannot render all at once and re-arrange the order, you see.

I've found that rendering the Atomosphere Fog in the wrong place will turn your actors the color of the fog, btw.
Logged

TecnoBacon
Customers
Community Member
*****
Posts: 226


WWW
« Reply #10 on: April 22, 2008, 10:45:30 AM »

Just to add,

You should always render your characters seperate of the rest of the scene if you want them to work properly with water transparency.

EB
Logged

www.TecnoBacon.com - the other side of the Bacon family! 3D Development, Music and more.
adeebm
Community Member
*
Posts: 21


« Reply #11 on: April 29, 2008, 09:24:32 PM »

Ok, I updated the render loop:

System.Windows.Forms.Application.DoEvents();
Check_Input();
Check_Movement();
Globals.mGameTerrain.water.Update();
Globals.atmosphere.Atmosphere_Render();
Globals.landscape.Render();

//All meshes and actors are rendered seperatly if they are visible

if (Shadows)
   Globals.scene.FinalizeShadows();
//Extra stuff and GUI
Globals.tv.RenderToScreen();

Still no difference, the actors are textureless and material-less.
Logged
adeebm
Community Member
*
Posts: 21


« Reply #12 on: May 05, 2008, 08:55:52 PM »

Any ideas?
Logged
pabloescobar
Customers
Community Member
*****
Posts: 63


« Reply #13 on: May 06, 2008, 11:57:45 AM »

since you r telling the engine to load the texture and apply material, you dont need this piece of code
if (ImagePath != "")
{
Globals.texturefactory.LoadTexture(Globals.path + ImagePath, Name, -1, -1, CONST_TV_COLORKEY.TV_COLORKEY_NO);
mUnitActor.SetColor(Globals.globals.RGBA(1f, 1f, 1f, 1f), false);
mUnitActor.SetMaterial(0);
mUnitActor.SetTexture(Globals.globals.GetTex(Name));
}

Maybe something is messing here.


Try run with this:
mUnitActor = Globals.scene.CreateActor(Name + GameUnit.sUnitNo);
mUnitActor.SetActorMode(CONST_TV_ACTORMODE.TV_ACTORMODE_SHADER);
mUnitActor.LoadXFile(Globals.path + MeshPath, true, true);
mUnitActor.SetShadowCast(true, true);
mUnitActor.SetLightingMode(CONST_TV_LIGHTINGMODE.TV_LIGHTING_MANAGED);
mUnitActor.SetCullMode(CONST_TV_CULLING.TV_BACK_CULL);
....
Logged
adeebm
Community Member
*
Posts: 21


« Reply #14 on: May 06, 2008, 03:50:48 PM »

Thats only because some of the meshes don't automatically load textures. Its not being used most of the time.
Logged
pabloescobar
Customers
Community Member
*****
Posts: 63


« Reply #15 on: May 06, 2008, 05:54:52 PM »

btw, post the log pls
Logged
adeebm
Community Member
*
Posts: 21


« Reply #16 on: May 06, 2008, 08:24:24 PM »

Do you mean this?

Code:
05-06-2008 18:58:23 | --------------------------------------------
05-06-2008 18:58:23 | Truevision3D Debug/Log File
05-06-2008 18:58:23 | --------------------------------------------
05-06-2008 18:58:23 | Engine Version : 6.5
05-06-2008 18:58:23 | ENGINE INFO : DLL Compilation time Sep 24 2007 12:45:04
05-06-2008 18:58:23 | DEVICE INIT : Initialize Depth
05-06-2008 18:58:23 | DEVICE INIT : Couldn't find a valid antialiasing setting for this settings
05-06-2008 18:58:23 | DEVICE INIT : Initializing the device in windowed mode, with a render surface size of 1024x768, format 22, depthbuffer 75
05-06-2008 18:58:23 | VIEWPORT MANAGER : Main viewport initialization
05-06-2008 18:58:23 | VIEWPORT MANAGER : Main viewport initialized (1024x768)
05-06-2008 18:58:23 | DEVICE INIT : Initialization successful !
05-06-2008 18:58:23 | DEVICE INFO :  3D Card : NVIDIA GeForce 8400 GS   | Card ID : 1058 | Driver ID : 727821
05-06-2008 18:58:23 | DEVICE INFO : Available texture memory : 1386 MB
05-06-2008 18:58:23 | DEVICE INFO : Vertex Shaders 3.0 supported in hardware.
05-06-2008 18:58:23 | Debug info : vs fffe0300  ps ffff0300
05-06-2008 18:58:23 | DEVICE INFO : Pixel Shaders 3.0 supported in hardware.
05-06-2008 18:58:23 | DEVICE INFO : Driver used is a DirectX9-level driver 'nvd3dum.dll'. Excellent
05-06-2008 18:58:23 | DEVICE INFO : Card Type Geforce6xxx/7xxx/8xxx/ATIRadeonX1xxx  Level card, third generation of programmable card
05-06-2008 18:58:23 | LANDSCAPE : Landscape object #0 has been initialized
05-06-2008 18:58:23 | LANDSCAPE : Generating landscape #0 from heightmap F:\Projects\Empires Project\Empires\bin\Debug\Data\Maps\Desert-HM.bmp
05-06-2008 18:58:23 | LANDSCAPE : 8x8 Landscape successfully generated with 270400 vertices and 1622400 indices in 406 milliseconds.
05-06-2008 18:58:23 | LANDSCAPE : Quadtree created for the landscape in 15 milliseconds.
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Maps\Desert-TX.bmp' successful 'Terrain' on index 2
05-06-2008 18:58:24 | TERRAIN MANAGER : Switching to Expanded texture
05-06-2008 18:58:24 | PHYSICS MANAGER : Static friction must be greater or equal to the kinetic friction
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Misc\Lens Flare\flare0.jpg' successful 'Flare1' on index 3
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Misc\Lens Flare\flare1.jpg' successful 'Flare1' on index 4
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Misc\Lens Flare\flare2.jpg' successful 'Flare2' on index 5
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Misc\Lens Flare\flare3.jpg' successful 'Flare3' on index 6
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Misc\Lens Flare\flare4.jpg' successful 'Flare4' on index 7
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Clouds\cloud.dds' successful 'Clouds' on index 8
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Sun\sun.jpg' successful 'Sun' on index 9
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Sky\Up.jpg' successful 'SkyTop' on index 10
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Sky\Down.jpg' successful 'SkyBottom' on index 11
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Sky\Left.jpg' successful 'SkyLeft' on index 12
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Sky\Right.jpg' successful 'SkyRight' on index 13
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Sky\Front.jpg' successful 'SkyFront' on index 14
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Sky\Back.jpg' successful 'SkyBack' on index 15
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Ground\Grass.bmp' successful 'Grass 1' on index 16
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Ground\Dirt.jpg' successful 'Dirt 1' on index 17
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtr.tga' successful 'Tree' on index 18
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtree.x' succeeded in 0 ms ( 456 faces, 216 vertices ) ID 0
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtree.x' succeeded in 0 ms ( 456 faces, 216 vertices ) ID 1
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtree.x' succeeded in 0 ms ( 456 faces, 216 vertices ) ID 2
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtree.x' succeeded in 16 ms ( 456 faces, 216 vertices ) ID 3
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtree.x' succeeded in 0 ms ( 456 faces, 216 vertices ) ID 4
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtree.x' succeeded in 0 ms ( 456 faces, 216 vertices ) ID 5
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Trees\Palm\palmtree.x' succeeded in 16 ms ( 456 faces, 216 vertices ) ID 6
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\stone.jpg' successful 'stone.jpg' on index 29
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 15 ms ( 28 faces, 84 vertices ) ID 10
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 11
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 12
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 48
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 49
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 50
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 51
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 52
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 53
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 15 ms ( 28 faces, 84 vertices ) ID 54
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 0 ms ( 28 faces, 84 vertices ) ID 55
05-06-2008 18:58:24 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Nature\Stone\Stone.x' succeeded in 16 ms ( 28 faces, 84 vertices ) ID 56
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Water\DualLookupNormalMap.256.VolumeSlice.dds' successful 'WaterNormalMap' on index 30
05-06-2008 18:58:24 | TEXTURE MANAGER : Successfully created a render surface 384x384 on slot 31
05-06-2008 18:58:24 | SHADER MANAGER : Shader 'WaterShader' successfully created from string.
05-06-2008 18:58:24 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Water\FoamLookUp.dds' successful 'NONAME' on index 32
05-06-2008 18:58:25 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Water\FoamMask.dds' successful 'NONAME' on index 33
05-06-2008 18:58:25 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Water\DetailNormalMap.dds' successful 'NONAME' on index 34
05-06-2008 18:58:25 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Water\PhongLookUp.dds' successful 'NONAME' on index 35
05-06-2008 18:58:25 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Landscape\Water\FresnelLookUp.dds' successful 'NONAME' on index 36
05-06-2008 18:58:26 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Town Hall\townhall.dds' successful 'townhall.dds' on index 37
05-06-2008 18:58:26 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Town Hall\roof.dds' successful 'roof.dds' on index 38
05-06-2008 18:58:26 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Town Hall\Town Hall.x' succeeded in 16 ms ( 434 faces, 1027 vertices ) ID 61
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Manor\map.JPG' successful 'map.JPG' on index 39
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Manor\Manor.x' succeeded in 63 ms ( 1370 faces, 2746 vertices ) ID 62
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Barracks\fw33.png' successful 'fw33.png' on index 41
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Barracks\stroh_3.png' successful 'stroh_3.png' on index 42
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Barracks\door12.png' successful 'door12.png' on index 43
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Barracks\window14.png' successful 'window14.png' on index 44
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Barracks\Barracks.x' succeeded in 515 ms ( 359 faces, 395 vertices ) ID 63
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Citizen\drone.dds' successful 'drone.dds' on index 45
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Citizen\Citizen.x' succeeded in 31 ms ( 940 faces, 2820 vertices ) ID 64
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Swordsman\soldier.dds' successful 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Swordsman\soldier.dds' on index 46
05-06-2008 18:58:27 | ACTOR MANAGER : File 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Swordsman\Swordsman.x' loaded in 31 ms.
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\NHLHULL1.TGA' successful 'NHLHULL1.TGA' on index 47
05-06-2008 18:58:27 | TEXTURE MANAGER : Loading of 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\NHLHULL2.TGA' successful 'NHLHULL2.TGA' on index 48
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 78 ms ( 5138 faces, 5269 vertices ) ID 66
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 15 ms ( 5138 faces, 5269 vertices ) ID 67
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 15 ms ( 5138 faces, 5269 vertices ) ID 68
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 16 ms ( 5138 faces, 5269 vertices ) ID 69
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 16 ms ( 5138 faces, 5269 vertices ) ID 70
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Town Hall\Town Hall.x' succeeded in 0 ms ( 434 faces, 1027 vertices ) ID 71
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Manor\Manor.x' succeeded in 0 ms ( 1370 faces, 2746 vertices ) ID 72
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Barracks\Barracks.x' succeeded in 0 ms ( 359 faces, 395 vertices ) ID 73
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Citizen\Citizen.x' succeeded in 15 ms ( 940 faces, 2820 vertices ) ID 74
05-06-2008 18:58:27 | ACTOR MANAGER : File 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Swordsman\Swordsman.x' loaded in 15 ms.
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 16 ms ( 5138 faces, 5269 vertices ) ID 76
05-06-2008 18:58:27 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 16 ms ( 5138 faces, 5269 vertices ) ID 77
05-06-2008 18:58:28 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 16 ms ( 5138 faces, 5269 vertices ) ID 78
05-06-2008 18:58:28 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 15 ms ( 5138 faces, 5269 vertices ) ID 79
05-06-2008 18:58:28 | MESH MANAGER : Loading of mesh file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Civilizations\Default\Helicopter\Helicopter.x' succeeded in 15 ms ( 5138 faces, 5269 vertices ) ID 80
05-06-2008 18:58:28 | STREAM MANAGER : Couldn't open file 'F:\Projects\Empires Project\Empires\bin\Debug\Data\Misc\Spot.dds'
05-06-2008 18:58:28 | TEXTURE MANAGER : Couldn't find the texture file F:\Projects\Empires Project\Empires\bin\Debug\Data\Misc\Spot.dds.
05-06-2008 19:00:07 | START UNLOAD
05-06-2008 19:00:07 | RESSOURCE MANAGER : Engine successfully unloaded
Logged
adeebm
Community Member
*
Posts: 21


« Reply #17 on: May 25, 2008, 07:43:30 PM »

Still not working, any ideas?
Logged
jviper
Community Member
*
Posts: 1281

Discipline in training


« Reply #18 on: May 25, 2008, 08:03:54 PM »

What's the name of the actor you loaded? Also what are the names of the textures tat actor uses?
Logged

JAbstract.....Don't just imagine, make it happen!
masmas
Community Member
*
Posts: 20


« Reply #19 on: May 27, 2008, 06:11:30 PM »

Hi Adeebm

Did you try to see the model with the tv3d movelview tool if u can't see it there maybe some missing texture, also happend to me that if u build the mesh in xsi mod tool or xsi and export as a x file the texture never load the same way you build it, so when you make a render map, you need to open de .x file in any txt viewer at the bottom of end of file there is a fuction that calls the texture.

TextureFilename {
      "texture.jpg";
     }

Hope this help u

Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks