Hello,

I am new with CS and I have some basic questions:

1.- I am Loading a genmesh from a library exported from blender (with
blender2cs). The library is a genmesh with 7000 polygons and texture.
The first problem is that I need 5 minutes to start the engine. I have
3 lights on my world and on the second light the engine take this time
to run CalculateLighting().

engine.cpp line 1314: (CS 1.0)

   while (lit->HasNext ())
   {
     if (doVerbose)
     {
       csPrintf ("Doing light %d\n", lit_cnt);
       fflush (stdout);
     }
     lit_cnt++;
     l = lit->Next ();
     ((csLight*)l)->GetPrivateObject ()->CalculateLighting (); /* <--- take 5 
minutes */
     if (meter) meter->Step ();
   }

If I use a simple box with only 6 faces there is no time problem. I
can jump this instruction and works fine too, but really darkly..

2.- and the second question. This genmesh has a texture, and the
texture is defined on the library too, but by drawing the texture is
no present.. :( I use to load the mesh:

loader->LoadLibraryFile("library");

carMeshFactoryWrapper = engine->FindMeshFactory("genMeshName");

carMeshWrapper =
engine->CreateMeshWrapper(carMeshFactoryWrapper,"name",
engine->GetSectors()->FindByName("Scene"), csVector3(position.x,
position.y, position.z ) );

I don't have any problem with the textures of the world...

Thanks
Mariano.-


      __________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to